Support SAH256 checksums, push out Go 1.5.3 and 1.6beta2

This commit is contained in:
Péter Szilágyi 2016-01-14 12:14:59 +02:00
parent 466b6a8740
commit ea9895c651
17 changed files with 102 additions and 64 deletions

View File

@ -7,23 +7,23 @@
#
# Needed environment variables:
# FETCH - Remote file fetcher and checksum verifier (injected by image)
# DIST_LINUX_64, DIST_LINUX_64_SHA1 - 64 bit Linux Go binaries and checksum
# DIST_LINUX_32, DIST_LINUX_32_SHA1 - 32 bit Linux Go binaries and checksum
# DIST_LINUX_ARM, DIST_LINUX_ARM_SHA1 - ARM v5 Linux Go binaries and checksum
# DIST_OSX_64, DIST_OSX_64_SHA1 - 64 bit Mac OSX Go binaries and checksum
# DIST_OSX_32, DIST_OSX_32_SHA1 - 32 bit Mac OSX Go binaries and checksum
# DIST_WIN_64, DIST_WIN_64_SHA1 - 64 bit Windows Go binaries and checksum
# DIST_WIN_32, DIST_WIN_32_SHA1 - 32 bit Windows Go binaries and checksum
# DIST_LINUX_64, DIST_LINUX_64_SHA - 64 bit Linux Go binaries and checksum
# DIST_LINUX_32, DIST_LINUX_32_SHA - 32 bit Linux Go binaries and checksum
# DIST_LINUX_ARM, DIST_LINUX_ARM_SHA - ARM v5 Linux Go binaries and checksum
# DIST_OSX_64, DIST_OSX_64_SHA - 64 bit Mac OSX Go binaries and checksum
# DIST_OSX_32, DIST_OSX_32_SHA - 32 bit Mac OSX Go binaries and checksum
# DIST_WIN_64, DIST_WIN_64_SHA - 64 bit Windows Go binaries and checksum
# DIST_WIN_32, DIST_WIN_32_SHA - 32 bit Windows Go binaries and checksum
set -e
# Download and verify all the binary packages
$FETCH $DIST_LINUX_64 $DIST_LINUX_64_SHA1
$FETCH $DIST_LINUX_32 $DIST_LINUX_32_SHA1
$FETCH $DIST_LINUX_ARM $DIST_LINUX_ARM_SHA1
$FETCH $DIST_OSX_64 $DIST_OSX_64_SHA1
$FETCH $DIST_OSX_32 $DIST_OSX_32_SHA1
$FETCH $DIST_WIN_64 $DIST_WIN_64_SHA1
$FETCH $DIST_WIN_32 $DIST_WIN_32_SHA1
$FETCH $DIST_LINUX_64 $DIST_LINUX_64_SHA
$FETCH $DIST_LINUX_32 $DIST_LINUX_32_SHA
$FETCH $DIST_LINUX_ARM $DIST_LINUX_ARM_SHA
$FETCH $DIST_OSX_64 $DIST_OSX_64_SHA
$FETCH $DIST_OSX_32 $DIST_OSX_32_SHA
$FETCH $DIST_WIN_64 $DIST_WIN_64_SHA
$FETCH $DIST_WIN_32 $DIST_WIN_32_SHA
# Extract the 64 bit Linux package as the primary Go SDK
tar -C /usr/local -xzf `basename $DIST_LINUX_64`

View File

@ -7,9 +7,9 @@
# Usage: bootstrap_pure.sh
#
# Environment variables for remote bootstrapping:
# FETCH - Remote file fetcher and checksum verifier (injected by image)
# ROOT_DIST - 64 bit Linux Go binary distribution package
# ROOT_DIST_SHA1 - 64 bit Linux Go distribution package checksum
# FETCH - Remote file fetcher and checksum verifier (injected by image)
# ROOT_DIST - 64 bit Linux Go binary distribution package
# ROOT_DIST_SHA - 64 bit Linux Go distribution package checksum
#
# Environment variables for local bootstrapping:
# GOROOT - Path to the lready installed Go runtime
@ -17,7 +17,7 @@ set -e
# Download, verify and install the root distribution if pulled remotely
if [ "$GOROOT" == "" ]; then
$FETCH $ROOT_DIST $ROOT_DIST_SHA1
$FETCH $ROOT_DIST $ROOT_DIST_SHA
tar -C /usr/local -xzf `basename $ROOT_DIST`
rm -f `basename $ROOT_DIST`

