|
|
@ -29,16 +29,20 @@ Vagrant.configure("2") do |config| |
|
|
|
# needed for docker |
|
|
|
usermod -a -G docker ubuntu |
|
|
|
|
|
|
|
mkdir -p /home/ubuntu/go/bin |
|
|
|
echo 'export PATH=$PATH:/usr/lib/go-1.9/bin:/home/ubuntu/go/bin' >> /home/ubuntu/.bash_profile |
|
|
|
echo 'export GOPATH=/home/ubuntu/go' >> /home/ubuntu/.bash_profile |
|
|
|
|
|
|
|
echo 'export LC_ALL=en_US.UTF-8' >> /home/ubuntu/.bash_profile |
|
|
|
# use "EOF" not EOF to avoid variable substitution of $PATH |
|
|
|
cat << "EOF" >> /home/ubuntu/.bash_profile |
|
|
|
export PATH=$PATH:/usr/lib/go-1.9/bin:/home/ubuntu/go/bin |
|
|
|
export GOPATH=/home/ubuntu/go |
|
|
|
export LC_ALL=en_US.UTF-8 |
|
|
|
cd go/src/github.com/tendermint/tendermint |
|
|
|
EOF |
|
|
|
|
|
|
|
mkdir -p /home/ubuntu/go/bin |
|
|
|
mkdir -p /home/ubuntu/go/src/github.com/tendermint |
|
|
|
ln -s /vagrant /home/ubuntu/go/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
chown -R ubuntu:ubuntu /home/ubuntu/go |
|
|
|
chown ubuntu:ubuntu /home/ubuntu/.bash_profile |
|
|
|
|
|
|
|
# get all deps and tools, ready to install/test |
|
|
|
su - ubuntu -c 'cd /home/ubuntu/go/src/github.com/tendermint/tendermint && make get_vendor_deps && make tools' |
|
|
|