-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore archive node filesystem archive from s3 (#277)
* add new image * break out download and extract steps * nice messages * nice messages * use teztnets v10 snapshot * cleanup * revert comment * remove testing if statement * use mainnet filesystem snapshot * move tarbal download to separate script * restore default snapshot-downloader behavior * set up helpers and containers * copy new tarball script into utils container * typo in script name in dockerfile * add to entrypoint * add tarball-downloader command * fix helpers var, add init container * remove /var/tezos/node and remove version * chmod script * document snapshot download feature usage in values * rearrange doc * fix doc * exit on error and change doc * remove alphanet copy * put alphanet back * take out cp * add storageclass for node volumes * new curl and rm identity.json for helpful logging * cannot use both snapshot_url and tarball_url * extra dash * remove alphanet_version file copy since it was failing Co-authored-by: Nicolas Ochem <[email protected]>
- Loading branch information
1 parent
667a197
commit 2f118ec
Showing
9 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
data_dir="/var/tezos" | ||
node_dir="$data_dir/node" | ||
node_data_dir="$node_dir/data" | ||
|
||
|
||
if [ -d /var/tezos ] ; then | ||
if [ ! -d $node_data_dir/context ]; then | ||
echo "Did not find pre-existing data, importing blockchain" | ||
rm -rf $node_data_dir | ||
mkdir -p $node_data_dir | ||
curl -LfsS "$TARBALL_URL" | lz4 -d | tar -x -C /var/tezos | ||
rm -fv $node_data_dir/identity.json | ||
fi | ||
else | ||
echo "/var/tezos does not exist." | ||
echo "Error!" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
chown -R 100 /var/tezos | ||
ls -lR /var/tezos |