-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.sh
27 lines (23 loc) · 832 Bytes
/
start.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
#!/bin/bash
# use this when you have completed trusted setup
# start containers
cd "$(dirname "${BASH_SOURCE[0]}")"
if [ "$( docker container inspect -f '{{.State.Status}}' zk-ganache )" == "running" ]; then
cd server && docker-compose up -d
cd ..
elif [ "$( docker container inspect -f '{{.State.Status}}' zk-ganache )" == "exited" ]; then
cd contracts && docker-compose up -d zk-ganache
cd ../server && docker-compose up -d
cd ..
else
cd contracts && docker-compose up -d
cd ../server && docker-compose up -d
cd ..
fi
# import postman collection
# create: zkp -> registry
# transfer: registry
# split/join: (registry ->) zkp -> registry
# open shell to project/script
# docker run --rm -it --name zk-proj --network="host" -v $(pwd):/opt/proj -u $(id -u) -w /opt/proj -e HOME=/tmp/ node bash
# not tested yet