2019-06-04 13:01:16 +00:00
|
|
|
# docker build -t yandex/clickhouse-integration-tests-runner .
|
2018-12-10 09:40:57 +00:00
|
|
|
FROM ubuntu:18.04
|
2018-11-23 15:10:07 +00:00
|
|
|
|
2019-05-21 06:17:46 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& env DEBIAN_FRONTEND=noninteractive apt-get install --yes \
|
2018-11-23 15:10:07 +00:00
|
|
|
ca-certificates \
|
|
|
|
bash \
|
|
|
|
btrfs-progs \
|
|
|
|
e2fsprogs \
|
|
|
|
iptables \
|
|
|
|
xfsprogs \
|
|
|
|
tar \
|
|
|
|
pigz \
|
|
|
|
wget \
|
|
|
|
git \
|
|
|
|
iproute2 \
|
|
|
|
module-init-tools \
|
|
|
|
cgroupfs-mount \
|
2020-10-02 16:54:07 +00:00
|
|
|
python3-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-05-20 08:11:53 +00:00
|
|
|
curl \
|
2020-10-02 16:54:07 +00:00
|
|
|
python3-pika \
|
2019-05-28 18:53:22 +00:00
|
|
|
liblua5.1-dev \
|
|
|
|
luajit \
|
|
|
|
libssl-dev \
|
2020-06-29 20:07:45 +00:00
|
|
|
libcurl4-openssl-dev \
|
2019-12-13 13:56:53 +00:00
|
|
|
gdb \
|
2019-05-21 06:17:46 +00:00
|
|
|
&& rm -rf \
|
|
|
|
/var/lib/apt/lists/* \
|
|
|
|
/var/cache/debconf \
|
|
|
|
/tmp/* \
|
|
|
|
&& apt-get clean
|
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
|
|
|
|
|
2020-10-16 15:27:22 +00:00
|
|
|
RUN python3 -m pip install \
|
|
|
|
PyMySQL \
|
|
|
|
aerospike \
|
|
|
|
avro \
|
|
|
|
cassandra-driver \
|
|
|
|
confluent-kafka \
|
|
|
|
dicttoxml \
|
|
|
|
docker \
|
|
|
|
docker-compose==1.22.0 \
|
|
|
|
grpcio \
|
|
|
|
grpcio-tools \
|
|
|
|
kafka-python \
|
|
|
|
kazoo \
|
|
|
|
minio \
|
|
|
|
protobuf \
|
|
|
|
psycopg2-binary==2.7.5 \
|
|
|
|
pymongo \
|
|
|
|
pytest \
|
|
|
|
pytest-timeout \
|
|
|
|
redis \
|
|
|
|
tzlocal \
|
|
|
|
urllib3
|
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; \
|
2020-04-17 16:01:16 +00:00
|
|
|
\
|
2018-11-23 15:10:07 +00:00
|
|
|
# this "case" statement is generated via "update.sh"
|
2020-04-17 16:01:16 +00:00
|
|
|
\
|
2020-09-01 07:08:54 +00:00
|
|
|
if ! wget -nv -O docker.tgz "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz"; then \
|
2020-04-17 16:01:16 +00:00
|
|
|
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
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
COPY modprobe.sh /usr/local/bin/modprobe
|
|
|
|
COPY dockerd-entrypoint.sh /usr/local/bin/
|
2020-07-06 13:45:54 +00:00
|
|
|
COPY compose/ /compose/
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
2020-04-17 16:01:16 +00:00
|
|
|
&& addgroup --system dockremap \
|
2018-11-23 15:10:07 +00:00
|
|
|
&& adduser --system dockremap \
|
2020-04-17 16:01:16 +00:00
|
|
|
&& adduser dockremap dockremap \
|
|
|
|
&& echo 'dockremap:165536:65536' >> /etc/subuid \
|
2018-11-23 15:10:07 +00:00
|
|
|
&& echo 'dockremap:165536:65536' >> /etc/subgid
|
|
|
|
|
|
|
|
VOLUME /var/lib/docker
|
|
|
|
EXPOSE 2375
|
|
|
|
ENTRYPOINT ["dockerd-entrypoint.sh"]
|
2020-06-28 13:20:57 +00:00
|
|
|
CMD ["sh", "-c", "pytest $PYTEST_OPTS"]
|