Skip to content

Instantly share code, notes, and snippets.

@gilbertolptn
Last active Jun 10, 2020
Embed
What would you like to do?
# 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
# Load from tar
docker load --input=build/jib-image.tar
# Run with Spring+Mounting Volume /app
docker run --rm -it -v $PWD:/app docker run --rm -it -v $PWD:/app openjdk:11-jre bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment