8000 Merge pull request #17 from infosiftr/go1.3.2 · cortex/golang@292eebd · GitHub
[go: up one dir, main page]

Skip to content

Commit 292eebd

Browse files
committed
Merge pull request docker-library#17 from infosiftr/go1.3.2
Add Go 1.3.2 and update initial patch releases to include ".0" for clarity
2 parents e06c4ee + 83d3f38 commit 292eebd

File tree

14 files changed

+162
-6
lines changed

14 files changed

+162
-6
lines changed
File renamed without changes.

1.2/cross/Dockerfile renamed to 1.2.0/cross/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.2
1+
FROM golang:1.2.0
22

33
# see https://golang.org/doc/install/source#environment
44
# see also http://build.golang.org/
File renamed without changes.

1.2/onbuild/Dockerfile renamed to 1.2.0/onbuild/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.2
1+
FROM golang:1.2.0
22

33
RUN mkdir -p /go/src/app
44
WORKDIR /go/src/app
File renamed without changes.

1.3/cross/Dockerfile renamed to 1.3.0/cross/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.3
1+
FROM golang:1.3.0
22

33
# see https://golang.org/doc/install/source#environment
44
# see also http://build.golang.org/
File renamed without changes.

1.3/onbuild/Dockerfile renamed to 1.3.0/onbuild/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.3
1+
FROM golang:1.3.0
22

33
RUN mkdir -p /go/src/app
44
WORKDIR /go/src/app

1.3.2/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM debian:wheezy
2+
3+
# SCMs for "go get", gcc for cgo
4+
RUN apt-get update && apt-get install -y \
5+
ca-certificates curl gcc libc6-dev make \
6+
bzr git mercurial \
7+
--no-install-recommends \
8+
&& rm -rf /var/lib/apt/lists/*
9+
10+
ENV GOLANG_VERSION 1.3.2
11+
12+
RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
13+
| tar -v -C /usr/src -xz
14+
15+
RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
16+
17+
ENV PATH /usr/src/go/bin:$PATH
18+
19+
RUN mkdir -p /go/src
20+
ENV GOPATH /go
21+
ENV PATH /go/bin:$PATH
22+
WORKDIR /go
23+
24+
COPY go-wrapper /usr/local/bin/

1.3.2/cross/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM golang:1.3.2
2+
3+
# see https://golang.org/doc/install/source#environment
4+
# see also http://build.golang.org/
5+
# and canonically, see defs_OS_ARCH.h files in src/pkg/runtime
6+
# https://code.google.com/p/go/source/browse?name=go1.3#hg%2Fsrc%2Fpkg%2Fruntime
7+
ENV GOLANG_CROSSPLATFORMS \
8+
darwin/386 darwin/amd64 \
9+
dragonfly/386 dragonfly/amd64 \
10+
freebsd/386 freebsd/amd64 freebsd/arm \
11+
linux/386 linux/amd64 linux/arm \
12+
nacl/386 nacl/amd64p32 \
13+
netbsd/386 netbsd/amd64 netbsd/arm \
14+
openbsd/386 openbsd/amd64 \
15+
plan9/386 plan9/amd64 \
16+
solaris/amd64 \
17+
windows/386 windows/amd64
18+
19+
# ls src/pkg/runtime/defs_*_*.h | sed -r 's!^.*/defs_([^_]+)_([^_]+)[.]h$!\1/\2!'
20+
21+
# (set an explicit GOARM of 5 for maximum ARM compatibility)
22+
ENV GOARM 5
23+
24+
RUN bash -xec '\
25+
cd /usr/src/go/src; \
26+
for platform in $GOLANG_CROSSPLATFORMS; do \
27+
GOOS=${platform%/*} \
28+
GOARCH=${platform##*/} \
29+
./make.bash --no-clean 2>&1; \
30+
done \
31+
'

0 commit comments

Comments
 (0)
0