Skip to content

Commit

Permalink
update gen script
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Sep 4, 2024
1 parent b5f0dcf commit 976c532
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions subnet/deployment-generator/scripts/generate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
VERSION_GENERATOR="generator-v1-release"
VERSION_GENERATOR="generator-ui-concept"
VERSION_GENESIS="feature-v1-release"

current_dir="$(cd "$(dirname "$0")" && pwd)"
Expand All @@ -22,19 +22,19 @@ docker pull xinfinorg/xdcsubnets:$VERSION_GENESIS


echo ''
echo 'generating configs'
echo 'go to localhost:3000 to input subnet options'
echo 'or use ssh tunnel if this is running on your server'
echo 'ssh -f -N -L localhost:3000:<ip_address>:3000 <username>@<ip_address> -i <private_key_file>'
mkdir -p generated/scripts
docker run --env-file docker.env -v $current_dir/generated:/app/generated xinfinorg/subnet-generator:$VERSION_GENERATOR || gen_success=false
if [[ $gen_success == false ]]; then
echo 'configs generation failed'
exit 1
fi
docker run -p 3000:3000 -v $current_dir/generated:/app/generated xinfinorg/subnet-generator:$VERSION_GENERATOR || gen_success=false


echo 'generating genesis.json'
docker run -v $current_dir/generated/:/app/generated/ --entrypoint 'bash' xinfinorg/xdcsubnets:$VERSION_GENESIS /work/puppeth.sh || pup_success=false
if [[ $pup_success == false ]]; then
echo 'genesis.json generation failed'
exit 1
fi
i

echo 'subnet generation successful'

0 comments on commit 976c532

Please sign in to comment.