-
Notifications
You must be signed in to change notification settings - Fork 0
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 #135 from prosanteconnect/production
production
- Loading branch information
Showing
18 changed files
with
459 additions
and
381 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
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,20 +1,13 @@ | ||
FROM maven:3-jdk-11 AS build | ||
COPY src /usr/src/app/src | ||
COPY pom.xml /usr/src/app | ||
RUN mvn -f /usr/src/app/pom.xml -Dextract.test.name=Extraction_Pro_sante_connect_cartes_de_test_bascule clean package | ||
RUN mvn -f /usr/src/app/pom.xml clean package -DskipTests=true | ||
|
||
FROM openjdk:11-slim-buster | ||
RUN apt update \ | ||
&& apt install -y wget gnupg dos2unix \ | ||
&& wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add - \ | ||
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list | ||
RUN apt update | ||
RUN apt install -y mongodb-database-tools mongodb-mongosh | ||
COPY --from=build /usr/src/app/target/pscextract-*.jar /usr/app/pscextract.jar | ||
RUN mkdir -p /app/extract-repo && mkdir -p /app/resources | ||
COPY --from=build /usr/src/app/src/main/resources/aggregate.mongo /app/resources/ | ||
RUN chown -R daemon: /app | ||
USER daemon | ||
EXPOSE 8080 | ||
ENTRYPOINT ["java","-jar","/usr/app/pscextract.jar"] | ||
ENTRYPOINT ["sh", "-c", "exec java -jar /usr/app/pscextract.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
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
Oops, something went wrong.