Very handy Docker image for running Spring Boot applications.
523
Very handy Docker image for running Spring Boot applications. Main features:
ARTIFACT_URL for the application jar web locationSPRING_PROFILES_ACTIVE environment variable. Thus, you might reuse the same image to run the same application with different Spring ProfilesJVM_ARGS environment variable$ docker run -p 8080:8080 -e ARTIFACT_URL="http://example.com/your-artifact.jar" jorgeacetozi/spring-boot-runner:1.0
$ docker run -p 8080:8080 -e ARTIFACT_URL="http://example.com/your-artifact.jar" -e JVM_ARGS="-Xms1G -Xmx1G" jorgeacetozi/spring-boot-runner:1.0
$ docker run -p 8080:8080 -e ARTIFACT_URL="http://example.com/your-artifact.jar" -e JVM_ARGS="-Xms1G -Xmx1G" -v /var/log/myapp:/var/log/spring-boot-app jorgeacetozi/spring-boot-runner:1.0
$ docker run -p 8080:8080 -e ARTIFACT_URL="http://example.com/your-artifact.jar" -e JVM_ARGS="-Xms1G -Xmx1G" -v /var/log/myapp:/var/log/spring-boot-app -e SPRING_PROFILES_ACTIVE="production" jorgeacetozi/spring-boot-runner:1.0
Content type
Image
Digest
Size
236.4 MB
Last updated
about 7 years ago
docker pull jorgeacetozi/spring-boot-runner