2021-09-06 11:33:39 +00:00
|
|
|
# docker build -t clickhouse/sqlancer-test .
|
2021-01-13 09:49:52 +00:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
2021-11-25 16:30:39 +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
|
2021-08-23 08:22:39 +00:00
|
|
|
|
2021-09-08 09:58:17 +00:00
|
|
|
RUN apt-get update --yes && env DEBIAN_FRONTEND=noninteractive apt-get install wget unzip git default-jdk maven python3 --yes --no-install-recommends
|
2021-01-13 09:49:52 +00:00
|
|
|
RUN wget https://github.com/sqlancer/sqlancer/archive/master.zip -O /sqlancer.zip
|
|
|
|
RUN mkdir /sqlancer && \
|
|
|
|
cd /sqlancer && \
|
|
|
|
unzip /sqlancer.zip
|
|
|
|
RUN cd /sqlancer/sqlancer-master && mvn package -DskipTests
|
|
|
|
|
|
|
|
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"]
|