This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from catenax-ng/drs-2.0.1
New release
- Loading branch information
Showing
11 changed files
with
144 additions
and
174 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,31 +1,27 @@ | ||
#FROM openjdk:17 as build | ||
FROM maven:3.8.5-openjdk-18-slim as build | ||
FROM maven:3.9.0-eclipse-temurin-19 as build | ||
|
||
COPY . /drs/ | ||
|
||
WORKDIR /drs | ||
|
||
#RUN microdnf install dos2unix && microdnf clean all | ||
#RUN dos2unix mvnw | ||
#RUN chmod +x mvnw | ||
#RUN dos2unix .mvn/wrapper/maven-wrapper.properties | ||
|
||
#RUN ./mvnw clean install -Dmaven.test.skip=true | ||
|
||
RUN mvn clean install -Dmaven.test.skip=true | ||
|
||
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar) | ||
|
||
FROM bellsoft/liberica-openjdk-alpine:17.0.4.1-1 | ||
FROM eclipse-temurin:17.0.6_10-jdk-alpine | ||
|
||
RUN apk update && apk upgrade | ||
ARG DEPENDENCY=/drs/target/dependency | ||
|
||
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib | ||
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF | ||
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app | ||
|
||
RUN adduser -DH drs && addgroup drs drs | ||
USER drs | ||
|
||
ENTRYPOINT ["java", "-cp", "app:app/lib/*", "org.eclipse.tractusx.dapsreg.DapsregApplication"] | ||
|
||
EXPOSE 8080 | ||
|
||
HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1 |
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
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