ClickHouse/docker/test/sqlancer/Dockerfile

24 lines
804 B
Docker
Raw Normal View History

2021-09-06 11:33:39 +00:00
# docker build -t clickhouse/sqlancer-test .
2022-10-17 13:10:31 +00:00
FROM ubuntu:22.04
2021-01-13 09:49:52 +00:00
# ARG for quick switch to a given ubuntu mirror
ARG apt_archive="http://archive.ubuntu.com"
RUN sed -i "s|http://archive.ubuntu.com|$apt_archive|g" /etc/apt/sources.list
RUN apt-get update --yes && \
env DEBIAN_FRONTEND=noninteractive apt-get install wget git default-jdk maven python3 --yes --no-install-recommends && \
apt-get clean
# We need to get the repository's HEAD each time despite, so we invalidate layers' cache
ARG CACHE_INVALIDATOR=0
2021-01-13 09:49:52 +00:00
RUN mkdir /sqlancer && \
wget -q -O- https://github.com/sqlancer/sqlancer/archive/master.tar.gz | \
tar zx -C /sqlancer && \
cd /sqlancer/sqlancer-master && \
mvn package -DskipTests && \
rm -r /root/.m2
2021-01-13 09:49:52 +00:00
COPY run.sh /
2021-02-26 11:43:58 +00:00
COPY process_sqlancer_result.py /
2021-01-13 09:49:52 +00:00
CMD ["/bin/bash", "/run.sh"]