Skip to content

Tim-The-Woodsman/gradle-docker-plugin-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Gradle-Docker-Plugin example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 92.0%
  • Dockerfile 7.0%
  • Shell 1.0%