Skip to content
Permalink
Browse files

add config git repo

  • Loading branch information...
thanhson1085 committed Jan 18, 2019
1 parent d45765d commit 4fc470a977ccba8949964489bb601eedce99e443
Showing with 8 additions and 2 deletions.
  1. +3 −1 Vagrantfile.main
  2. +3 −1 Vagrantfile.node
  3. +2 −0 config.json.example
@@ -15,6 +15,8 @@ Vagrant.configure('2') do |config|
f.write('NETWORK_ID=' + appConfig['networkId'].to_s + "\n")
f.write('VERBOSITY=' + appConfig['verbosity'].to_s + "\n")
f.write('NODE_NAME=' + appConfig['mainNodeName'].to_s + "\n")
f.write('GIT_REPO=' + appConfig['gitRepo'].to_s + "\n")
f.write('GIT_BRAND=' + appConfig['gitBrand'].to_s + "\n")
f.close
f = File.new(sshKeysFile, 'w')
sshKeys.each do |sshKey|
@@ -46,7 +48,7 @@ Vagrant.configure('2') do |config|
export PATH=$PATH:/usr/local/go/bin
echo "export PATH=$PATH:/usr/local/go/bin" >> /root/.bashrc
mkdir -p ${HOME}/go/src/github.com/ethereum/
cd ${HOME}/go/src/github.com/ethereum/ && git clone https://github.com/tomochain/tomochain.git go-ethereum
source .env && cd ${HOME}/go/src/github.com/ethereum/ && git clone ${GIT_REPO} go-ethereum && cd go-ethereum && git checkout origin/${GIT_BRAND}
cd ${HOME}/go/src/github.com/ethereum/go-ethereum && make all
curl -sSL https://get.docker.com/ | sh
@@ -23,6 +23,8 @@ Vagrant.configure('2') do |config|
f.write('NODE_NAME=' + node['name'] + "\n")
f.write('VERBOSITY=' + appConfig['verbosity'].to_s + "\n")
f.write('RESIGN_BLOCK_NUMBER=' + node['resignBlockNumber'].to_s + "\n")
f.write('GIT_REPO=' + appConfig['gitRepo'].to_s + "\n")
f.write('GIT_BRAND=' + appConfig['gitBrand'].to_s + "\n")
f.close
f = File.new(sshKeysFile, 'w')
sshKeys.each do |sshKey|
@@ -54,7 +56,7 @@ Vagrant.configure('2') do |config|
export PATH=$PATH:/usr/local/go/bin
echo "export PATH=$PATH:/usr/local/go/bin" >> /root/.bashrc
mkdir -p ${HOME}/go/src/github.com/ethereum/
cd ${HOME}/go/src/github.com/ethereum/ && git clone https://github.com/tomochain/tomochain.git go-ethereum
source .env && cd ${HOME}/go/src/github.com/ethereum/ && git clone ${GIT_REPO} go-ethereum && cd go-ethereum && git checkout origin/${GIT_BRAND}
cd ${HOME}/go/src/github.com/ethereum/go-ethereum && make tomo
(crontab -u root -l; echo "*/2 * * * * bash /vagrant/apply.sh >> /vagrant/apply.log 2>&1" ) | crontab -u root -
@@ -7,6 +7,8 @@
"networkId": 89,
"verbosity": 4,
"sshKeys": [],
"gitRepo": "https://github.com/tomochain/tomochain.git",
"gitBrand": "master",
"coinbasePrivateKeyFullNode": "xxx",
"nodes": [
{

0 comments on commit 4fc470a

Please sign in to comment.
You can’t perform that action at this time.