forked from gematik/TI-Messenger-Testsuite
-
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.
gematik#57 dockerize Testsuite for local testtreiber development
- Loading branch information
1 parent
24f1c77
commit 5c1880c
Showing
5 changed files
with
38 additions
and
15 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,9 +1,7 @@ | ||
FROM maven:3.6.3-openjdk-17-slim | ||
|
||
#FROM maven:3.9.9-eclipse-temurin-23-alpine | ||
WORKDIR /testsuite | ||
COPY --chown=user:group . /testsuite | ||
COPY entrypoint.sh /usr/local/bin/ | ||
RUN mvn clean compile test-compile | ||
|
||
WORKDIR /testsuite | ||
|
||
RUN ["chmod", "+x", "/usr/local/bin/entrypoint.sh"] | ||
ENTRYPOINT ["/usr/local/bin/entrypoint.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# KoSyMa Developer Manual | ||
|
||
## Current situation | ||
Gematik only supports maven 3.6.3 with jdk17. Any higher version leads to compilation errors. | ||
It was forecasted to be upgraded to maven 3.8.6 end of 2025 (whereas the latest maven version today, 12. Feb 2024 is already 3.9.9) | ||
|
||
## Running the testsuite | ||
To avoid the maven problem, we can run the testsuite from Docker. | ||
|
||
```shell | ||
# open terminal 1 | ||
cd ti-messenger-client/testtreiber | ||
npm run testtreiber | ||
# 🚀 Server running at: http://localhost:3010 | ||
# 🚀 Server running at: http://localhost:3000 | ||
# 🚀 Server running at: http://localhost:3030 | ||
# 🚀 Server running at: http://localhost:3020 | ||
|
||
# open terminal 2 | ||
cd TI-Messenger-Testsuite | ||
docker build -f ./Dockerfile -t tiger . | ||
docker run -it --network=host tiger /bin/bash | ||
# inside the docker container make sure you are in /testsuite | ||
mvn verify | ||
``` |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
tigerProxy: | ||
proxyRoutes: | ||
- from: http://testdriverApi_A_LINUX_Client | ||
to: http://localhost:3000 | ||
to: http://host.docker.internal:3000 | ||
- from: http://testdriverApi_B_LINUX_Client | ||
to: http://localhost:3010 | ||
to: http://host.docker.internal:3010 | ||
- from: http://testdriverApi_C_LINUX_Client | ||
to: http://localhost:3020 | ||
to: http://host.docker.internal:3020 | ||
- from: http://testdriverApi_D_LINUX_Orgadmin | ||
to: http://localhost:3030 | ||
to: http://host.docker.internal:3030 |