Skip to content

Commit 0d39a21

Browse files
committed
Updated buildenv dockerfile for go1.5
Can't just build go1.5 by yourself anymore, have to have another version of Go already installed. Signed-off-by: Bob Van Zant <bvanzant@brkt.com>
1 parent 836d4b6 commit 0d39a21

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

Dockerfile-buildenv

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,26 @@ LABEL Description="up-to-date ubuntu environment" Vendor="Cloudtools"
55
RUN apt-get update && apt-get install -y \
66
build-essential \
77
curl \
8-
git-core
8+
git-core \
9+
golang
910

1011
LABEL Description="up-to-date golang environment"
1112

1213
RUN mkdir -p /build
14+
RUN curl -O https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
15+
RUN tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz
1316

17+
ENV GOROOT_BOOTSTRAP=/usr/local/go
1418
ENV GOROOT=/build/go-build/go
15-
ENV PATH=/build/go-build/go/bin:/usr/local/bin:/usr/bin:/bin
16-
17-
RUN mkdir -p /build/go-build; \
18-
cd /build/go-build; \
19-
curl -s https://storage.googleapis.com/golang/go1.4.2.src.tar.gz | tar -zxf -; \
20-
cd /build/go-build/go/src; \
21-
GOOS=darwin GOARCH=amd64 ./make.bash --no-clean 2>&1 > /dev/null ;
22-
19+
ENV PATH=/build/go-build/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/go/bin
20+
21+
RUN mkdir -p /build/go-build \
22+
&& cd /build/go-build \
23+
&& curl -o go.tar.gz -s https://storage.googleapis.com/golang/go1.5.1.src.tar.gz \
24+
&& echo "0df564746d105f4180c2b576a1553ebca9d9a124 go.tar.gz" | sha1sum -c - \
25+
&& tar -zxf go.tar.gz \
26+
&& cd /build/go-build/go/src \
27+
&& GOOS=darwin GOARCH=amd64 ./make.bash --no-clean 2>&1 > /dev/null ;
2328

2429
LABEL Description="ssh-cert-authority builder"
2530

0 commit comments

Comments
 (0)