-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_images.sh
executable file
·54 lines (36 loc) · 1.81 KB
/
create_images.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
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage create_images.sh <supersede@supersede.es.atos.net password>"
exit 1
fi
echo -e "\nStarting Docker Image. Please, provide sudo password to start Docker service ...\n"
sudo service docker start
echo -e "\nBuilding Postgresql Image ...\n"
cd postgresql/ && docker build -t supersede/postgres .
echo -e "\nBuilding Mysql Image ...\n"
cd ../mysql/ && docker build -t supersede/mysql .
echo -e "\nBuilding Apache Image ...\n"
cd ../apache/ && docker build -t supersede/apache .
echo -e "\nBuilding WSO2 IS Image ...\n"
cd ../wso2_is/ && docker build -t supersede/is .
echo -e "\nBuilding WSO2 DSS Image ...\n"
cd ../wso2_dss/ && docker build -t supersede/dss .
echo -e "\nBuilding WSO2 ESB Image ...\n"
cd ../wso2_esb/ && docker build -t supersede/esb .
echo -e "\nBuilding WSO2 MB Image ...\n"
cd ../wso2_mb/ && docker build -t supersede/mb .
echo -e "\nBuilding SUPERSEDE Backend Services Image ...\n"
cd ../tomcat-be/ && ./build_be_image.sh $1
echo -e "\nBuilding SUPERSEDE Frontend Services Image ...\n"
echo -e "\nRetrieving SUPERSEDE Frontend Services from CI/CD Server ...\n"
cd ../tomcat-fe/ && ./build_fe_image.sh $1
echo -e "\nBuilding SUPERSEDE Replan Controller Image ...\n"
cd ../replan_controller/ && docker build -t supersede/replan-controller .
echo -e "\nBuilding SUPERSEDE Dynamic Adaptation Adapter Image ...\n"
cd ../adapter/ && docker build -t supersede/adapter .
echo -e "\nBuilding SUPERSEDE Dynamic Adaptation DM Optimizer Image ...\n"
cd ../dm_optimizer/ && docker build -t supersede/dm-optimizer .
echo -e "\nBuilding SUPERSEDE MDM Frontend Image ...\n"
cd ../mdm-frontend/ && docker build -t supersede/mdm-frontend .
echo -e "\nBuilding SUPERSEDE Dynamic Adaptation DM Optimizer Image ...\n"
cd ../mdm-storage/ && docker build -t supersede/mdm-storage .