Skip to content

Instantly share code, notes, and snippets.

View gilbertolptn's full-sized avatar

Gilberto Lptn gilbertolptn

  • Rio Grande do Sul
View GitHub Profile
# 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
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