GithubHelp home page GithubHelp logo

poc-dsr-gms's Introduction

GMS - Geräte Management Service

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/ .

Configure

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.

Running the application in dev mode

You can run the GMS application in dev mode that enables live coding using:

mvn compile quarkus:dev

Packaging and running the application in prod mode

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.

You can run the GMS application locally without live coding

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

Local start of application with docker-compose

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

Health Check - localhost

http://localhost:9000/management/health
http://localhost:9000/management/health/live
http://localhost:9000/management/health/ready

Metrics

http://localhost:9000/management/metrics

poc-dsr-gms's People

Contributors

gematik-entwicklung avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.