forked from microservices-demo/carts
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to java 18 and fix dependencies and api changes
- Loading branch information
1 parent
5fa21d8
commit 3fc8499
Showing
6 changed files
with
23 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM java:openjdk-8-alpine | ||
FROM openjdk:18-alpine | ||
|
||
WORKDIR /usr/src/app | ||
COPY ./target/*.jar ./app.jar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
FROM weaveworksdemos/msd-java:jre-latest | ||
FROM openjdk:18-jdk-alpine | ||
|
||
WORKDIR /usr/src/app | ||
COPY *.jar ./app.jar | ||
|
||
RUN chown -R ${SERVICE_USER}:${SERVICE_GROUP} ./app.jar | ||
RUN chown -R root:root ./app.jar | ||
|
||
USER ${SERVICE_USER} | ||
|
||
ARG BUILD_DATE | ||
ARG BUILD_VERSION | ||
ARG COMMIT | ||
|
||
LABEL org.label-schema.vendor="Weaveworks" \ | ||
org.label-schema.build-date="${BUILD_DATE}" \ | ||
org.label-schema.version="${BUILD_VERSION}" \ | ||
org.label-schema.name="Socks Shop: Cart" \ | ||
org.label-schema.description="REST API for Cart service" \ | ||
org.label-schema.url="https://github.com/microservices-demo/carts" \ | ||
org.label-schema.vcs-url="github.com:microservices-demo/carts.git" \ | ||
org.label-schema.vcs-ref="${COMMIT}" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ENTRYPOINT ["/usr/local/bin/java.sh","-jar","./app.jar", "--port=80"] | ||
USER root | ||
ENTRYPOINT ["java","-jar","./app.jar", "--port=8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters