mirror of
https://github.com/Veridise/Picus.git
synced 2026-05-11 03:00:06 -04:00
70 lines
2.0 KiB
Plaintext
70 lines
2.0 KiB
Plaintext
FROM ubuntu:22.04
|
|
|
|
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
|
|
ENV PATH /opt/conda/bin:$PATH
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# Basic dependencies, antlr4, and C++ build tools
|
|
# libpoly: libgmp-dev
|
|
# racket: openssh-client
|
|
RUN set -x && \
|
|
apt-get update --fix-missing && \
|
|
apt-get install -y --no-install-recommends \
|
|
bzip2 \
|
|
ca-certificates \
|
|
openssh-client \
|
|
git \
|
|
wget \
|
|
build-essential \
|
|
zip unzip \
|
|
python3-dev python3-pip \
|
|
gcc make cmake ninja-build \
|
|
antlr4 \
|
|
libgmp-dev \
|
|
software-properties-common gpg-agent \
|
|
jq \
|
|
time
|
|
|
|
# fetch cvc5-ff
|
|
RUN pip install tomli scikit-build Cython && \
|
|
git clone https://github.com/cvc5/cvc5.git --single-branch && \
|
|
cd cvc5 && \
|
|
git checkout de62429
|
|
|
|
# compile and install cvc5-ff
|
|
RUN cd ./cvc5/ && \
|
|
./configure.sh --cocoa --auto-download --python-bindings --ninja && \
|
|
cd ./build/ && \
|
|
cmake --build . && \
|
|
cmake --install . && \
|
|
cd ../.. && rm -r ./cvc5
|
|
|
|
# racket and rosette and other racket packages
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN add-apt-repository -y ppa:plt/racket && \
|
|
apt-get update && \
|
|
apt-get install -y racket libssl-dev curl && \
|
|
raco pkg install --auto rosette && \
|
|
raco pkg install --auto csv-reading && \
|
|
raco pkg install --auto graph && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# build rust & circom 2.1.6
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
|
|
source "$HOME/.cargo/env" && \
|
|
git clone https://github.com/iden3/circom.git && \
|
|
cd circom/ && \
|
|
git checkout v2.1.6 && \
|
|
cargo build --release && \
|
|
cargo install --path circom && \
|
|
cd .. && rm -rf circom/
|
|
|
|
# install z3
|
|
RUN wget https://github.com/Z3Prover/z3/releases/download/z3-4.11.0/z3-4.11.0-x64-glibc-2.31.zip && \
|
|
unzip z3-4.11.0-x64-glibc-2.31.zip && \
|
|
cp z3-4.11.0-x64-glibc-2.31/bin/z3 /bin/ && \
|
|
rm -r z3-4.11.0-x64-glibc-2.31/
|
|
|
|
CMD [ "/bin/bash" ]
|