ClickHouse/docker/test/keeper-jepsen/Dockerfile

40 lines
1005 B
Docker
Raw Normal View History

2021-03-30 15:42:53 +00:00
# docker build -t yandex/clickhouse-keeper-jepsen-test .
FROM yandex/clickhouse-test-base
ENV DEBIAN_FRONTEND=noninteractive
ENV CLOJURE_VERSION=1.10.3.814
# arguments
2021-03-30 20:51:41 +00:00
ENV PR_TO_TEST=""
ENV SHA_TO_TEST=""
2021-03-30 15:42:53 +00:00
ENV NODES_USERNAME="root"
ENV NODES_PASSWORD=""
2021-03-31 15:19:38 +00:00
ENV TESTS_TO_RUN="1"
2021-03-30 15:42:53 +00:00
ENV TIME_LIMIT="30"
2021-03-30 20:51:41 +00:00
2021-03-30 15:42:53 +00:00
# volumes
ENV NODES_FILE_PATH="/nodes.txt"
ENV TEST_OUTPUT="/test_output"
RUN mkdir "/root/.ssh"
RUN touch "/root/.ssh/known_hosts"
# install java
2021-03-31 08:36:23 +00:00
RUN apt-get update && apt-get install default-jre default-jdk libjna-java libjna-jni ssh gnuplot graphviz --yes --no-install-recommends
2021-03-30 15:42:53 +00:00
# install clojure
RUN curl -O "https://download.clojure.org/install/linux-install-${CLOJURE_VERSION}.sh" && \
chmod +x "linux-install-${CLOJURE_VERSION}.sh" && \
bash "./linux-install-${CLOJURE_VERSION}.sh"
# install leiningen
RUN curl -O "https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein" && \
chmod +x ./lein && \
mv ./lein /usr/bin
COPY run.sh /
CMD ["/bin/bash", "/run.sh"]