Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eclipsefdn-cve-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
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
eclipsefdn-cve-api
Merge requests
!32
Update JVM image to resolve startup instability
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update JVM image to resolve startup instability
malowe/eclipsefdn-cve-api:malowe/main/jvm-fix
into
main
Overview
0
Commits
1
Changes
4
Merged
Martin Lowe
requested to merge
malowe/eclipsefdn-cve-api:malowe/main/jvm-fix
into
main
1 year ago
Overview
0
Commits
1
Changes
4
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
6fe0f706
1 commit,
1 year ago
4 files
+
13
−
161
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/main/docker/Dockerfile.jvm
+
13
−
14
Options
@@ -7,18 +7,20 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/
eclipsefdn-working-group-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-working-group-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-working-group-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=""
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