View File

@ -16,9 +16,9 @@ export GOROOT_BOOTSTRAP=${GOROOT}-boot
# Download and install the Go bootstrap distribution
BOOT_DIST=https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz
BOOT_DIST_SHA1=332b64236d30a8805fc8dd8b3a269915b4c507fe
BOOT_DIST_SHA=332b64236d30a8805fc8dd8b3a269915b4c507fe
$FETCH $BOOT_DIST $BOOT_DIST_SHA1
$FETCH $BOOT_DIST $BOOT_DIST_SHA
tar -C /usr/local -xzf `basename $BOOT_DIST`
rm -f `basename $BOOT_DIST`

View File

@ -1,9 +1,9 @@
#!/bin/bash
#
# Contains a simple fetcher to download a file from a remote URL and verify its
# SHA1 checksum.
# SHA1 or SHA256 checksum (selected based on provided length).
#
# Usage: fetch.sh <remote URL> <SHA1 checksum>
# Usage: fetch.sh <remote URL> <SHA1/SHA256 checksum>
set -e
# Skip the download if no operands specified
@ -19,5 +19,9 @@ wget -q $1
# Generate a desired checksum report and check against it
echo "$2 $file" > $file.sum
sha1sum -c $file.sum
if [ "${#2}" == "40" ]; then
sha1sum -c $file.sum
else
sha256sum -c $file.sum
fi
rm $file.sum

View File

@ -10,25 +10,25 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the Go packages and bootstrap them
RUN \
export DIST_LINUX_64=https://storage.googleapis.com/golang/go1.3.linux-amd64.tar.gz && \
export DIST_LINUX_64_SHA1=b6b154933039987056ac307e20c25fa508a06ba6 && \
export DIST_LINUX_64_SHA=b6b154933039987056ac307e20c25fa508a06ba6 && \
\
export DIST_LINUX_32=https://storage.googleapis.com/golang/go1.3.linux-386.tar.gz && \
export DIST_LINUX_32_SHA1=22db33b0c4e242ed18a77b03a60582f8014fd8a6 && \
export DIST_LINUX_32_SHA=22db33b0c4e242ed18a77b03a60582f8014fd8a6 && \
\
export DIST_LINUX_ARM=http://dave.cheney.net/paste/go.1.3.linux-arm~armv5-1.tar.gz && \
export DIST_LINUX_ARM_SHA1=fc059c970a059757778b157b1140a3c56eb1a069 && \
export DIST_LINUX_ARM_SHA=fc059c970a059757778b157b1140a3c56eb1a069 && \
\
export DIST_OSX_64=https://storage.googleapis.com/golang/go1.3.darwin-amd64-osx10.6.tar.gz && \
export DIST_OSX_64_SHA1=82ffcfb7962ca7114a1ee0a96cac51c53061ea05 && \
export DIST_OSX_64_SHA=82ffcfb7962ca7114a1ee0a96cac51c53061ea05 && \
\
export DIST_OSX_32=https://storage.googleapis.com/golang/go1.3.darwin-386-osx10.6.tar.gz && \
export DIST_OSX_32_SHA1=159d2797bee603a80b829c4404c1fb2ee089cc00 && \
export DIST_OSX_32_SHA=159d2797bee603a80b829c4404c1fb2ee089cc00 && \
\
export DIST_WIN_64=https://storage.googleapis.com/golang/go1.3.windows-amd64.zip && \
export DIST_WIN_64_SHA1=1e4888e1494aed7f6934acb5c4a1ffb0e9a022b1 && \
export DIST_WIN_64_SHA=1e4888e1494aed7f6934acb5c4a1ffb0e9a022b1 && \
\
export DIST_WIN_32=https://storage.googleapis.com/golang/go1.3.windows-386.zip && \
export DIST_WIN_32_SHA1=e4e5279ce7d8cafdf210a522a70677d5b9c7589d && \
export DIST_WIN_32_SHA=e4e5279ce7d8cafdf210a522a70677d5b9c7589d && \
\
$BOOTSTRAP

View File

