forked from alexscheitlin/master-project-evoting
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-up.sh
executable file
·44 lines (34 loc) · 1.08 KB
/
docker-up.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
#!/bin/bash
shouldBuild=0
echo '##############################################'
echo '# STARTING E-VOTING SYSTEM #'
echo '##############################################'
echo
if [[ $1 == '--build' ]]; then
echo '> building docker containers'
shouldBuild=1
else
echo '> using existing containers...'
echo '> if you wish to build the docker containers, run:'
echo '> ./docker-up.sh --build'
fi
echo
echo '> starting Voting Authority'
./voting-authority/docker-start.sh $shouldBuild
echo
echo '> starting Access Provider Backend'
./access-provider-backend/docker-start.sh $shouldBuild
echo
echo '> starting Identity Provider Backend'
./identity-provider-backend/docker-start.sh $shouldBuild
echo
echo '> starting 3 Blockchain Sealer Nodes'
./poa-blockchain/scripts/dev-chain-sealers.sh $shouldBuild
echo
echo '> starting Blockchain Explorer Dashboard'
./ethstats/docker-start.sh $shouldBuild
echo
echo '-------------------------------------------------'
echo '> Running Docker Containers'
echo '-------------------------------------------------'
docker ps