Commit 6378a11c authored by Sergey Shiktarev's avatar Sergey Shiktarev
Browse files

Merge branch 'master' of gitlab.wvservices.com:pub/node-config-generator

parents 67faf7a5 70117d92
output
temp
genesis_backup.conf
First:
pip install -r requirements.txt
python3 -m pip install -r requirements.txt
Usage:
-c Seed letter A-Z
......@@ -10,4 +10,4 @@ Usage:
--existing-genesis [yes|no] (default: no), use genesis from previous generation if genesis_backup.conf exists.
Example:
./launcher.py -c A -w no -a 3 -p <wallet password> --create-configmap yes
./launcher.py -c A -w no -a 3 -p <wallet password>
......@@ -4,7 +4,7 @@ from pyhocon import HOCONConverter
from optparse import OptionParser
from shutil import copyfile
from pprint import pprint
import urllib.request
import requests
import subprocess
import random
import codecs
......@@ -75,7 +75,9 @@ if __name__=="__main__":
if os.path.exists(dst_jcp):
shutil.rmtree(dst_jcp)
os.mkdir(dst_jcp)
urllib.request.urlretrieve('https://artifacts.vostokservices.com/repository/fileshare/node_build/jcp-2.0.39014.tar.gz', "{}/{}".format(dst_jcp, jcp_name))
r = requests.get('https://artifacts.vostokservices.com/repository/fileshare/node_build/jcp-2.0.39014.tar.gz')
with open('{}/{}'.format(dst_jcp,jcp_name), 'wb') as f:
f.write(r.content)
build_image_cmd = [docker, 'build', '-t', 'node_config_generator', '.']
subprocess.run(build_image_cmd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment