Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Eclipse Foundation Profile API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Foundation
IT
APIs
Eclipse Foundation Profile API
Merge requests
!27
Fix JVM dockerfile to resolve output image instability
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix JVM dockerfile to resolve output image instability
malowe/main/docker-jvm-patch
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Martin Lowe
requested to merge
malowe/main/docker-jvm-patch
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
75d4e842
1 commit,
1 year ago
1 file
+
14
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/docker/Dockerfile.jvm
+
14
−
15
Options
@@ -7,18 +7,20 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/
eclipsefdn-profile-api
-jvm .
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/
code-with-quarkus
-jvm .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/
eclipsefdn-profile-api
-jvm
# docker run -i --rm -p 8080:8080 quarkus/
code-with-quarkus
-jvm
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5005
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
# when running the container
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 quarkus/
eclipsefdn-profile-api
-jvm
# docker run -i --rm -p 8080:8080 quarkus/
code-with-quarkus
-jvm
#
# This image uses the `run-java.sh` script to run the application.
# This scripts computes the command line to execute your Java application, and
@@ -75,20 +77,17 @@
# accessed directly. (example: "foo.example.com,bar.example.com")
#
###
FROM registry.access.redhat.com/ubi8/openjdk-11:1.11
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
FROM registry.access.redhat.com/ubi9/openjdk-11:1.15-3
ENV LANGUAGE='en_US:en'
# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --chown=1
85
target/quarkus-app/lib/ /deployments/lib/
COPY --chown=1
85
target/quarkus-app/*.jar /deployments/
COPY --chown=1
85
target/quarkus-app/app/ /deployments/app/
COPY --chown=1
85
target/quarkus-app/quarkus/ /deployments/quarkus/
COPY --chown=1
001
target/quarkus-app/lib/ /deployments/lib/
COPY --chown=1
001
target/quarkus-app/*.jar /deployments/
COPY --chown=1
001
target/quarkus-app/app/ /deployments/app/
COPY --chown=1
001
target/quarkus-app/quarkus/ /deployments/quarkus/
EXPOSE 8080
USER 185
ENV AB_JOLOKIA_OFF=""
EXPOSE 8090
USER 1001
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
Loading