Skip to content

Repository files navigation

DHBW-WE2

Installation

To install this project, copy the file kustomization.yaml and run:

kubectl apply -k . --prune -l app.kubernetes.io/part-of=biletado -n biletado
kubectl wait pods -n biletado -l app.kubernetes.io/part-of=biletado --for condition=Ready --timeout=120s

update lock-file

mvn io.github.chains-project:maven-lockfile:generate

from within a container

podman run --rm -it -v $PWD:/app --security-opt="label=disable" --workdir=/app $(cat Containerfile | sed -nE 's~FROM (docker.io/library/maven:.*) as builder~\1~p') mvn io.github.chains-project:maven-lockfile:generate

Build from source

To build and run this project from source, first make sure you have podman installed and a kind cluster created. Now you can clone this repository and make your changes to it and then run the following script.

./run.sh

Configuration

This project uses Spring boot as the framework, for a list of all properties supported by spring click here. To configure this project, you can either use env variables or provide a property file, for more info click here or here.

Useful properties

Name Description Default
SPRING_SERVER_PORT The port of the application 9000
JERSEY_APPLICATION_PATH The base path of the application api/v2/assets
POSTGRES_ASSETS_HOST Database host name -
POSTGRES_ASSETS_PORT Database port -
POSTGRES_ASSETS_DBNAME Database name -
POSTGRES_ASSETS_USER Database user name -
POSTGRES_ASSETS_PASSWORD Database password -
LOGGING_LEVEL_ROOT Debug level of default logger -
LOGGING_CONFIG Log4j2 configuration file location -
KEYCLOAK_HOST Keycloak host name keycloak
KEYCLOAK_REALM Keycloak realm biletado

For a list of log level click here. To see how to configure logging click here. To log messages in ecs format set the env variable LOGGING_CONFIG to classpath:log4j2-ecs.xml.

License

This Project is licensed under MIT.

About

clone of https://gitlab.com/biletado/backend/assets/the-real-one for GitHub Actions show-case

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages