Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/feature/docker-kill-improvements'
Browse files Browse the repository at this point in the history
# Conflicts:
#	bootseqs/release-v1.1/boot.sh
  • Loading branch information
abourget committed Aug 2, 2018
2 parents 1d9d05f + a2e24aa commit febb4b9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 8 additions & 2 deletions bootseqs/launch-clone/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
#
# This process must not BLOCK.

docker kill -s TERM nodeos-bios || true
docker rm nodeos-bios || true
# Just in case, maybe delete the previous temp that might have not been deleted before
docker rm nodeos-bios-temp &> /dev/null || true

docker rename nodeos-bios nodeos-bios-temp || true
docker kill -s TERM nodeos-bios-temp || true

echo "Copying base config"
cp base_config.ini config.ini
Expand Down Expand Up @@ -43,3 +46,6 @@ echo "Waiting 2 secs for nodeos to launch through Docker"
sleep 2

echo "See output.log for details logs"

# We put this here to let time for the actual kill to happen
docker rm nodeos-bios-temp || true
12 changes: 9 additions & 3 deletions bootseqs/release-v1.1/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
#
# This process must not BLOCK.

docker kill -s TERM nodeos-bios || true
docker rm nodeos-bios || true
# Just in case, maybe delete the previous temp that might have not been deleted before
docker rm nodeos-bios-temp &> /dev/null || true

docker rename nodeos-bios nodeos-bios-temp || true
docker kill -s TERM nodeos-bios-temp || true

echo "Copying base config"
cp base_config.ini config.ini
Expand All @@ -29,7 +32,7 @@ sudo rm -rf /tmp/nodeos-data
echo "Running 'nodeos' through Docker."
docker run -ti --rm --detach --name nodeos-bios \
-v `pwd`:/etc/nodeos -v /tmp/nodeos-data:/data \
-p 8888:8888 -p 9876:9876 \
-p 127.0.0.1:8888:8888 -p 127.0.0.1:9876:9876 \
gcr.io/eoscanada-public/eosio-nodeos-prod:v1.1.1 \
/opt/eosio/bin/nodeos --data-dir=/data \
--config-dir=/etc/nodeos \
Expand All @@ -45,3 +48,6 @@ echo "Waiting 2 secs for nodeos to launch through Docker"
sleep 2

echo "See output.log for details logs"

# We put this here to let time for the actual kill to happen
docker rm nodeos-bios-temp || true

0 comments on commit febb4b9

Please sign in to comment.