Skip to content

Commit 2c36b27

Browse files
committed
Actualize and improve Dockerfiles
1 parent 6bb0f48 commit 2c36b27

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ RUN cd deps/CFPQ_Data && python3 setup.py install
1515

1616
FROM python:3.9-slim
1717

18-
RUN apt update
19-
RUN apt install time
18+
RUN apt update && apt install -y time git
2019

2120
COPY --from=builder /usr/local /usr/local
2221

22+
RUN echo 'echo Welcome to the CFPQ_PyAlgo Docker container!' >> /root/.bashrc \
23+
&& echo 'echo "Run \`python3 -m cfpq_cli.run_all_pairs_cflr --help\` to see the usage message."' >> /root/.bashrc \
24+
&& echo 'echo "Detailed documentation is available in the \`/app/docs/\` folder."' >> /root/.bashrc
25+
2326
WORKDIR /app
2427
COPY . /app
28+
29+
ENTRYPOINT ["/bin/bash"]

Dockerfile-all-tools

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ RUN apt-get update && apt-get install -y \
2121
wget \
2222
npm
2323

24-
## POCR dependency, that needs to be built from sources
25-
RUN git clone https://github.com/kisslune/SVF.git /SVF \
24+
# POCR dependency, that needs to be built from sources
25+
RUN git clone -b svf-llvm14 https://github.com/kisslune/SVF.git /SVF \
2626
&& cd /SVF \
2727
&& /bin/bash -c "source ./build.sh" \
28-
&& echo 'pushd /SVF > /dev/null && source setup.sh && popd > /dev/null' >> /root/.bashrc
28+
&& echo 'pushd /SVF > /dev/null && source setup.sh > /dev/null && popd > /dev/null' >> /root/.bashrc
2929
ENV SVF_DIR=/SVF
3030

3131
# POCR (general-purpose CFL-r tool)
3232
RUN git clone https://github.com/kisslune/POCR.git /POCR \
3333
&& cd /POCR \
3434
&& /bin/bash -c "source ./../SVF/setup.sh && source ./build.sh" \
35-
&& echo 'pushd /POCR > /dev/null && source setup.sh && popd > /dev/null' >> /root/.bashrc
35+
&& echo 'pushd /POCR > /dev/null && source setup.sh > /dev/null && popd > /dev/null' >> /root/.bashrc
3636
ENV POCR_DIR=/POCR
3737

3838
# Gigascale dependencies
@@ -88,4 +88,19 @@ RUN cd /py_algo && pip3 install -r requirements.txt
8888
RUN cd /py_algo/deps/CFPQ_Data && python3 setup.py install
8989
COPY . /py_algo
9090

91-
# TODO add data downloading
91+
WORKDIR /py_algo
92+
93+
# Download benchmarks
94+
RUN pip install gdown
95+
RUN apt-get update && apt-get install unzip
96+
RUN gdown 12Qhc6XNXYbpPbZGp-lo30NsywFELAFhu \
97+
&& unzip CFPQ_eval.zip -d . \
98+
&& rm CFPQ_eval.zip
99+
100+
# Add welcome message
101+
RUN echo 'echo Welcome to the CFPQ_PyAlgo_Eval Docker container!' >> /root/.bashrc \
102+
&& echo 'echo "Run \`python3 -m cfpq_eval.eval_all_pairs_cflr --help\` to see the usage message."' >> /root/.bashrc \
103+
&& echo 'echo "Pre-made configuration files are available in the \`/py_algo/configs/\` folder."' >> /root/.bashrc \
104+
&& echo 'echo "Detailed documentation is available in the \`/py_algo/docs/\` folder."' >> /root/.bashrc
105+
106+
ENTRYPOINT ["/bin/bash"]

0 commit comments

Comments
 (0)