Skip to content

Commit 501e684

Browse files
committed
Resolve port conflict and fix permission problem
Signed-off-by: eyuen <eyuen@redhat.com>
1 parent aec87b0 commit 501e684

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

devfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ components:
2626
image: buildguidanceimage-placeholder
2727
memoryLimit: 1024Mi
2828
endpoints:
29-
- name: http-8080
30-
targetPort: 8080
29+
- name: http-8081
30+
targetPort: 8081
3131
- name: tools
3232
container:
3333
image: quay.io/eclipse/che-quarkus:nightly

src/main/docker/Dockerfile.jvm.staged

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM registry.access.redhat.com/ubi8/openjdk-11:latest
22

3-
WORKDIR /build
3+
WORKDIR /tmp
44
RUN mkdir -p .mvn/wrapper
55
# Build dependency offline to streamline build
66
COPY mvnw* .
@@ -52,12 +52,12 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
5252
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
5353
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
5454
# We make four distinct layers so if there are application changes the library layers can be re-used
55-
COPY --from=0 --chown=1001 /build/target/quarkus-app/lib/ /deployments/lib/
56-
COPY --from=0 --chown=1001 /build/target/quarkus-app/*.jar /deployments/
57-
COPY --from=0 --chown=1001 /build/target/quarkus-app/app/ /deployments/app/
58-
COPY --from=0 --chown=1001 /build/target/quarkus-app/quarkus/ /deployments/quarkus/
55+
COPY --from=0 --chown=1001 /tmp/target/quarkus-app/lib/ /deployments/lib/
56+
COPY --from=0 --chown=1001 /tmp/target/quarkus-app/*.jar /deployments/
57+
COPY --from=0 --chown=1001 /tmp/target/quarkus-app/app/ /deployments/app/
58+
COPY --from=0 --chown=1001 /tmp/target/quarkus-app/quarkus/ /deployments/quarkus/
5959

60-
EXPOSE 8080
60+
EXPOSE 8081
6161
USER 1001
6262

6363
ENTRYPOINT [ "/deployments/run-java.sh" ]

0 commit comments

Comments
 (0)