mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-29 00:32:14 +00:00
Update Vagrantfile to xenial (16.04 LTS)
Note default username changed from vagrant to ubuntu in the base image.
This commit is contained in:
parent
7e3a5b7ce8
commit
c84494b36b
23
Vagrantfile
vendored
23
Vagrantfile
vendored
@ -2,7 +2,7 @@
|
|||||||
# vi: set ft=ruby :
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
config.vm.box = "ubuntu/trusty64"
|
config.vm.box = "ubuntu/xenial64"
|
||||||
|
|
||||||
config.vm.provider "virtualbox" do |v|
|
config.vm.provider "virtualbox" do |v|
|
||||||
v.memory = 4096
|
v.memory = 4096
|
||||||
@ -11,29 +11,30 @@ Vagrant.configure("2") do |config|
|
|||||||
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends wget curl jq shellcheck bsdmainutils psmisc
|
apt-get install -y --no-install-recommends git wget curl jq \
|
||||||
|
make shellcheck bsdmainutils psmisc
|
||||||
|
|
||||||
wget -qO- https://get.docker.com/ | sh
|
wget -qO- https://get.docker.com/ | sh
|
||||||
usermod -a -G docker vagrant
|
usermod -a -G docker vagrant
|
||||||
apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
|
|
||||||
apt-get install -y --no-install-recommends git
|
|
||||||
curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
|
curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
|
||||||
tar -xvf go1.9.linux-amd64.tar.gz
|
tar -xvf go1.9.linux-amd64.tar.gz
|
||||||
rm -rf /usr/local/go
|
rm -rf /usr/local/go
|
||||||
mv go /usr/local
|
mv go /usr/local
|
||||||
rm -f go1.9.linux-amd64.tar.gz
|
rm -f go1.9.linux-amd64.tar.gz
|
||||||
mkdir -p /home/vagrant/go/bin
|
|
||||||
echo 'export PATH=$PATH:/usr/local/go/bin:/home/vagrant/go/bin' >> /home/vagrant/.bash_profile
|
|
||||||
echo 'export GOPATH=/home/vagrant/go' >> /home/vagrant/.bash_profile
|
|
||||||
|
|
||||||
echo 'export LC_ALL=en_US.UTF-8' >> /home/vagrant/.bash_profile
|
mkdir -p /home/ubuntu/go/bin
|
||||||
|
echo 'export PATH=$PATH:/usr/local/go/bin:/home/ubuntu/go/bin' >> /home/ubuntu/.bash_profile
|
||||||
|
echo 'export GOPATH=/home/ubuntu/go' >> /home/ubuntu/.bash_profile
|
||||||
|
|
||||||
mkdir -p /home/vagrant/go/src/github.com/tendermint
|
echo 'export LC_ALL=en_US.UTF-8' >> /home/ubuntu/.bash_profile
|
||||||
ln -s /vagrant /home/vagrant/go/src/github.com/tendermint/tendermint
|
|
||||||
|
|
||||||
chown -R vagrant:vagrant /home/vagrant/go
|
mkdir -p /home/ubuntu/go/src/github.com/tendermint
|
||||||
|
ln -s /vagrant /home/ubuntu/go/src/github.com/tendermint/tendermint
|
||||||
|
|
||||||
su - vagrant -c 'cd /home/vagrant/go/src/github.com/tendermint/tendermint && make get_vendor_deps'
|
chown -R ubuntu:ubuntu /home/ubuntu/go
|
||||||
|
|
||||||
|
su - ubuntu -c 'cd /home/ubuntu/go/src/github.com/tendermint/tendermint && make get_vendor_deps'
|
||||||
SHELL
|
SHELL
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user