Update go in dockerfiles to go 1.6.1 because we want the HTTPS security update

Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
Ying Li 2016-04-19 14:57:18 -07:00
parent 4c52b3801f
commit 84b1210bf7
6 changed files with 12 additions and 22 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.6.0 FROM golang:1.6.1
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
curl \ curl \

2
Godeps/Godeps.json generated
View File

@ -1,6 +1,6 @@
{ {
"ImportPath": "github.com/docker/notary", "ImportPath": "github.com/docker/notary",
"GoVersion": "go1.6", "GoVersion": "go1.6.1",
"Packages": [ "Packages": [
"./..." "./..."
], ],

View File

@ -80,7 +80,7 @@ to use `notary` with Docker images.
Prerequisites: Prerequisites:
- Go >= 1.6 - Go >= 1.6.1
- [godep](https://github.com/tools/godep) installed - [godep](https://github.com/tools/godep) installed
- libtool development headers installed - libtool development headers installed
- Ubuntu: `apt-get install libtool-dev` - Ubuntu: `apt-get install libtool-dev`

View File

@ -9,7 +9,7 @@ machine:
post: post:
# Install many go versions # Install many go versions
- gvm install go1.6 -B --name=stable - gvm install go1.6.1 -B --name=stable
# upgrade compose # upgrade compose
- sudo pip install --upgrade docker-compose - sudo pip install --upgrade docker-compose

View File

@ -1,15 +1,10 @@
FROM golang:1.6.0-alpine FROM golang:1.6.1-alpine
MAINTAINER David Lawrence "david.lawrence@docker.com" MAINTAINER David Lawrence "david.lawrence@docker.com"
RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/* RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*
# Note that -ldflags "-extldflags -fno-PIC" and the "-extldflags -fno-PIC" below # Install SQL DB migration tool
# are to get around https://github.com/golang/go/issues/14851#issuecomment-200915770 RUN go get github.com/mattes/migrate
# Once the golang alpine image updates, since it's been patched, we can
# remove the flags
# Install DB migration tool
RUN go get -ldflags "-extldflags -fno-PIC" github.com/mattes/migrate
ENV NOTARYPKG github.com/docker/notary ENV NOTARYPKG github.com/docker/notary
@ -23,7 +18,7 @@ EXPOSE 4443
# Install notary-server # Install notary-server
RUN go install \ RUN go install \
-tags pkcs11 \ -tags pkcs11 \
-ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION` -extldflags -fno-PIC" \ -ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION`" \
${NOTARYPKG}/cmd/notary-server && apk del git gcc libc-dev ${NOTARYPKG}/cmd/notary-server && apk del git gcc libc-dev
ENTRYPOINT [ "notary-server" ] ENTRYPOINT [ "notary-server" ]

View File

@ -1,15 +1,10 @@
FROM golang:1.6.0-alpine FROM golang:1.6.1-alpine
MAINTAINER David Lawrence "david.lawrence@docker.com" MAINTAINER David Lawrence "david.lawrence@docker.com"
RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/* RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*
# Note that -ldflags "-extldflags -fno-PIC" and the "-extldflags -fno-PIC" below # Install SQL DB migration tool
# are to get around https://github.com/golang/go/issues/14851#issuecomment-200915770 RUN go get github.com/mattes/migrate
# Once the golang alpine image updates, since it's been patched, we can
# remove the flags
# Install DB migration tool
RUN go get -ldflags "-extldflags -fno-PIC" github.com/mattes/migrate
ENV NOTARYPKG github.com/docker/notary ENV NOTARYPKG github.com/docker/notary
@ -26,7 +21,7 @@ EXPOSE 4444
# Install notary-signer # Install notary-signer
RUN go install \ RUN go install \
-tags pkcs11 \ -tags pkcs11 \
-ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION` -extldflags -fno-PIC" \ -ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION`" \
${NOTARYPKG}/cmd/notary-signer && apk del git gcc libc-dev ${NOTARYPKG}/cmd/notary-signer && apk del git gcc libc-dev
ENTRYPOINT [ "notary-signer" ] ENTRYPOINT [ "notary-signer" ]