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
|
|
|
|
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
|
|
|
|
2024-01-29 13:00:22 +00:00
|
|
|
RUN apt-get update --yes \
|
2024-07-23 22:18:12 +00:00
|
|
|
&& env DEBIAN_FRONTEND=noninteractive apt-get install wget git python3 default-jdk maven --yes --no-install-recommends \
|
2024-01-29 13:00:22 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf /tmp/*
|
2023-01-11 21:43:10 +00:00
|
|
|
|
|
|
|
# We need to get the repository's HEAD each time despite, so we invalidate layers' cache
|
2023-01-11 21:24:01 +00:00
|
|
|
ARG CACHE_INVALIDATOR=0
|
2021-01-13 09:49:52 +00:00
|
|
|
RUN mkdir /sqlancer && \
|
2023-06-15 22:28:09 +00:00
|
|
|
wget -q -O- https://github.com/sqlancer/sqlancer/archive/main.tar.gz | \
|
2023-01-11 21:43:10 +00:00
|
|
|
tar zx -C /sqlancer && \
|
2023-06-15 22:28:09 +00:00
|
|
|
cd /sqlancer/sqlancer-main && \
|
2023-06-15 22:44:42 +00:00
|
|
|
mvn --no-transfer-progress package -DskipTests && \
|
2023-01-11 21:43:10 +00:00
|
|
|
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"]
|