Commit 64aea854 authored by jackgr's avatar jackgr

Move to golang:1.6

parent 808641c7
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM golang:1.4-cross FROM golang:1.6
ENV GOLANG_CROSSPLATFORMS \ ENV GOLANG_CROSSPLATFORMS \
darwin/amd64 \ darwin/amd64 \
......
...@@ -22,9 +22,8 @@ RUN apt-get update \ ...@@ -22,9 +22,8 @@ RUN apt-get update \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# following lines copied from golang:1.4 # following lines copied from golang:1.6
# gcc for cgo
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \ g++ \
gcc \ gcc \
...@@ -32,18 +31,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ...@@ -32,18 +31,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
make \ make \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV GOLANG_VERSION 1.4.3 ENV GOLANG_VERSION 1.6
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA1 486db10dc571a55c8d795365070f66d343458c48 ENV GOLANG_DOWNLOAD_SHA256 5470eac05d273c74ff8bac7bef5bad0b5abbd1c4052efbdbc8db45332e836b0b
RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \ RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
&& echo "$GOLANG_DOWNLOAD_SHA1 golang.tar.gz" | sha1sum -c - \ && echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - \
&& tar -C /usr/src -xzf golang.tar.gz \ && tar -C /usr/local -xzf golang.tar.gz \
&& rm golang.tar.gz \ && rm golang.tar.gz
&& cd /usr/src/go/src && ./make.bash --no-clean 2>&1
ENV GOPATH /go ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/src/go/bin:$PATH ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM golang:1.4 FROM golang:1.6
MAINTAINER Jack Greenfield <jackgr@google.com> MAINTAINER Jack Greenfield <jackgr@google.com>
RUN apt-get update \ RUN apt-get update \
......
...@@ -192,7 +192,7 @@ func (e *expander) expandTemplate(t *common.Template) (*ExpandedTemplate, error) ...@@ -192,7 +192,7 @@ func (e *expander) expandTemplate(t *common.Template) (*ExpandedTemplate, error)
response, err := http.Post(e.getBaseURL(), "application/json", ioutil.NopCloser(bytes.NewReader(j))) response, err := http.Post(e.getBaseURL(), "application/json", ioutil.NopCloser(bytes.NewReader(j)))
if err != nil { if err != nil {
e := fmt.Errorf("call failed (%s) with payload:\n%s\n", e.getBaseURL(), err, string(j)) e := fmt.Errorf("call failed (%s) with payload:\n%s\n", err, string(j))
return nil, e return nil, e
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM golang:1.4 FROM golang:1.6
RUN apt-get update \ RUN apt-get update \
&& apt-get autoremove -y \ && apt-get autoremove -y \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment