2015-02-28 05:37:25 +00:00
|
|
|
# docker build -t docker:simple -f Dockerfile.simple .
|
|
|
|
# docker run --rm docker:simple hack/make.sh dynbinary
|
2015-03-10 00:24:49 +00:00
|
|
|
# docker run --rm --privileged docker:simple hack/dind hack/make.sh test-unit
|
2017-06-17 00:18:44 +00:00
|
|
|
# docker run --rm --privileged -v /var/lib/docker docker:simple hack/dind hack/make.sh dynbinary test-integration
|
2015-02-28 05:37:25 +00:00
|
|
|
|
|
|
|
# This represents the bare minimum required to build and test Docker.
|
|
|
|
|
2024-02-14 11:56:06 +00:00
|
|
|
ARG GO_VERSION=1.21.7
|
2019-07-17 11:59:16 +00:00
|
|
|
|
2023-06-22 14:03:24 +00:00
|
|
|
ARG BASE_DEBIAN_DISTRO="bookworm"
|
2021-08-19 19:16:01 +00:00
|
|
|
ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"
|
|
|
|
|
|
|
|
FROM ${GOLANG_IMAGE}
|
2019-09-11 07:36:53 +00:00
|
|
|
ENV GO111MODULE=off
|
2023-09-22 14:58:14 +00:00
|
|
|
ENV GOTOOLCHAIN=local
|
2015-02-28 05:37:25 +00:00
|
|
|
|
2016-09-22 02:15:18 +00:00
|
|
|
# Compile and runtime deps
|
2015-02-28 05:37:25 +00:00
|
|
|
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
|
|
|
|
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2016-03-25 04:19:13 +00:00
|
|
|
build-essential \
|
2015-03-18 05:08:17 +00:00
|
|
|
curl \
|
2016-11-03 16:47:50 +00:00
|
|
|
cmake \
|
2015-02-28 05:37:25 +00:00
|
|
|
git \
|
2016-03-25 04:19:13 +00:00
|
|
|
libapparmor-dev \
|
2017-09-25 10:03:37 +00:00
|
|
|
libseccomp-dev \
|
2015-02-28 05:37:25 +00:00
|
|
|
ca-certificates \
|
|
|
|
e2fsprogs \
|
|
|
|
iptables \
|
2018-01-11 18:02:08 +00:00
|
|
|
pkg-config \
|
2018-01-16 18:49:18 +00:00
|
|
|
pigz \
|
2015-02-28 05:37:25 +00:00
|
|
|
procps \
|
2015-11-11 22:29:02 +00:00
|
|
|
xfsprogs \
|
2015-02-28 05:37:25 +00:00
|
|
|
xz-utils \
|
|
|
|
\
|
2016-11-03 16:47:50 +00:00
|
|
|
vim-common \
|
2015-02-28 05:37:25 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2016-11-03 16:47:50 +00:00
|
|
|
# Install runc, containerd, tini and docker-proxy
|
2018-02-16 18:51:30 +00:00
|
|
|
# Please edit hack/dockerfile/install/<name>.installer to update them.
|
|
|
|
COPY hack/dockerfile/install hack/dockerfile/install
|
|
|
|
RUN for i in runc containerd tini proxy dockercli; \
|
|
|
|
do hack/dockerfile/install/install.sh $i; \
|
|
|
|
done
|
2017-04-17 23:18:46 +00:00
|
|
|
ENV PATH=/usr/local/cli:$PATH
|
2016-06-27 21:38:47 +00:00
|
|
|
|
2015-02-28 05:37:25 +00:00
|
|
|
ENV AUTO_GOPATH 1
|
|
|
|
WORKDIR /usr/src/docker
|
|
|
|
COPY . /usr/src/docker
|