Skip to content
Closed
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
11 changes: 10 additions & 1 deletion docker/files/run/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,16 @@ function start_new_private_network() {
fi
fi
sed -i "s/NUM_ROUNDS/${NUM_ROUNDS:-30000}/" "/node/run/$TEMPLATE"
goal network create --noclean -n dockernet -r "${ALGORAND_DATA}/.." -t "/node/run/$TEMPLATE"

# Check if keys are mounted, and if so, copy them over
# Use pregen keys in network create command
if [ -d "/etc/algorand/keys" ]; then
cp -r /etc/algorand/keys /node/run/keys
goal network create --noclean -n dockernet -r "${ALGORAND_DATA}/.." -t "/node/run/$TEMPLATE" -p "/node/run/keys"
else
goal network create --noclean -n dockernet -r "${ALGORAND_DATA}/.." -t "/node/run/$TEMPLATE"
fi

configure_data_dir
start_private_network
}
Expand Down