This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build to local docker | |
gradle build jibDockerBuild | |
# Run in local docker | |
docker run --rm -it -e SPRING_PROFILES_ACTIVE=local -p 8080:8080 IMAGE | |
# Build to TAR using arbitrary image | |
gradle build jibBuildTar -Djib.from.image=openjdk:11-jre --exclude-task test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --restart=always | |
\ | |
-p {{service_port}}:8080 | |
-p {{jmx_port}}:{{jmx_port}} | |
\ | |
-e JAVA_OPTS=' | |
-Xmx{{java_memory_limit}} | |
-XX:+UseConcMarkSweepGC | |
-XX:NativeMemoryTracking=summary |
NewerOlder