ClickHouse/docker/test/integration/runner/Dockerfile

101 lines
2.2 KiB
Docker
Raw Normal View History

2019-06-04 13:01:16 +00:00
# docker build -t yandex/clickhouse-integration-tests-runner .
2021-02-12 15:50:52 +00:00
FROM ubuntu:20.04
2019-05-21 06:17:46 +00:00
RUN apt-get update \
&& env DEBIAN_FRONTEND=noninteractive apt-get install --yes \
ca-certificates \
bash \
btrfs-progs \
e2fsprogs \
iptables \
xfsprogs \
tar \
pigz \
wget \
git \
iproute2 \
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 \
bsdutils \
curl \
2020-10-02 16:54:07 +00:00
python3-pika \
liblua5.1-dev \
luajit \
libssl-dev \
libcurl4-openssl-dev \
2019-12-13 13:56:53 +00:00
gdb \
software-properties-common \
libkrb5-dev \
krb5-user \
2021-03-12 09:05:40 +00:00
g++ \
2019-05-21 06:17:46 +00:00
&& rm -rf \
/var/lib/apt/lists/* \
/var/cache/debconf \
/tmp/* \
&& apt-get clean
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV DOCKER_CHANNEL stable
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -c -s) ${DOCKER_CHANNEL}"
RUN apt-get update \
&& env DEBIAN_FRONTEND=noninteractive apt-get install --yes \
docker-ce \
&& rm -rf \
/var/lib/apt/lists/* \
/var/cache/debconf \
/tmp/* \
&& apt-get clean
RUN dockerd --version; docker --version
2020-10-16 15:27:22 +00:00
RUN python3 -m pip install \
PyMySQL \
2021-02-19 09:23:51 +00:00
aerospike==4.0.0 \
2020-10-16 15:27:22 +00:00
avro \
cassandra-driver \
2021-02-05 15:30:45 +00:00
confluent-kafka==1.5.0 \
2021-01-27 09:50:11 +00:00
dict2xml \
dicttoxml \
2020-10-16 15:27:22 +00:00
docker \
2021-02-12 15:50:52 +00:00
docker-compose==1.28.2 \
2020-10-16 15:27:22 +00:00
grpcio \
grpcio-tools \
kafka-python \
kazoo \
minio \
protobuf \
2021-02-12 15:50:52 +00:00
psycopg2-binary==2.8.6 \
2020-10-16 15:27:22 +00:00
pymongo \
pytest \
pytest-timeout \
2021-02-12 15:50:52 +00:00
pytest-xdist \
2021-07-12 08:32:20 +00:00
pytest-repeat \
2020-10-16 15:27:22 +00:00
redis \
tzlocal \
urllib3 \
2021-05-22 20:33:15 +00:00
requests-kerberos \
pyhdfs
COPY modprobe.sh /usr/local/bin/modprobe
COPY dockerd-entrypoint.sh /usr/local/bin/
COPY compose/ /compose/
2021-05-21 13:29:43 +00:00
COPY misc/ /misc/
RUN set -x \
&& addgroup --system dockremap \
&& adduser --system dockremap \
&& adduser dockremap dockremap \
&& echo 'dockremap:165536:65536' >> /etc/subuid \
&& echo 'dockremap:165536:65536' >> /etc/subgid
EXPOSE 2375
ENTRYPOINT ["dockerd-entrypoint.sh"]
CMD ["sh", "-c", "pytest $PYTEST_OPTS"]