Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
node config generator
Commits
6378a11c
Commit
6378a11c
authored
Sep 25, 2019
by
Sergey Shiktarev
Browse files
Merge branch 'master' of gitlab.wvservices.com:pub/node-config-generator
parents
67faf7a5
70117d92
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
6378a11c
output
temp
genesis_backup.conf
README.md
View file @
6378a11c
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
>
launcher.py
View file @
6378a11c
...
...
@@ -4,7 +4,7 @@ from pyhocon import HOCONConverter
from
optparse
import
OptionParser
from
shutil
import
copyfile
from
pprint
import
pprint
import
urllib.
request
import
request
s
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
)
...
...
requirements.txt
t
→
requirements.txt
View file @
6378a11c
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment