From 4bf770a4c6940df9c538d3dac2b014fbc9ca9ac2 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 25 Mar 2016 13:19:13 +0900 Subject: [PATCH] Update Dockerfile.simple so that it can be successfuly built * build-essential is needed by `make` * libapparmor-dev is needed by runc * seccomp is needed by runc * Go is neeeded by runc Signed-off-by: Akihiro Suda --- Dockerfile.simple | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Dockerfile.simple b/Dockerfile.simple index 0b8231032a..4ed165ed64 100644 --- a/Dockerfile.simple +++ b/Dockerfile.simple @@ -12,10 +12,11 @@ FROM debian:jessie # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ btrfs-tools \ + build-essential \ curl \ gcc \ git \ - golang \ + libapparmor-dev \ libdevmapper-dev \ libsqlite3-dev \ \ @@ -29,6 +30,32 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ aufs-tools \ && rm -rf /var/lib/apt/lists/* +# install seccomp: the version shipped in trusty is too old +ENV SECCOMP_VERSION 2.3.0 +RUN set -x \ + && export SECCOMP_PATH="$(mktemp -d)" \ + && curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \ + | tar -xzC "$SECCOMP_PATH" --strip-components=1 \ + && ( \ + cd "$SECCOMP_PATH" \ + && ./configure --prefix=/usr/local \ + && make \ + && make install \ + && ldconfig \ + ) \ + && rm -rf "$SECCOMP_PATH" + +# Install Go +# IMPORTANT: If the version of Go is updated, the Windows to Linux CI machines +# will need updating, to avoid errors. Ping #docker-maintainers on IRC +# with a heads-up. +ENV GO_VERSION 1.5.3 +RUN curl -fsSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" \ + | tar -xzC /usr/local +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go:/go/src/github.com/docker/docker/vendor +ENV CGO_LDFLAGS -L/lib + # Install runc ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf RUN set -x \