Skip to content

Commit

Permalink
Changing docker-compose to docker compose (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Cloud User <[email protected]>
  • Loading branch information
arp and Cloud User authored May 20, 2022
1 parent c639f6d commit 96f5dd8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/setup/devnet/templates/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```bash
# start heimdall0
$ docker-compose up -d heimdall0
$ docker compose up -d heimdall0

# exec bash into heimdall0
$ docker exec -i -t heimdall0 bash
Expand Down Expand Up @@ -42,4 +42,4 @@ $ bash docker-bor-start-all.sh

```bash
$ bash docker-clean.sh
```
```
4 changes: 2 additions & 2 deletions src/setup/devnet/templates/docker/docker-bor-setup.sh.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ for i in {0..{{ obj.totalNodes - 1 }}}
do
NODE_DIR=/root/.bor
DATA_DIR=/root/.bor/data
docker-compose run --rm bor$i sh -c "
docker compose run --rm bor$i sh -c "
bor --datadir $DATA_DIR init $NODE_DIR/genesis.json;
cp $NODE_DIR/nodekey $DATA_DIR/bor/;
cp $NODE_DIR/static-nodes.json $DATA_DIR/bor/;
"
done

echo "Setup done!"
echo "Setup done!"
2 changes: 1 addition & 1 deletion src/setup/devnet/templates/docker/docker-bor-start.sh.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ADDRESS=${ADDRESSES[$INDEX]};
NODE_DIR=/root/.bor
DATA_DIR=/root/.bor/data

docker-compose run --service-ports -d --name bor$INDEX bor$INDEX sh -c "
docker compose run --service-ports -d --name bor$INDEX bor$INDEX sh -c "
touch /root/logs/bor.log
bor --datadir $DATA_DIR \
--port 30303 \
Expand Down
2 changes: 1 addition & 1 deletion src/setup/devnet/templates/docker/docker-clean.sh.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PRIV_VALIDATOR_STATE="{
}"

# stop and remove docker containers
docker-compose down
docker compose down

# clean repo
for i in {0..{{ obj.totalNodes - 1 }}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x #echo on

DATA_DIR={{ ganache.dbName }}

docker-compose run --rm --service-ports --name ganache ganache --hardfork istanbul \
docker compose run --rm --service-ports --name ganache ganache --hardfork istanbul \
--blockTime 1 \
--db /root/data/$DATA_DIR \
{% for acc in obj.config.accounts %}--account {{ acc.privateKey }},1000000000000000000000 {% endfor %}\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

INDEX=$1

docker-compose run -d --service-ports --name heimdall$INDEX heimdall$INDEX bash -c "
docker compose run -d --service-ports --name heimdall$INDEX heimdall$INDEX bash -c "
touch /root/heimdall/logs/heimdalld.log & touch /root/heimdall/logs/bridge.log & touch /root/heimdall/logs/heimdalld-rest-server.log &
heimdalld start > /root/heimdall/logs/heimdalld.log 2>&1 &
heimdalld rest-server > /root/heimdall/logs/heimdalld-rest-server.log 2>&1 &
Expand Down

0 comments on commit 96f5dd8

Please sign in to comment.