@ -10,25 +10,25 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the Go packages and bootstrap them
RUN \
export DIST_LINUX_64=https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz && \
export DIST_LINUX_64_SHA1=3af011cc19b21c7180f2604fd85fbc4ddde97143 && \
export DIST_LINUX_64_SHA=3af011cc19b21c7180f2604fd85fbc4ddde97143 && \
\
export DIST_LINUX_32=https://storage.googleapis.com/golang/go1.3.1.linux-386.tar.gz && \
export DIST_LINUX_32_SHA1=36f87ce21cdb4cb8920bb706003d8655b4e1fc81 && \
export DIST_LINUX_32_SHA=36f87ce21cdb4cb8920bb706003d8655b4e1fc81 && \
\
export DIST_LINUX_ARM= && \
export DIST_LINUX_ARM_SHA1= && \
export DIST_LINUX_ARM_SHA= && \
\
export DIST_OSX_64=https://storage.googleapis.com/golang/go1.3.1.darwin-amd64-osx10.6.tar.gz && \
export DIST_OSX_64_SHA1=40716361d352c4b40252e79048e8bc084c3f3d1b && \
export DIST_OSX_64_SHA=40716361d352c4b40252e79048e8bc084c3f3d1b && \
\
export DIST_OSX_32=https://storage.googleapis.com/golang/go1.3.1.darwin-386-osx10.6.tar.gz && \
export DIST_OSX_32_SHA1=84f70a4c83be24cea696654a5b55331ea32f8a3f && \
export DIST_OSX_32_SHA=84f70a4c83be24cea696654a5b55331ea32f8a3f && \
\
export DIST_WIN_64=https://storage.googleapis.com/golang/go1.3.1.windows-amd64.zip && \
export DIST_WIN_64_SHA1=4548785cfa3bc228d18d2d06e39f58f0e4e014f1 && \
export DIST_WIN_64_SHA=4548785cfa3bc228d18d2d06e39f58f0e4e014f1 && \
\
export DIST_WIN_32=https://storage.googleapis.com/golang/go1.3.1.windows-386.zip && \
export DIST_WIN_32_SHA1=64f99e40e79e93a622e73d7d55a5b8340f07747f && \
export DIST_WIN_32_SHA=64f99e40e79e93a622e73d7d55a5b8340f07747f && \
\
$BOOTSTRAP

View File

@ -10,25 +10,25 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the Go packages and bootstrap them
RUN \
export DIST_LINUX_64=https://storage.googleapis.com/golang/go1.3.3.linux-amd64.tar.gz && \
export DIST_LINUX_64_SHA1=14068fbe349db34b838853a7878621bbd2b24646 && \
export DIST_LINUX_64_SHA=14068fbe349db34b838853a7878621bbd2b24646 && \
\
export DIST_LINUX_32=https://storage.googleapis.com/golang/go1.3.3.linux-386.tar.gz && \
export DIST_LINUX_32_SHA1=9eb426d5505de55729e2656c03d85722795dd85e && \
export DIST_LINUX_32_SHA=9eb426d5505de55729e2656c03d85722795dd85e && \
\
export DIST_LINUX_ARM=http://dave.cheney.net/paste/go.1.3.3.linux-arm~armv5-1.tar.gz && \
export DIST_LINUX_ARM_SHA1=78789a5e3288d9e86e0cd667e6588775594eae87 && \
export DIST_LINUX_ARM_SHA=78789a5e3288d9e86e0cd667e6588775594eae87 && \
\
export DIST_OSX_64=https://storage.googleapis.com/golang/go1.3.3.darwin-amd64-osx10.6.tar.gz && \
export DIST_OSX_64_SHA1=dfe68de684f6e8d9c371d01e6d6a522efe3b8942 && \
export DIST_OSX_64_SHA=dfe68de684f6e8d9c371d01e6d6a522efe3b8942 && \
\
export DIST_OSX_32=https://storage.googleapis.com/golang/go1.3.3.darwin-386-osx10.6.tar.gz && \
export DIST_OSX_32_SHA1=04b3e38549183e984f509c07ad40d8bcd577a702 && \
export DIST_OSX_32_SHA=04b3e38549183e984f509c07ad40d8bcd577a702 && \
\
export DIST_WIN_64=https://storage.googleapis.com/golang/go1.3.3.windows-amd64.zip && \
export DIST_WIN_64_SHA1=5f0b3b104d3db09edd32ef1d086ba20bafe01ada && \
export DIST_WIN_64_SHA=5f0b3b104d3db09edd32ef1d086ba20bafe01ada && \
\
export DIST_WIN_32=https://storage.googleapis.com/golang/go1.3.3.windows-386.zip && \
export DIST_WIN_32_SHA1=ba99083b22e0b22b560bb2d28b9b99b405d01b6b && \
export DIST_WIN_32_SHA=ba99083b22e0b22b560bb2d28b9b99b405d01b6b && \
\
$BOOTSTRAP

