-
Notifications
You must be signed in to change notification settings - Fork 0
/
startAll.sh
executable file
·32 lines (28 loc) · 1.25 KB
/
startAll.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
#!/bin/bash
echo "Removing executing containers..."
for container_name in insurer taker; do
if [ "$( docker container inspect -f '{{.State.Running}}' catedrabob-spc19-ens-$container_name )" == "true" ]; then
echo "Removing container catedrabob-spc19-ens-$container_name ..."
docker rm -f catedrabob-spc19-ens-$container_name
fi
done
echo "Building image..."
docker build -t catedrabob-spc19-ens .
echo "Running container catedrabob-spc19-ens-taker..."
docker run -d \
--name catedrabob-spc19-ens-taker \
-e PRIVACYGROUPID=7LGGJ9igv9hZvgyLtTF7hTtisABHmFsNZLhsTzBPS2M= \
-e BESUNODEURL=http://spc19-test-network_member2besu_1:8545 \
-e BESUNODEWSURL=ws://spc19-test-network_member2besu_1:8546 \
-e CONTRACTABIFILE=PCR.json \
--network spc19-test-network_quorum-dev-quickstart \
catedrabob-spc19-ens
echo "Running container catedrabob-spc19-ens-insurer..."
docker run -d \
--name catedrabob-spc19-ens-insurer \
-e PRIVACYGROUPID=DyAOiF/ynpc+JXa2YAGB0bCitSlOMNm+ShmB/7M6C4w= \
-e BESUNODEURL=http://spc19-test-network_member1besu_1:8545 \
-e BESUNODEWSURL=ws://spc19-test-network_member1besu_1:8546 \
-e CONTRACTABIFILE=Insurance.json \
--network spc19-test-network_quorum-dev-quickstart \
catedrabob-spc19-ens