forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding Dockerfile to build from local source and extend README
- Loading branch information
Showing
2 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
FROM ubuntu:focal | ||
|
||
# Generic packages | ||
RUN apt update && DEBIAN_FRONTEND="noninteractive" apt install -y \ | ||
cmake \ | ||
curl \ | ||
git \ | ||
libboost-filesystem-dev \ | ||
libboost-program-options-dev \ | ||
libboost-system-dev \ | ||
libboost-test-dev \ | ||
python3-pip \ | ||
software-properties-common \ | ||
unzip \ | ||
wget | ||
|
||
# Python dependencies | ||
RUN pip3 install psutil | ||
|
||
# CVC4 | ||
RUN curl --silent "https://api.github.com/repos/CVC4/CVC4/releases/latest" | grep browser_download_url | grep -E 'linux' | cut -d '"' -f 4 | wget -qi - -O /usr/local/bin/cvc4 \ | ||
&& chmod a+x /usr/local/bin/cvc4 | ||
|
||
# Z3 | ||
RUN curl --silent "https://api.github.com/repos/Z3Prover/z3/releases/latest" | grep browser_download_url | grep -E 'ubuntu' | cut -d '"' -f 4 | wget -qi - -O z3.zip \ | ||
&& unzip -p z3.zip '*bin/z3' > /usr/local/bin/z3 \ | ||
&& chmod a+x /usr/local/bin/z3 | ||
|
||
# Get .NET | ||
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ | ||
&& dpkg -i packages-microsoft-prod.deb \ | ||
&& apt update \ | ||
&& apt install -y apt-transport-https \ | ||
&& apt update \ | ||
&& apt install -y dotnet-sdk-3.1 | ||
|
||
# Get boogie | ||
RUN dotnet tool install --global boogie | ||
ENV PATH="${PATH}:/root/.dotnet/tools" | ||
|
||
# Copy solidity sourcecode, instead of cloning it | ||
RUN mkdir solidity | ||
COPY . solidity | ||
|
||
RUN cd solidity \ | ||
&& mkdir -p build \ | ||
&& cd build \ | ||
&& cmake -DUSE_Z3=Off -DUSE_CVC4=Off .. \ | ||
&& make \ | ||
&& make install | ||
|
||
# Set entrypoint | ||
ENTRYPOINT ["solc-verify.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters