Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit cbc0334

Browse files
committed
Update Vagrantfile to use Go 1.7
1 parent e6d1e77 commit cbc0334

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Vagrantfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
VAGRANTFILE_API_VERSION = "2"
66

77
$script = <<SCRIPT
8-
GOVERSION="1.6"
8+
GOVERSION="1.7"
99
SRCROOT="/opt/go"
1010
SRCPATH="/opt/gopath"
1111
@@ -37,9 +37,13 @@ export GOPATH="$SRCPATH"
3737
export GOROOT="$SRCROOT"
3838
export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
3939
EOF
40+
cat <<EOF >>~/.bashrc
41+
42+
## After login, change to terraform directory
43+
cd /opt/gopath/src/github.com/hashicorp/terraform
44+
EOF
4045
sudo mv /tmp/gopath.sh /etc/profile.d/gopath.sh
4146
sudo chmod 0755 /etc/profile.d/gopath.sh
42-
source /etc/profile.d/gopath.sh
4347
SCRIPT
4448

4549
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

0 commit comments

Comments
 (0)