-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPHYK-214 Make Docker image of varda-rekisterointi
Main changes to before: * Write access log to stdout * Write audit log to stdout * Remove unused url-alb property
- Loading branch information
Showing
22 changed files
with
313 additions
and
720 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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target/ | ||
node_modules/ |
117 changes: 0 additions & 117 deletions
117
varda-rekisterointi/.mvn/wrapper/MavenWrapperDownloader.java
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM maven:3.9.8-amazoncorretto-21-al2023 AS build | ||
WORKDIR /app | ||
|
||
RUN dnf install -y nodejs20 \ | ||
&& alternatives --install /usr/bin/node node /usr/bin/node-20 90 \ | ||
&& alternatives --install /usr/bin/npm npm /usr/bin/npm-20 90 \ | ||
&& alternatives --install /usr/bin/npx npx /usr/bin/npx-20 90 | ||
|
||
COPY package.json . | ||
COPY package-lock.json . | ||
RUN npm ci | ||
|
||
COPY . . | ||
RUN npm run build | ||
RUN mvn clean package -s settings.xml -DskipTests | ||
|
||
FROM amazoncorretto:21 | ||
WORKDIR /app | ||
|
||
COPY --from=build /app/target/varda-rekisterointi.jar varda-rekisterointi.jar | ||
COPY --chmod=755 <<"EOF" /app/entrypoint.sh | ||
#!/usr/bin/env bash | ||
set -o errexit -o nounset -o pipefail | ||
|
||
exec java \ | ||
-Dspring.config.additional-location=classpath:/config/aws.yml,classpath:/config/$ENV.yml \ | ||
-jar varda-rekisterointi.jar | ||
EOF | ||
|
||
ENTRYPOINT [ "/app/entrypoint.sh" ] |
Oops, something went wrong.