Browse code

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 <suda.akihiro@lab.ntt.co.jp>

Akihiro Suda authored on 2016/03/25 13:19:13
Showing 1 changed files
... ...
@@ -12,10 +12,11 @@ FROM debian:jessie
12 12
 # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
13 13
 RUN apt-get update && apt-get install -y --no-install-recommends \
14 14
 		btrfs-tools \
15
+		build-essential \
15 16
 		curl \
16 17
 		gcc \
17 18
 		git \
18
-		golang \
19
+		libapparmor-dev \
19 20
 		libdevmapper-dev \
20 21
 		libsqlite3-dev \
21 22
 		\
... ...
@@ -29,6 +30,32 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
29 29
 		aufs-tools \
30 30
 	&& rm -rf /var/lib/apt/lists/*
31 31
 
32
+# install seccomp: the version shipped in trusty is too old
33
+ENV SECCOMP_VERSION 2.3.0
34
+RUN set -x \
35
+	&& export SECCOMP_PATH="$(mktemp -d)" \
36
+	&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \
37
+		| tar -xzC "$SECCOMP_PATH" --strip-components=1 \
38
+	&& ( \
39
+		cd "$SECCOMP_PATH" \
40
+		&& ./configure --prefix=/usr/local \
41
+		&& make \
42
+		&& make install \
43
+		&& ldconfig \
44
+	) \
45
+	&& rm -rf "$SECCOMP_PATH"
46
+
47
+# Install Go
48
+# IMPORTANT: If the version of Go is updated, the Windows to Linux CI machines
49
+#            will need updating, to avoid errors. Ping #docker-maintainers on IRC
50
+#            with a heads-up.
51
+ENV GO_VERSION 1.5.3
52
+RUN curl -fsSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" \
53
+	| tar -xzC /usr/local
54
+ENV PATH /go/bin:/usr/local/go/bin:$PATH
55
+ENV GOPATH /go:/go/src/github.com/docker/docker/vendor
56
+ENV CGO_LDFLAGS -L/lib
57
+
32 58
 # Install runc
33 59
 ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
34 60
 RUN set -x \