2018-12-10 09:40:57 +00:00
|
|
|
FROM ubuntu:18.04
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && env DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes \
|
|
|
|
ca-certificates \
|
|
|
|
bash \
|
|
|
|
btrfs-progs \
|
|
|
|
e2fsprogs \
|
|
|
|
iptables \
|
|
|
|
xfsprogs \
|
|
|
|
tar \
|
|
|
|
pigz \
|
|
|
|
wget \
|
|
|
|
git \
|
|
|
|
iproute2 \
|
|
|
|
module-init-tools \
|
|
|
|
cgroupfs-mount \
|
|
|
|
python-pip \
|
2018-12-10 09:40:57 +00:00
|
|
|
tzdata \
|
|
|
|
libreadline-dev \
|
2019-01-30 09:43:00 +00:00
|
|
|
libicu-dev \
|
2019-03-20 21:11:40 +00:00
|
|
|
bsdutils \
|
2019-01-30 09:43:00 +00:00
|
|
|
curl
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
ENV TZ=Europe/Moscow
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
|
2019-02-25 10:45:22 +00:00
|
|
|
RUN pip install pytest docker-compose==1.22.0 docker dicttoxml kazoo PyMySQL psycopg2 pymongo tzlocal
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
ENV DOCKER_CHANNEL stable
|
2018-12-10 09:40:57 +00:00
|
|
|
ENV DOCKER_VERSION 17.09.1-ce
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
RUN set -eux; \
|
|
|
|
\
|
|
|
|
# this "case" statement is generated via "update.sh"
|
|
|
|
\
|
|
|
|
if ! wget -O docker.tgz "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz"; then \
|
|
|
|
echo >&2 "error: failed to download 'docker-${DOCKER_VERSION}' from '${DOCKER_CHANNEL}' for '${x86_64}'"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
\
|
|
|
|
tar --extract \
|
|
|
|
--file docker.tgz \
|
|
|
|
--strip-components 1 \
|
|
|
|
--directory /usr/local/bin/ \
|
|
|
|
; \
|
|
|
|
rm docker.tgz; \
|
|
|
|
\
|
|
|
|
dockerd --version; \
|
|
|
|
docker --version
|
|
|
|
|
|
|
|
COPY modprobe.sh /usr/local/bin/modprobe
|
|
|
|
COPY dockerd-entrypoint.sh /usr/local/bin/
|
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& addgroup --system dockremap \
|
|
|
|
&& adduser --system dockremap \
|
|
|
|
&& adduser dockremap dockremap \
|
|
|
|
&& echo 'dockremap:165536:65536' >> /etc/subuid \
|
|
|
|
&& echo 'dockremap:165536:65536' >> /etc/subgid
|
|
|
|
|
|
|
|
VOLUME /var/lib/docker
|
|
|
|
EXPOSE 2375
|
|
|
|
ENTRYPOINT ["dockerd-entrypoint.sh"]
|
2019-02-25 10:45:22 +00:00
|
|
|
CMD []
|