@@ -21,18 +21,18 @@ RUN apt-get update && apt-get install -y \
21
21
wget \
22
22
npm
23
23
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 \
26
26
&& cd /SVF \
27
27
&& /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
29
29
ENV SVF_DIR=/SVF
30
30
31
31
# POCR (general-purpose CFL-r tool)
32
32
RUN git clone https://github.com/kisslune/POCR.git /POCR \
33
33
&& cd /POCR \
34
34
&& /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
36
36
ENV POCR_DIR=/POCR
37
37
38
38
# Gigascale dependencies
@@ -88,4 +88,19 @@ RUN cd /py_algo && pip3 install -r requirements.txt
88
88
RUN cd /py_algo/deps/CFPQ_Data && python3 setup.py install
89
89
COPY . /py_algo
90
90
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