|
@@ -165,48 +165,10 @@ RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \
|
|
aarch64/hello-world:latest@sha256:65a4a158587b307bb02db4de41b836addb0c35175bdc801367b1ac1ddeb9afda
|
|
aarch64/hello-world:latest@sha256:65a4a158587b307bb02db4de41b836addb0c35175bdc801367b1ac1ddeb9afda
|
|
# see also "hack/make/.ensure-frozen-images" (which needs to be updated any time this list is)
|
|
# see also "hack/make/.ensure-frozen-images" (which needs to be updated any time this list is)
|
|
|
|
|
|
-# Download toml validator
|
|
|
|
-ENV TOMLV_COMMIT 9baf8a8a9f2ed20a8e54160840c492f937eeaf9a
|
|
|
|
-RUN set -x \
|
|
|
|
- && export GOPATH="$(mktemp -d)" \
|
|
|
|
- && git clone https://github.com/BurntSushi/toml.git "$GOPATH/src/github.com/BurntSushi/toml" \
|
|
|
|
- && (cd "$GOPATH/src/github.com/BurntSushi/toml" && git checkout -q "$TOMLV_COMMIT") \
|
|
|
|
- && go build -v -o /usr/local/bin/tomlv github.com/BurntSushi/toml/cmd/tomlv \
|
|
|
|
- && rm -rf "$GOPATH"
|
|
|
|
-
|
|
|
|
-# Install runc
|
|
|
|
-ENV RUNC_COMMIT cc29e3dded8e27ba8f65738f40d251c885030a28
|
|
|
|
-RUN set -x \
|
|
|
|
- && export GOPATH="$(mktemp -d)" \
|
|
|
|
- && git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
|
|
|
- && cd "$GOPATH/src/github.com/opencontainers/runc" \
|
|
|
|
- && git checkout -q "$RUNC_COMMIT" \
|
|
|
|
- && make static BUILDTAGS="seccomp apparmor selinux" \
|
|
|
|
- && cp runc /usr/local/bin/docker-runc \
|
|
|
|
- && rm -rf "$GOPATH"
|
|
|
|
-
|
|
|
|
-# Install containerd
|
|
|
|
-ENV CONTAINERD_COMMIT 2545227b0357eb55e369fa0072baef9ad91cdb69
|
|
|
|
-RUN set -x \
|
|
|
|
- && export GOPATH="$(mktemp -d)" \
|
|
|
|
- && git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
|
|
|
- && cd "$GOPATH/src/github.com/docker/containerd" \
|
|
|
|
- && git checkout -q "$CONTAINERD_COMMIT" \
|
|
|
|
- && make static \
|
|
|
|
- && cp bin/containerd /usr/local/bin/docker-containerd \
|
|
|
|
- && cp bin/containerd-shim /usr/local/bin/docker-containerd-shim \
|
|
|
|
- && cp bin/ctr /usr/local/bin/docker-containerd-ctr \
|
|
|
|
- && rm -rf "$GOPATH"
|
|
|
|
-
|
|
|
|
-ENV GRIMES_COMMIT f207601a8d19a534cc90d9e26e037e9931ccb9db
|
|
|
|
-RUN set -x \
|
|
|
|
- && export GOPATH="$(mktemp -d)" \
|
|
|
|
- && git clone https://github.com/crosbymichael/grimes.git "$GOPATH/grimes" \
|
|
|
|
- && cd "$GOPATH/grimes" \
|
|
|
|
- && git checkout -q "$GRIMES_COMMIT" \
|
|
|
|
- && make \
|
|
|
|
- && cp init /usr/local/bin/docker-init \
|
|
|
|
- && rm -rf "$GOPATH"
|
|
|
|
|
|
+# Install tomlv, runc, containerd.and grimes
|
|
|
|
+# Please edit hack/dockerfile/install-binaries.sh to update them.
|
|
|
|
+COPY hack/dockerfile/install-binaries.sh /tmp/install-binaries.sh
|
|
|
|
+RUN /tmp/install-binaries.sh tomlv runc containerd grimes
|
|
|
|
|
|
# Wrap all commands in the "docker-in-docker" script to allow nested containers
|
|
# Wrap all commands in the "docker-in-docker" script to allow nested containers
|
|
ENTRYPOINT ["hack/dind"]
|
|
ENTRYPOINT ["hack/dind"]
|