Part of the PoC Device Security Rating (DSR)
This project uses Quarkus, the Supersonic Subatomic Java Framework.
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
In script configure.sh: modify both openssl parameter "subj" in this script before run.
./configure.sh
Set your values in src/main/resources/credentials/gematik-app-dev-apis-4644a13c06cb.json.
You can run the GMS application in dev mode that enables live coding using:
mvn compile quarkus:dev
The application can be packaged using:
mvn package
Maven -DskipTests is not necessary because we didn't publish unit tests for privacy reasons. Tests require a lot of private data.
It produces the quarkus-run.jar
file in the target/quarkus-app/
directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/
directory.
First start Postgres DBMS: run gms-docker-dev/docker-compose_local-DEV.yml
docker-compose --project-name gms -f gms-docker-dev/docker-compose_local-DEV.yml up -d
java -Dquarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/gms-db -Dquarkus.datasource.password=no_secret -Dquarkus.datasource.username=dsr-gms_user -jar target/quarkus-app/quarkus-run.jar
Prerequisite for the local deployment are the following two host names for the localhost IP 127.0.0.1
NOTE: on Windows entered in the hosts file (usually located under C:\Windows\System32\drivers\etc)
127.0.0.1 dsr.gms
127.0.0.1 dsr.gms-mtls
Build the GMS image locally
mvn package -ntp -DskipTests -Dquarkus.container-image.build=true
http://localhost:9000/management/health
http://localhost:9000/management/health/live
http://localhost:9000/management/health/ready