go install golang.org/dl/go1.16.6@latest
go1.16.6 download
go1.16.6 version
# Which uses:
# GOROOT="<HOME>/sdk/go1.16.6"
go install golang.org/dl/go1.16.7@latest
go1.16.7 download
go install golang.org/dl/go1.18beta1@latest
go1.18beta1 download
-
Official docker images for golang: https://github.com/docker-library/golang.git
-
Info regarding tags: https://github.com/docker-library/docs/tree/master/golang
-
Build jobs: https://github.com/docker-library/golang/runs/3254891813?check_suite_focus=true
docker build -t golang:1.16.6-alpine-own docker/golang1.16.6-alpine
docker build -t golang:1.16.7-alpine-own docker/golang1.16.7-alpine
cd docker/golang-git
git clone https://github.com/golang/go.git
cd ../..
docker build -t golang:master --no-cache docker/golang-git
Download, unpack and build wanted version using existing Go installation. This example uses a local go 1.16.6 when bootstrapping.
wget https://go.dev/dl/go1.17.8.src.tar.gz
sudo tar xzf go1.17.8.src.tar.gz -C /usr/local/
cd /usr/local/go/src
sudo GOROOT_BOOTSTRAP=$HOME/sdk/go1.16.6 ./make.bash
cd /usr/src/
git clone https://github.com/golang/go.git
echo "go1.XX" > VERSION
cd src/
sudo GOROOT_BOOTSTRAP=$HOME/sdk/go1.16.6 ./make.bash
sudo rm -rf /usr/local/go
and remove from path