forked from FStarLang/FStar
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1,274 changed files
with
179,408 additions
and
173,275 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 |
---|---|---|
@@ -1,37 +1,36 @@ | ||
FROM ubuntu:bionic | ||
FROM ubuntu:18.04 | ||
|
||
MAINTAINER Benjamin Beurdouche <[email protected]>; Daniel Fabian <[email protected]> | ||
MAINTAINER Benjamin Beurdouche <[email protected]>; Victor Dumitrescu <[email protected]>; Daniel Fabian <[email protected]>; | ||
|
||
# Define versions of dependencies | ||
ENV opamv 4.05.0 | ||
ENV z3v 4.5.1.1f29cebd4df6-x64-ubuntu-14.04 | ||
|
||
# Install required packages and set versions | ||
# Install required packages | ||
RUN apt-get -qq update | ||
RUN apt-get install -y software-properties-common | ||
RUN add-apt-repository -y ppa:avsm/ppa # for opam 2 | ||
RUN apt-get -qq update | ||
RUN apt-get install --yes sudo wget libssl-dev libsqlite3-dev g++ gcc m4 make opam pkg-config python libgmp3-dev unzip | ||
RUN apt-get install -y sudo wget libssl-dev libsqlite3-dev g++ gcc m4 make opam pkg-config python libgmp3-dev unzip cmake | ||
|
||
# Create user | ||
RUN useradd -ms /bin/bash FStar | ||
RUN echo "FStar ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
USER FStar | ||
WORKDIR /home/FStar | ||
RUN useradd -ms /bin/bash build | ||
RUN echo "build ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
USER build | ||
WORKDIR /home/build | ||
|
||
# Prepare build (OCaml packages) | ||
ENV OPAMYES true | ||
RUN opam init | ||
RUN echo ". /home/FStar/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true" >> .bashrc | ||
RUN opam switch ${opamv} | ||
RUN opam install ocamlfind batteries sqlite3 fileutils stdint zarith yojson pprint menhir ulex ppx_deriving ppx_deriving_yojson process | ||
# Prepare and build OPAM and OCaml | ||
RUN opam init -y --disable-sandboxing --compiler=4.07.0 | ||
RUN opam update | ||
RUN opam install -y ocamlbuild ocamlfind batteries stdint zarith yojson fileutils pprint menhir ulex ppx_deriving ppx_deriving_yojson process pprint visitors fix wasm | ||
|
||
# Prepare and build Z3 | ||
RUN wget https://github.com/FStarLang/binaries/raw/master/z3-tested/z3-${z3v}.zip | ||
RUN unzip z3-${z3v}.zip | ||
RUN mv z3-${z3v} z3 | ||
ENV PATH "/home/FStar/z3/bin:$PATH" | ||
WORKDIR /home/FStar | ||
ENV z3=z3-4.8.5-x64-debian-8.11 | ||
ADD https://github.com/FStarLang/binaries/raw/master/z3-tested/${z3}.zip . | ||
RUN sudo unzip ${z3}.zip | ||
ENV PATH=/home/build/${z3}/bin:${PATH} | ||
WORKDIR /home/build | ||
|
||
# Prepare and build F* | ||
ADD update-fstar.sh . | ||
RUN git clone https://github.com/FStarLang/FStar.git --depth=1 | ||
ENV PATH "~/FStar/bin:$PATH" | ||
RUN opam config exec -- make -C FStar/src/ocaml-output | ||
ENV FSTAR_HOME=/home/build/FStar | ||
WORKDIR $FSTAR_HOME | ||
RUN opam config exec -- make | ||
WORKDIR /home/build |
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
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
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
*.sav | ||
*.hints.fsval | ||
*.hints.mlval | ||
*.bench | ||
dump* | ||
cache/ | ||
/VS/packages | ||
|
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
File renamed without changes.
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
Oops, something went wrong.