View File

@ -10,25 +10,25 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the Go packages and bootstrap them
RUN \
export DIST_LINUX_64=https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz && \
export DIST_LINUX_64_SHA1=5020af94b52b65cc9b6f11d50a67e4bae07b0aff && \
export DIST_LINUX_64_SHA=5020af94b52b65cc9b6f11d50a67e4bae07b0aff && \
\
export DIST_LINUX_32=https://storage.googleapis.com/golang/go1.4.2.linux-386.tar.gz && \
export DIST_LINUX_32_SHA1=50557248e89b6e38d395fda93b2f96b2b860a26a && \
export DIST_LINUX_32_SHA=50557248e89b6e38d395fda93b2f96b2b860a26a && \
\
export DIST_LINUX_ARM=http://dave.cheney.net/paste/go1.4.2.linux-arm~armv5-1.tar.gz && \
export DIST_LINUX_ARM_SHA1=1bcfc8ef9c2aa381722b71b8c8d83cb58e973116 && \
export DIST_LINUX_ARM_SHA=1bcfc8ef9c2aa381722b71b8c8d83cb58e973116 && \
\
export DIST_OSX_64=https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.6.tar.gz && \
export DIST_OSX_64_SHA1=00c3f9a03daff818b2132ac31d57f054925c60e7 && \
export DIST_OSX_64_SHA=00c3f9a03daff818b2132ac31d57f054925c60e7 && \
\
export DIST_OSX_32=https://storage.googleapis.com/golang/go1.4.2.darwin-386-osx10.6.tar.gz && \
export DIST_OSX_32_SHA1=fb3e6b30f4e1b1be47bbb98d79dd53da8dec24ec && \
export DIST_OSX_32_SHA=fb3e6b30f4e1b1be47bbb98d79dd53da8dec24ec && \
\
export DIST_WIN_64=https://storage.googleapis.com/golang/go1.4.2.windows-amd64.zip && \
export DIST_WIN_64_SHA1=91b229a3ff0a1ce6e791c832b0b4670bfc5457b5 && \
export DIST_WIN_64_SHA=91b229a3ff0a1ce6e791c832b0b4670bfc5457b5 && \
\
export DIST_WIN_32=https://storage.googleapis.com/golang/go1.4.2.windows-386.zip && \
export DIST_WIN_32_SHA1=0e074e66a7816561d7947ff5c3514be96f347dc4 && \
export DIST_WIN_32_SHA=0e074e66a7816561d7947ff5c3514be96f347dc4 && \
\
$BOOTSTRAP

View File

@ -10,25 +10,25 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the Go packages and bootstrap them
RUN \
export DIST_LINUX_64=https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz && \
export DIST_LINUX_64_SHA1=cd82abcb0734f82f7cf2d576c9528cebdafac4c6 && \
export DIST_LINUX_64_SHA=cd82abcb0734f82f7cf2d576c9528cebdafac4c6 && \
\
export DIST_LINUX_32=https://storage.googleapis.com/golang/go1.4.linux-386.tar.gz && \
export DIST_LINUX_32_SHA1=cb18d8122bfd3bbba20fa1a19b8f7566dcff795d && \
export DIST_LINUX_32_SHA=cb18d8122bfd3bbba20fa1a19b8f7566dcff795d && \
\
export DIST_LINUX_ARM=http://dave.cheney.net/paste/go1.4.linux-arm~armv5-1.tar.gz && \
export DIST_LINUX_ARM_SHA1=21039e81df30bf17fa5847d02892c425f0c37fc6 && \
export DIST_LINUX_ARM_SHA=21039e81df30bf17fa5847d02892c425f0c37fc6 && \
\
export DIST_OSX_64=https://storage.googleapis.com/golang/go1.4.darwin-amd64-osx10.6.tar.gz && \
export DIST_OSX_64_SHA1=09621b9226abe12c2179778b015a33c1787b29d6 && \
export DIST_OSX_64_SHA=09621b9226abe12c2179778b015a33c1787b29d6 && \
\
export DIST_OSX_32=https://storage.googleapis.com/golang/go1.4.darwin-386-osx10.6.tar.gz && \
export DIST_OSX_32_SHA1=ee31cd0e26245d0e48f11667e4298e2e7f54f9b6 && \
export DIST_OSX_32_SHA=ee31cd0e26245d0e48f11667e4298e2e7f54f9b6 && \
\
export DIST_WIN_64=https://storage.googleapis.com/golang/go1.4.windows-amd64.zip && \
export DIST_WIN_64_SHA1=44f103d558b293919eb680041625c262dd00eb9a && \
export DIST_WIN_64_SHA=44f103d558b293919eb680041625c262dd00eb9a && \
\
export DIST_WIN_32=https://storage.googleapis.com/golang/go1.4.windows-386.zip && \
export DIST_WIN_32_SHA1=f44240a1750dd051476ae78e9ad0502bc5c7661d && \
export DIST_WIN_32_SHA=f44240a1750dd051476ae78e9ad0502bc5c7661d && \
\
$BOOTSTRAP

