Public Repository

Last pushed: a year ago
Short Description
Go (golang) for Raspberry Pi 3
Full Description

Go (golang) for Raspberry Pi 3

Continue reading to see the steps taken to create this image

Test environment

  • Raspberry Pi 3
  • Host OS: Raspbian Jessie Lite image (downloaded 2016-09-23-raspbian-jessie-lite.zip from the official site)
  • Docker image: docker pull resin/rpi-raspbian:jessie-20160831

tag: go1.4.3


History

apt-get update
apt-get install net-tools
apt-get install git

# Go installation
# an already compiled version is used, see https://github.com/tgogos/rpi_golang/
rm -rf /usr/local/go
git clone https://github.com/tgogos/rpi_golang.git
cd rpi_golang/
tar -xzf go1.4.3.linux-armv7.tar.gz -C /usr/local
export PATH=/usr/local/go/bin:$PATH
go version
echo "export PATH=/usr/local/go/bin:$PATH" >> /root/.bashrc

tag: go1.5.2


History

rm -fr $HOME/go1.4
mkdir -p $HOME/go1.4

# the following tar.gz file comes from https://github.com/tgogos/rpi_golang
tar -xzf go1.4.3.linux-armv7.tar.gz -C $HOME/go1.4 --strip-components=1
rm -fr /usr/local/go

# download go version 1.5.2
apt-get install wget
wget https://storage.googleapis.com/golang/go1.5.2.src.tar.gz
tar -xz -C /usr/local -f go1.5.2.src.tar.gz
cd /usr/local/go/src

# make
apt-get install build-essential
time GOROOT_BOOTSTRAP=/root/go1.4 ./make.bash
go version
Docker Pull Command
Owner
tgogos