Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit with a failure if we fail to create Docker network snapshot #501

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tools/docker-network/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash


# Create a function to join an array of strings by a given character
function join { local IFS="$1"; shift; echo "$*"; }

Expand Down Expand Up @@ -52,7 +51,11 @@ docker run --rm \
golang:1.21 go run -tags=rocksdb . --config docker --seed 7R1itJx5hVuo9w9hjg5cwKFmek4HMSoBDgJZN8hKGxih

# Move and set permissions for the .snapshot file
mv -f ../genesis-snapshot/*.snapshot .
if ! mv -f ../genesis-snapshot/*.snapshot .; then
echo "Failed to create or move snapshot file"
exit 1
fi

chmod o+r *.snapshot

echo "Run iota-core network"
Expand Down