simple and easy to use Java 8 gradle build machine to clone source code and run gradle build
1.4K
This build machine can be useful if you have below in your mind
Once the container is up you should see build logs on screen (as per below command run) and once the build is finish container remains up. You can trigger more builds to it by using docker's exec command and calling a script with parameters. Please see below re-trigger section.
Usage: docker run --name {any-name-for-your-local-container} -e GIT_REPO_URL='{git url of gradle based java/spring source code}' -e DOCKER_PATH='{path-on-container-filesystem where git will clone and gradle build is run}' -i -v {your-local-dir}:{path-on-container-filesystem} krunalsabnis/spring-java-build:0.0.5
Explanation:
Example:
For my sample spring boot application [ https://github.com/krunalsabnis/qualibrate-java-api.git ]
docker run --name mb -e GIT_REPO_URL='https://github.com/krunalsabnis/qualibrate-java-api.git' -e DOCKER_PATH='/shared-volume' -i -v E:\code-repo\DockerWork:/shared-volume krunalsabnis/spring-java-build:0.0.5
Re-trigger Usage: docker exec -i {container-name} build.sh {GIT_REPO_URL} {} docker exec -i mb build.sh {git url of gradle based java/spring source code} {path-on-container-filesystem where git will clone and gradle build is run}
Example:
docker exec -i mb build.sh https://github.com/krunalsabnis/qualibrate-wiki.git /shared-volume
Content type
Image
Digest
Size
483.1 MB
Last updated
almost 9 years ago
docker pull krunalsabnis/spring-java-build