@@ -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
2929ENV SVF_DIR=/SVF
3030
3131# POCR (general-purpose CFL-r tool)
3232RUN 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
3636ENV POCR_DIR=/POCR
3737
3838# Gigascale dependencies
@@ -88,4 +88,19 @@ RUN cd /py_algo && pip3 install -r requirements.txt
8888RUN cd /py_algo/deps/CFPQ_Data && python3 setup.py install
8989COPY . /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