Skip to content

nucatus/gradle-docker-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gradle-docker-poc

what is this?

POC for demonstrating gradle's docker plugin capabilities.

what does it do?

Takes a simple Spring Boot app and:

  • builds it into a jar
  • create a docker image file (Dockerfile) and includes the jarified app
  • builds the docker image
  • fires up the docker container

things needed to be taken into account when building/running the project

  • The SSL cert of the docker host is selfsigned (created by boot2docker during installation), thus it needs to manually be added to Java's cacerts keystore. sudo keytool import -alias $DOCKER_HOST -file $DOCKER_CERT -keystore $JAVA_HOME/jre/lib/security/cacerts

how to test

Go to https://$DOCKER_HOST:8080/container This would return a sample JSON message.

About

POC for demonstrating gradle's docker plugin capabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages