Backend for the AurumBanking-Banking App.
For the detailed documentation, please following the steps.
- run on on root path of this project:
- linux, mac:
sh assemble-docs.sh
- windows:
./assemble-docs.sh
- linux, mac:
python -m pip install mkdocs
python -m pip install mkdocs-material
python -m mkdocs serve --dev-addr 127.0.0.1:4242
Run Backend on PROD
- start in the root dir of this project
- run this shell scrip:
- linix/mac:
sh run.sh
- windows:
./run.sh
- linix/mac:
- press y/yes to build the entire project:
- after build finish, press number 5 to run all docker-compose files:
- now we can see the services running
-
go to browser:
http://localhost/dashboard/
-
insert this credetials:
user
123
-
here is the dashboard on prod:
DEV-UI
http://localhost:8080/q/dev-ui/io.quarkus.quarkus-smallrye-openapi/swagger-ui
http://localhost:8080/q/dev-ui/io.quarkus.quarkus-kafka-client/topics
http://localhost:8080/dashboard/#/
Prometheus & Grafana in PROD
- Traefk-Dashboard: http://localhost/dashboard/
- Prometheus: http://localhost/prometheus
- Grafana: http://localhost/metrics-ui-service/login
- Jaeger-Tracing: http://localhost/tracing/search
run mkdocs locally
python -m pip install mkdocs
python -m pip install mkdocs-material
python -m mkdocs serve --dev-addr 127.0.0.1:4242
Setup-Pipeline
_token:_
- linux: _glrt-xznuGhoqctjSmbVNxpm_
- windows-hoang: _glrt-xznuGhoqctjSmbVNxpm_ / _glrt-aHawSL4WALWi1s6BXdVi_
- steffan-gitlab-runner: _glrt-Fzfyj9euFsuo1f_szyUo_
- milena-gitlab-runner: _glrt-pzYxkWTn55mxxy4S4hXA_
- salma-gitlab-runner: _glrt-sQu4HSKd7RgotJkPHwCn_
docker run --rm -it -v gitlab-runner-config:/etc/gitlab-runner gitlab/gitlab-runner:latest register .\gitlab-runner.exe register --url https://git.ai.fh-erfurt.de --token [$token einfügen]
- Enter the GitLab instance URL (for example, https://gitlab.com/): [https://git.ai.fh-erfurt.de]: [Enter]
- Enter a name for the runner. This is stored only in the local config.toml file: aurumbanking-gitlab-runner
- Enter an executor: parallels, virtualbox, docker, docker-autoscaler, instance, custom, shell, ssh, docker-windows, docker+machine, kubernetes: docker
- Enter the default Docker image (for example, ruby:2.7): jdk:17
docker run -d --name gitlab-runner --restart always -v /var/run/docker.sock:/var/run/docker.sock -v gitlab-runner-config:/etc/gitlab-runner gitlab/gitlab-runner:latest
docker exec -it gitlab-runner /bin/bash
- apt update
- apt install nano
- nano /etc/gitlab-runner/config.toml --> set: privileged = true
Pipeline Running Rules
Set the branch name like the following rules, so only certain service related part of the entire pipeline will be executed.
Customer Information Service
-
Prepare Build Cache
- Runs for branches matching:
feature/customer-information-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build
- Runs for branches matching:
feature/customer-information-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build Image
- Runs for branches matching:
feature/customer-information-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
Depot Service
-
Prepare Build Cache
- Runs for branches matching:
feature/depot-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build
- Runs for branches matching:
feature/depot-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build Image
- Runs for branches matching:
feature/depot-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
Login Service
-
Prepare Build Cache
- Runs for branches matching:
feature/login-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build
- Runs for branches matching:
feature/login-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build Image
- Runs for branches matching:
feature/login-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
Support Service
-
Prepare Build Cache
- Runs for branches matching:
feature/support-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build
- Runs for branches matching:
feature/support-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build Image
- Runs for branches matching:
feature/support-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
Transaction Service
-
Prepare Build Cache
- Runs for branches matching:
feature/transaction-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build
- Runs for branches matching:
feature/transaction-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build Image
- Runs for branches matching:
feature/transaction-service
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
Documentation
-
Prepare Documentation Pages
- Runs for branches matching:
docs/
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching:
-
Build Documentation Pages
- Runs for branches matching:
docs/
- Also runs for the branch:
test/permant
andmain
- Runs for branches matching: