Repository navigation
Expand file tree
/
Copy pathtask.sh
More file actions
executable file
·42 lines (41 loc) · 1.45 KB
/
Copy pathtask.sh
File metadata and controls
executable file
·42 lines (41 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
case $1 in
"services:up")
cp -n docker/.env.example docker/.env && docker compose --env-file=docker/.env -f docker/services.yml up --build
;;
"services:up:bg")
cp -n docker/.env.example docker/.env
docker compose --env-file=docker/.env -f docker/services.yml up --build -d
;;
"services:down")
docker compose --env-file=docker/.env -f docker/services.yml down -v
;;
"customer-svc:run")
./mvnw -pl customer-svc spring-boot:run
;;
"customer-svc:install")
./mvnw clean install -Pcustomer-svc
;;
"customer-svc:test-report")
./mvnw -pl customer-svc jacoco:report
echo -e "\nClick in the link below to open the report on the default browser:\n"
echo -e "file://$(pwd)/customer-svc/target/site/jacoco/index.html\n"
;;
"services:db:ssh")
docker exec -it secure-api-spring-postgresql bash
;;
"docker:jenkins:up")
docker compose -f docker/jenkins/jenkins-agent.yml up --build
;;
"docker:jenkins:bash")
docker exec -it jenkins_agent bash
;;
"auth-lib:test-report")
./mvnw -pl auth-lib jacoco:report
echo -e "\nClick in the link below to open the report on the default browser:\n"
echo -e "file://$(pwd)/auth-lib/target/site/jacoco/index.html\n"
;;
*)
echo "Invalid task name: $1. Please provide a valid task name."
;;
esac