-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a basic `Dockerfile` that installs `copilot` and `copilot-verifier`, along with bundling its dependencies (e.g., `z3`).
- Loading branch information
1 parent
e909887
commit 586c7e3
Showing
3 changed files
with
65 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/build/ | ||
.cabal-sandbox | ||
.stack-work | ||
**/cabal.config | ||
cabal.sandbox.config | ||
dist | ||
TAGS | ||
unitTest.tix | ||
hpc_report | ||
stack.yaml | ||
**/dist-newstyle | ||
.*.swp | ||
cabal.project.local | ||
*.tix | ||
.ghc.environment.* | ||
*~ | ||
_darcs | ||
.boring | ||
|
||
# Where copilot-verifier puts its autogenerated code | ||
results/ | ||
|
||
Dockerfile | ||
.git | ||
.gitignore |
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,29 @@ | ||
FROM ubuntu:focal | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && \ | ||
apt-get install --yes curl gcc g++ git libgmp3-dev libtinfo-dev libz-dev make wget z3 | ||
|
||
ENV GHCUP_VER=0.1.22.0 | ||
RUN mkdir -p /root/.ghcup/bin | ||
RUN wget https://downloads.haskell.org/~ghcup/$GHCUP_VER/x86_64-linux-ghcup-$GHCUP_VER -O /root/.ghcup/bin/ghcup && \ | ||
chmod a+x /root/.ghcup/bin/ghcup | ||
|
||
ENV PATH=/root/bsc/bin:/root/.cabal/bin:/root/.ghcup/bin:$PATH | ||
|
||
ENV GHC_VER=9.2.8 | ||
ENV CABAL_VER=3.8.1.0 | ||
RUN ghcup install ghc $GHC_VER && \ | ||
ghcup set ghc $GHC_VER && \ | ||
ghcup install cabal $CABAL_VER && \ | ||
ghcup set cabal $CABAL_VER && \ | ||
cabal update | ||
|
||
COPY . /copilot-verifier | ||
WORKDIR /copilot-verifier | ||
|
||
RUN cabal configure --enable-tests && \ | ||
cabal build lib:copilot-verifier --write-ghc-environment-files=always && \ | ||
cabal test copilot-verifier | ||
|
||
ENTRYPOINT ["/usr/bin/bash"] |
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