diff options
author | Josh Chen | 2020-07-16 18:57:13 +0200 |
---|---|---|
committer | Josh Chen | 2020-07-16 18:57:13 +0200 |
commit | f82258111e48a94d22f12fd4920d443edb66fb55 (patch) | |
tree | 0a600ef8cb4af7163d249cedcb62bdb2fa9890aa /.github/isabelle-action/Dockerfile | |
parent | 2a2fa1e4c643b73165af030dc3b6128886f7b654 (diff) |
set up CI
Diffstat (limited to '.github/isabelle-action/Dockerfile')
-rw-r--r-- | .github/isabelle-action/Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/isabelle-action/Dockerfile b/.github/isabelle-action/Dockerfile new file mode 100644 index 0000000..b223e02 --- /dev/null +++ b/.github/isabelle-action/Dockerfile @@ -0,0 +1,27 @@ +## Isabelle/Pure on Isabelle2020 + +FROM ubuntu +SHELL ["/bin/bash", "-c"] + +# packages +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get -y update && \ + apt-get install -y curl less libfontconfig1 libgomp1 libwww-perl rlwrap unzip && \ + apt-get clean + +# user +RUN useradd -m isabelle && (echo isabelle:isabelle | chpasswd) +USER isabelle + +# Isabelle +WORKDIR /home/isabelle +COPY Isabelle.tar.gz . +RUN tar xzf Isabelle.tar.gz && \ + mv Isabelle2020 Isabelle && \ + perl -pi -e 's,ISABELLE_HOME_USER=.*,ISABELLE_HOME_USER="\$USER_HOME/.isabelle",g;' Isabelle/etc/settings && \ + perl -pi -e 's,ISABELLE_LOGIC=.*,ISABELLE_LOGIC=Pure,g;' Isabelle/etc/settings && \ + Isabelle/bin/isabelle build -o system_heaps -b Pure && \ + rm Isabelle.tar.gz + +ENTRYPOINT ["Isabelle/bin/isabelle"] + |