Gradle-Docker-Plugin example
Switch branches/tags
Nothing to show
Clone or download
Latest commit 4964ab2 Jan 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build-and-run-locally update plugin, and base images Sep 24, 2016
build-push-and-run-remotely update plugin, and base images Sep 24, 2016
build-with-buildargs add example how to use buildargs Sep 24, 2016
build-with-dockerignore update plugin, and base images Sep 24, 2016
container-lifecycle update to the current plugin version and cleanup example config Apr 9, 2016
gradle/wrapper Update Gradle wrapper. Dec 28, 2017
img logo fun Jun 23, 2014
issue-41 update Gradle wrapper along with the plugin and client dependencies. Apr 2, 2017
issue-64 Add test case for issue gesellix/gradle-docker-plugin#64. Dec 28, 2017
publish update plugin, and base images Sep 24, 2016
push-and-pull-with-auth add example for authentication with contents of ~/.dockercfg Apr 11, 2015
run-exec-and-copy-locally update Gradle wrapper, and dependencies Feb 23, 2017
run-with-data-volume add data-volume example (ref. #4) Oct 13, 2015
run-with-user update Gradle wrapper, and dependencies Feb 23, 2017
.gitignore ignore build/ directory Sep 11, 2014
README.md update gradle-docker-plugin, add example for DockerContainerTask Aug 23, 2015
build.gradle Update dependencies. Jan 30, 2018
gradle.properties update plugin dependency and to Gradle 2.4 May 23, 2015
gradlew Update the Gradle wrapper to 4.0-rc-2. Jun 8, 2017
gradlew.bat update wrapper to Gradle 3.0 Aug 16, 2016
settings.gradle Add test case for issue gesellix/gradle-docker-plugin#64. Dec 28, 2017

README.md

Gradle-Docker-Plugin example

Gradle logo Docker logo

Example project showing some use cases of the gradle-docker-plugin.

See the build.gradle file in the project root for detailed task configuration. Most configuration parameters are optional.

The root project only contains the most trivial tasks info and version. More advanced use cases can be found in the subprojects:

  • publish shows a very convenient way to build and push an image to one or more registries.
  • build-with-dockerignore shows how to use the .dockerignore file to exclude the Gradle build directory or other files.
  • build-and-run-locally shows a simple use case with an image being build and run as a container locally.
  • build-push-and-run-remotely shows a more advanced use case including a private registry.
  • push-and-pull-with-auth shows how to use the default ~/.dockercfg for registry authentication.
  • run-exec-and-copy-locally shows how to exec commands in a running container and how to copy files from a container.
  • container-lifecycle shows how to maintain container state, similar to tools like Ansible, where you declare the desired target state.