Building an app using gradle with jenkins in docker

I want to build my project with gradle.
To achieve this I have a docker file with installation details of Gradle and Java and I am trying to run it as a Jenkins job.
I have the docker file in the root of my project and I have configured Jenkins to pull code from git.
I have installed Jenkins in docker too..

But I am not sure hot to run the docker file as a Jenkins Job and then run Gradle as a Jenkins Job.

  • Docker user Permission denied on accessing folder in container
  • Attempting to access USB device from Docker in Windows
  • docker containers communication on dev machine
  • AWS Mesosphere: parameters for docker daemon
  • Installing Docker with script on Windows
  • Docker DNS Not Seeing External Servers
  • Creating Docker Base Image from a Dockerfile?
  • Why do Docker official images not use USER as required by “best practices”
  • Unable to push to docker registry with anonymous access disbaled
  • Docker GitLab image that update itself
  • How to debug dockerfiles when using gcloud and google app engine
  • docker build shows: failed sandbox add: failed to set gateway while updating gateway: invalid argument
  • One Solution collect form web for “Building an app using gradle with jenkins in docker”

    These would be a checking list you would need to follow:

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.