Skip to content
Permalink
Browse files

fix bugs node up

  • Loading branch information...
thanhson1085 committed Jan 19, 2019
1 parent 4fc470a commit 177b91da3613b735713d10b777874cd8daff9596
Showing with 5 additions and 5 deletions.
  1. +2 −2 Vagrantfile.main
  2. +3 −3 Vagrantfile.node
@@ -33,7 +33,7 @@ Vagrant.configure('2') do |config|
provider.token = appConfig['doApiToken']
provider.image = 'ubuntu-18-04-x64'
provider.region = 'sgp1'
provider.size = 'c-4'
provider.size = '8gb'
end

config.vm.synced_folder ".", "/vagrant", type: "rsync",
@@ -48,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/
source .env && cd ${HOME}/go/src/github.com/ethereum/ && git clone ${GIT_REPO} go-ethereum && cd go-ethereum && git checkout origin/${GIT_BRAND}
cd /vagrant && 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
@@ -41,7 +41,7 @@ Vagrant.configure('2') do |config|
provider.token = appConfig['doApiToken']
provider.image = 'ubuntu-18-04-x64'
provider.region = node['region']
provider.size = 'c-4'
provider.size = '8gb'
end

config.vm.synced_folder ".", "/vagrant", type: "rsync",
@@ -56,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/
source .env && cd ${HOME}/go/src/github.com/ethereum/ && git clone ${GIT_REPO} go-ethereum && cd go-ethereum && git checkout origin/${GIT_BRAND}
cd /vagrant && 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 -
@@ -73,7 +73,7 @@ Vagrant.configure('2') do |config|
nohup bash ./node.sh<&- &>/vagrant/node.log &
HOST_IP=`ifconfig | grep 'inet' | grep -v inet6 | grep -v '127.0.0.1' | grep -v 'broadcast 172.*.255.255' | awk '{ print $2}'`
consul -http-addr=${MAIN_IP}:8500 kv put tomochain/${HOST_IP} 1
consul kv put -http-addr=${MAIN_IP}:8500 tomochain/${HOST_IP} 1
cat .sshKeys >> ~/.ssh/authorized_keys
SHELL

0 comments on commit 177b91d

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