View File

@ -9,4 +9,4 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Clone and bootstrap the latest Go develop branch
RUN $BOOTSTRAP_REPO release-branch.go1.5
ENV GO_VERSION 152
ENV GO_VERSION 153

View File

@ -10,7 +10,7 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the root Go distribution and bootstrap based on it
RUN \
export ROOT_DIST=https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz && \
export ROOT_DIST_SHA1=5817fa4b2252afdb02e11e8b9dc1d9173ef3bd5a && \
export ROOT_DIST_SHA=5817fa4b2252afdb02e11e8b9dc1d9173ef3bd5a && \
\
$BOOTSTRAP_PURE

View File

@ -10,7 +10,7 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the root Go distribution and bootstrap based on it
RUN \
export ROOT_DIST=https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz && \
export ROOT_DIST_SHA1=46eecd290d8803887dec718c691cc243f2175fe0 && \
export ROOT_DIST_SHA=46eecd290d8803887dec718c691cc243f2175fe0 && \
\
$BOOTSTRAP_PURE

View File

@ -10,7 +10,7 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the root Go distribution and bootstrap based on it
RUN \
export ROOT_DIST=https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz && \
export ROOT_DIST_SHA1=cae87ed095e8d94a81871281d35da7829bd1234e && \
export ROOT_DIST_SHA=cae87ed095e8d94a81871281d35da7829bd1234e && \
\
$BOOTSTRAP_PURE

View File

@ -0,0 +1,17 @@
# Go cross compiler (xgo): Go 1.5.3 layer
# Copyright (c) 2015 Péter Szilágyi. All rights reserved.
#
# Released under the MIT license.
FROM karalabe/xgo-base
MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the root Go distribution and bootstrap based on it
RUN \
export ROOT_DIST=https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz && \
export ROOT_DIST_SHA=43afe0c5017e502630b1aea4d44b8a7f059bf60d7f29dfd58db454d4e4e0ae53 && \
\
$BOOTSTRAP_PURE
ENV GO_VERSION 153

View File

@ -3,6 +3,6 @@
#
# Released under the MIT license.
FROM karalabe/xgo-1.5.2
FROM karalabe/xgo-1.5.3
MAINTAINER Péter Szilágyi <peterke@gmail.com>

View File

@ -10,7 +10,7 @@ MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the root Go distribution and bootstrap based on it
RUN \
export ROOT_DIST=https://storage.googleapis.com/golang/go1.6beta1.linux-amd64.tar.gz && \
export ROOT_DIST_SHA1=5c02222a5ab348ae0f9244df95dea71781953749 && \
export ROOT_DIST_SHA=5c02222a5ab348ae0f9244df95dea71781953749 && \
\
$BOOTSTRAP_PURE

View File

@ -0,0 +1,17 @@
# Go cross compiler (xgo): Go 1.6 beta 2 layer
# Copyright (c) 2015 Péter Szilágyi. All rights reserved.
#
# Released under the MIT license.
FROM karalabe/xgo-base
MAINTAINER Péter Szilágyi <peterke@gmail.com>
# Configure the root Go distribution and bootstrap based on it
RUN \
export ROOT_DIST=https://storage.googleapis.com/golang/go1.6beta2.linux-amd64.tar.gz && \
export ROOT_DIST_SHA=7ddf9797c7baaac2c16eed1a8d42f9a446223301c7dc8771ea805f211828e6a5 && \
\
$BOOTSTRAP_PURE
ENV GO_VERSION 160