-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93c9c80
commit 99ad365
Showing
16 changed files
with
215 additions
and
153 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!pom.xml | ||
!src | ||
!downloadDeps.sh |
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 @@ | ||
# Copyright (c) 2023 gematik - Gesellschaft für Telematikanwendungen der Gesundheitskarte mbH | ||
# Copyright (c) 2024 gematik - Gesellschaft für Telematikanwendungen der Gesundheitskarte mbH | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -17,36 +17,35 @@ | |
# used java 21 image due to different m2 respository location | ||
FROM maven:3-eclipse-temurin-21-alpine | ||
|
||
# The STOPSIGNAL instruction sets the system call signal that will be sent to the container to exit | ||
# SIGTERM = 15 - https://de.wikipedia.org/wiki/Signal_(Unix) | ||
STOPSIGNAL SIGTERM | ||
|
||
# Git Args | ||
ARG COMMIT_HASH | ||
ARG VERSION | ||
|
||
LABEL de.gematik.vendor="gematik GmbH" | ||
LABEL maintainer="[email protected]" | ||
LABEL de.gematik.app="ePA KOB Testsuite for PS" | ||
LABEL de.gematik.git-repo-name="https://gitlab.prod.ccs.gematik.solutions/git/Testtools/ePA/kob-testsuite" | ||
LABEL de.gematik.commit-sha=$COMMIT_HASH | ||
LABEL de.gematik.version=$VERSION | ||
########################### | ||
# Labels | ||
########################### | ||
LABEL de.gematik.vendor="gematik GmbH" \ | ||
maintainer="[email protected]" \ | ||
de.gematik.app="ePA KOB Testsuite for PS" \ | ||
de.gematik.git-repo-name="https://github.com/gematik/kob-Testsuite/" \ | ||
de.gematik.commit-sha=$COMMIT_HASH \ | ||
de.gematik.version=$VERSION | ||
|
||
# Default USERID and GROUPID | ||
ARG USERID=10000 | ||
ARG GROUPID=10000 | ||
|
||
RUN mkdir -p /.m2/repository | ||
RUN chown -R $USERID:$GROUPID /.m2/repository | ||
COPY . /app | ||
COPY downloadDeps.sh /app | ||
|
||
# Run as User (not root) | ||
USER $USERID:$GROUPID | ||
RUN mkdir -p /app/report | ||
|
||
# Default Working directory | ||
WORKDIR /app | ||
|
||
# Defining default Healthcheck e.g. when run without docker-compose or without healthcheck definition in it | ||
HEALTHCHECK --interval=15s --timeout=10s --start-period=15s \ | ||
CMD ["wget", "--quiet", "--tries=1", "--output-document", "-", "http://localhost:8080/actuator/health"] | ||
|
||
# Copy the resource to the destination folder and assign permissions | ||
COPY --chown=$USERID:$GROUPID src /app/src | ||
COPY --chown=$USERID:$GROUPID pom.xml /app/pom.xml | ||
RUN ./downloadDeps.sh | ||
RUN rm -f ./downloadDeps.sh | ||
|
||
# Command to be executed. | ||
ENTRYPOINT ["mvn", "clean", "verify"] | ||
ENTRYPOINT ["bash", "-c", "/app/run.sh"] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
mvn clean verify -DskipTests |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf /app/report/* | ||
mvn clean verify || true | ||
mv -v /app/target/*report.zip /app/report/ |
Oops, something went wrong.