Commit a29a42d9 authored by cnguyen2's avatar cnguyen2
Browse files

Build jvm mode by default in CI environment

parent 18ef29da
Pipeline #216741 failed with stages
in 2 minutes and 52 seconds
......@@ -4,11 +4,13 @@ stages:
- push
variables:
CONTAINER_TEMP_IMAGE: $CI_REGISTRY_IMAGE:temp-$CI_COMMIT_SHORT_SHA
CONTAINER_NATIVE_TEMP_IMAGE: $CI_REGISTRY_IMAGE:temp-native-$CI_COMMIT_SHORT_SHA
CONTAINER_JVM_TEMP_IMAGE: $CI_REGISTRY_IMAGE:temp-jvm-$CI_COMMIT_SHORT_SHA
CONTAINER_TEMP_IMAGE: $CONTAINER_JVM_TEMP_IMAGE
build native:
stage: build
when: manual
image: quay.io/quarkus/centos-quarkus-maven:21.0.0-java11
only:
- master
......@@ -21,7 +23,6 @@ build native:
build jvm:
stage: build
image: quay.io/quarkus/centos-quarkus-maven:21.0.0-java11
when: manual
only:
- master
script:
......@@ -34,6 +35,7 @@ build jvm:
containerize native:
stage: containerize
when: manual
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......@@ -46,11 +48,10 @@ containerize native:
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/src/main/docker/Dockerfile.native
--destination $CONTAINER_TEMP_IMAGE
--destination $CONTAINER_NATIVE_TEMP_IMAGE
containerize jvm:
stage: containerize
when: manual
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
ARG JAVA_PACKAGE=java-11-openjdk-headless
ARG RUN_JAVA_VERSION=1.3.8
......@@ -20,10 +20,11 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --chown=1001 target/quarkus-app/lib/ /work/lib/
COPY --chown=1001 target/quarkus-app/*.jar /work/
COPY --chown=1001 target/quarkus-app/app/ /work/app/
COPY --chown=1001 target/quarkus-app/quarkus/ /work/quarkus/
COPY target/quarkus-app/lib/ /work/lib/
COPY target/quarkus-app/*.jar /work/
COPY target/quarkus-app/app/ /work/app/
COPY target/quarkus-app/quarkus/ /work/quarkus/
RUN chown -R 1001 /work
EXPOSE 8080
USER 1001
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment