-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50377b7
commit e6ff61c
Showing
4 changed files
with
174 additions
and
17 deletions.
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
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,58 @@ | ||
ARG Z3_VERSION | ||
ARG K_VERSION | ||
ARG BASE_DISTRO | ||
ARG LLVM_VERSION | ||
|
||
FROM ghcr.io/foundry-rs/foundry:nightly-ca67d15f4abd46394b324c50e21e66f306a1162d as FOUNDRY | ||
|
||
ARG Z3_VERSION | ||
FROM z3:${Z3_VERSION} as Z3 | ||
|
||
ARG K_VERSION | ||
FROM runtimeverificationinc/kframework-k:ubuntu-jammy-${K_VERSION} | ||
|
||
COPY --from=FOUNDRY /usr/local/bin/forge /usr/local/bin/forge | ||
COPY --from=FOUNDRY /usr/local/bin/anvil /usr/local/bin/anvil | ||
COPY --from=FOUNDRY /usr/local/bin/cast /usr/local/bin/cast | ||
|
||
COPY --from=Z3 /usr/bin/z3 /usr/bin/z3 | ||
|
||
ARG LLVM_VERSION | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade --yes \ | ||
&& apt-get install --yes \ | ||
cargo \ | ||
clang-${LLVM_VERSION} \ | ||
cmake \ | ||
curl \ | ||
debhelper \ | ||
libboost-test-dev \ | ||
libcrypto++-dev \ | ||
libprocps-dev \ | ||
libssl-dev \ | ||
libyaml-dev \ | ||
llvm-${LLVM_VERSION}-dev \ | ||
llvm-${LLVM_VERSION}-tools \ | ||
maven \ | ||
python3 \ | ||
python3-pip | ||
|
||
ARG USER=user | ||
ARG GROUP | ||
ARG USER_ID | ||
ARG GROUP_ID | ||
RUN groupadd -g ${GROUP_ID} ${GROUP} && useradd -m -u ${USER_ID} -s /bin/sh -g ${GROUP} ${USER} | ||
|
||
USER ${USER}:${GROUP} | ||
RUN mkdir /home/${USER}/workspace | ||
WORKDIR /home/${USER}/workspace | ||
|
||
ENV PATH=/home/${USER}/.cargo/bin:/home/${USER}/.local/bin:/usr/local/bin/:${PATH} | ||
|
||
RUN curl -sSL https://install.python-poetry.org | python3 - \ | ||
&& poetry --version | ||
|
||
RUN cargo install svm-rs --version 0.3.0 --locked \ | ||
&& svm install 0.8.13 \ | ||
&& solc --version |
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,22 @@ | ||
FROM ubuntu:jammy | ||
|
||
ENV TZ=America/Chicago | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade --yes \ | ||
&& apt-get install --yes \ | ||
clang \ | ||
cmake \ | ||
git \ | ||
python3 | ||
|
||
ARG Z3_VERSION=4.12.1 | ||
RUN git clone 'https://github.com/z3prover/z3' --branch=z3-${Z3_VERSION} \ | ||
&& cd z3 \ | ||
&& python3 scripts/mk_make.py \ | ||
&& cd build \ | ||
&& make -j8 \ | ||
&& make install \ | ||
&& cd ../.. \ | ||
&& rm -rf z3 |
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