January 2020
Intermediate to advanced
428 pages
10h 34m
English
JHipster uses JIB (https://github.com/GoogleContainerTools/jib) to build Docker images. JIB can build and push Docker images without the need of a Docker daemon and, hence, is an ideal choice for CI environments as well. The JIB plugin is integrated with our Gradle build. The configuration that's used is defined in gradle/docker.gradle and is as follows:
jib { from { image = "adoptopenjdk:11-jre-hotspot" } to { image = "store:latest" } container { entrypoint = ["bash", "-c", "chmod +x /entrypoint.sh && sync && /entrypoint.sh"] ports = ["8080", "5701/udp" ] environment = [ SPRING_OUTPUT_ANSI_ENABLED: "ALWAYS", JHIPSTER_SLEEP: "0" ] creationTime = "USE_CURRENT_TIMESTAMP" }}
This configuration is quite straightforward. ...
Read now
Unlock full access