go1.11.4 (released 2018/12/14) includes fixes to cgo, the compiler, linker, runtime, documentation, go command, and the net/http and go/types packages. It includes a fix to a bug introduced in Go 1.11.3 that broke go get for import path patterns containing "...". See the Go 1.11.4 milestone for details: https://github.com/golang/go/issues?q=milestone%3AGo1.11.4+label%3ACherryPickApproved go1.11.3 (released 2018/12/14) - crypto/x509: CPU denial of service in chain validation golang/go#29233 - cmd/go: directory traversal in "go get" via curly braces in import paths golang/go#29231 - cmd/go: remote command execution during "go get -u" golang/go#29230 See the Go 1.11.3 milestone on the issue tracker for details: https://github.com/golang/go/issues?q=milestone%3AGo1.11.3 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
43 lines
1.3 KiB
Docker
43 lines
1.3 KiB
Docker
ARG GO_VERSION=1.11.4
|
|
|
|
FROM docker/containerd-shim-process:a4d1531 AS containerd-shim-process
|
|
|
|
# Use Debian based image as docker-compose requires glibc.
|
|
FROM golang:${GO_VERSION}
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
curl \
|
|
openssl \
|
|
btrfs-tools \
|
|
libapparmor-dev \
|
|
libseccomp-dev \
|
|
iptables \
|
|
openssh-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG COMPOSE_VERSION=1.21.2
|
|
RUN curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose \
|
|
&& chmod +x /usr/local/bin/docker-compose
|
|
|
|
ARG NOTARY_VERSION=v0.6.1
|
|
RUN curl -Ls https://github.com/theupdateframework/notary/releases/download/${NOTARY_VERSION}/notary-Linux-amd64 -o /usr/local/bin/notary \
|
|
&& chmod +x /usr/local/bin/notary
|
|
|
|
ENV CGO_ENABLED=0 \
|
|
DISABLE_WARN_OUTSIDE_CONTAINER=1 \
|
|
PATH=/go/src/github.com/docker/cli/build:$PATH
|
|
WORKDIR /go/src/github.com/docker/cli
|
|
|
|
# Trust notary CA cert.
|
|
COPY e2e/testdata/notary/root-ca.cert /usr/share/ca-certificates/notary.cert
|
|
RUN echo 'notary.cert' >> /etc/ca-certificates.conf && update-ca-certificates
|
|
|
|
COPY . .
|
|
ARG VERSION
|
|
ARG GITCOMMIT
|
|
ENV VERSION=${VERSION} GITCOMMIT=${GITCOMMIT}
|
|
RUN ./scripts/build/binary
|
|
|
|
CMD ./scripts/test/e2e/entry
|