This repository is for the OZG info manager.
Getting Started
Note: Docker needs to run to run the build tests being executed on gradle build
.
Reference Documentation
For further reference, please consider the following sections:
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- gRPC
- Spring Boot Actuator
- Spring Data MongoDB
- Spring Boot DevTools
Guides
The following guides illustrate how to use some features concretely:
Properties
Name | Description | Default value |
---|---|---|
ozgcloud.infomanager.allowed-client-names | List of names of grpc clients allowed to access the getServiceUrlOfNachricht | Antragsraum |
ozgcloud.infomanager.postfach-id-key-name | Name of the key used to read the postfach id from the auth token | legacyPostkorbHandle |
Useful commands
Create an entry using grpcurl:
Add a 'Nachricht' to the database using grpcUrl:
./grpcurl --plaintext -d '{"nachricht": {"postfachId": "28721c6f-b78f-4d5c-a048-19fd2fc429d2", "nachrichtenListUrl":"static://localhost:9091"}}' localhost:9091 de.mgm.bup.ozg.antragsraum.infomanager.NachrichtService.SaveNewNachricht
Query the InfoManager for available services
./grpcurl --plaintext localhost:9091 list
See setup details here: https://wiki.mgm-tp.com/confluence/x/dwMkEw
docker run -p 9090:9090 -p 8081:8081 dockerregistry.mgm-tp.com/com.mgmtp.bup.ozg/ozg-info-manager:0.0.1-9.b1aa5f2-SNAPSHOT
Run it from commandline use:
./mvnw spring-boot:run -Dspring-boot.run.profiles=local -pl info-manager-server
at the info-manager root directory