#!/usr/bin/env bash

set -ex

GOROOT=/usr/local/go
GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
GO_ARCHIVE=$(basename $GO_ARCHIVE_URL)

echo "Downloading go..."
mkdir -p $(dirname $GOROOT)
wget -q $GO_ARCHIVE_URL
tar xf $GO_ARCHIVE -C $(dirname $GOROOT)
chmod -R a+w $GOROOT

(
  cd $GOROOT/src
  sudo GOOS=darwin GOARCH=amd64 ./make.bash --no-clean
)

export GOROOT
export GOPATH=$GOROOT
export PATH=$GOROOT/bin:$PATH

#!/usr/bin/env bash

set -ex

GOROOT=/usr/local/go
GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
GO_ARCHIVE=$(basename $GO_ARCHIVE_URL)

echo "Downloading go..."
mkdir -p $(dirname $GOROOT)
wget -q $GO_ARCHIVE_URL
tar xf $GO_ARCHIVE -C $(dirname $GOROOT)
chmod -R a+w $GOROOT

(
  cd $GOROOT/src
  sudo GOOS=darwin GOARCH=amd64 ./make.bash --no-clean
)

export GOROOT
export GOPATH=$GOROOT
export PATH=$GOROOT/bin:$PATH

Bump golang in docker image to 1.10
Bump golang in docker image to 1.10

Signed-off-by: Josh Russett <51387f2e18a282e19bf73e3a4ebd17eb7c8325fd@pivotal.io>
