-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-local.sh
64 lines (44 loc) · 1.25 KB
/
build-local.sh
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
export repo="ghcr.io/catenax-ng/product-test-data-generator"
export hostname="192.168.1.115"
export realm="master"
export client="tdg-ui"
export secret="EnrVFciew6YuNQLsIZZqX58ux8Qa1fHw"
cd tdg
pwd
mvn clean package
image="$repo/tdg:main"
docker build -f ./src/main/docker/Dockerfile -t $image .
cd ..
cd tdg-admin-ui
pwd
mvn clean package
image="$repo/tdg-admin-ui:main"
docker build -f ./src/main/docker/Dockerfile -t $image .
cd ..
cd local-docker
pwd
# Database parameters
export TDG_DB_HOSTNAME="db"
export TDG_DB_PORT="27017"
export TDG_DB_NAME="tdg"
export TDG_DB_USERNAME="admin"
export TDG_DB_PASSWORD="admin"
# API Server parameters
export TDG_HOST_SECURE="false"
export TDG_HOST_NAME="$hostname"
export TDG_HOST_PORT="8080"
export TDG_HOST_PORT_EXTERNAL="$TDG_HOST_PORT"
export TDG_API_KEY="SPEEDBOAT"
export TDG_API_ENDPOINT="/api"
# Admin parameters
export TDG_ADMIN_HOST_SECURE="false"
export TDG_ADMIN_HOST_NAME="$hostname"
export TDG_ADMIN_HOST_PORT="8090"
# Please install keycloak and set values here
export TDG_IAM_SERVER_URL=http://${hostname}:9001/auth
export TDG_IAM_RESOURCE=${client}
export TDG_IAM_REALM=${realm}
export TDG_IAM_SECRET=${secret}
docker-compose up -d # --build --force-recreate --renew-anon-volumes
cd ..