Skip to content

Commit

Permalink
finish docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyu Yang committed May 29, 2024
1 parent b2b8daf commit dbf3965
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ RUN make -j8
RUN make install
WORKDIR /LeanEuclid

# Install smt-portfolio.
RUN pip3 install --upgrade pip
RUN pip3 install smt-portfolio
# Install smt-portfolio in venv.
RUN python3 -m venv venv
RUN venv/bin/pip install smt-portfolio
ENV PATH="/LeanEuclid/venv/bin:${PATH}"

# Install elan.
ENV ELAN_HOME="/.elan"
Expand All @@ -37,4 +38,3 @@ RUN curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -
RUN lake script run check
RUN lake exe cache get
RUN lake build SystemE Book UniGeo E3
RUN lake -R -Kenv=dev build SystemE:docs
23 changes: 23 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# Install elan.
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | bash -s -- -y
source $HOME/.elan/env

# Build and Install CVC5.
git clone https://github.com/cvc5/cvc5 && cd cvc5
./configure.sh --auto-download
cd build && make -j8 && sudo make install
cd ../..

# Build and Install Z3.
git clone https://github.com/Z3Prover/z3 && cd z3
python3 scripts/mk_make.py
cd build && make -j8 && sudo make install
cd ../..

pip install smt-portfolio

lake script run check
lake exe cache get
lake build SystemE Book UniGeo E3

0 comments on commit dbf3965

Please sign in to comment.