-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from palainp/mirage4
update to mirage 4.2.0 & mirage-xen 8.0.0
- Loading branch information
Showing
13 changed files
with
48 additions
and
48 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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# Pin the base image to a specific hash for maximum reproducibility. | ||
# It will probably still work on newer images, though, unless an update | ||
# changes some compiler optimisations (unlikely). | ||
#FROM ocurrent/opam:fedora-32-ocaml-4.11 | ||
FROM ocurrent/opam@sha256:fce44a073ff874166b51c33a4e37782286d48dbba1b5aa43563a0dd35d15510f | ||
# fedora-35-ocaml-4.14 | ||
FROM ocaml/opam@sha256:68b7ce1fd4c992d6f3bfc9b4b0a88ee572ced52427f0547b6e4eb6194415f585 | ||
ENV PATH="${PATH}:/home/opam/.opam/4.14/bin" | ||
|
||
# Since mirage 4.2 we must use opam version 2.1 or later | ||
RUN sudo ln -sf /usr/bin/opam-2.1 /usr/bin/opam | ||
|
||
# Pin last known-good version for reproducible builds. | ||
# Remove this line (and the base image pin above) if you want to test with the | ||
# latest versions. | ||
RUN cd ~/opam-repository && git fetch origin master && git reset --hard 479a47921a489d11833e03cf949bfb612bd65e41 && opam update | ||
RUN cd /home/opam/opam-repository && git fetch origin master && git reset --hard f904585098b809001380caada4b7426c112d086c && opam update | ||
|
||
RUN opam depext -i -y mirage | ||
RUN opam install -y mirage opam-monorepo | ||
RUN mkdir /home/opam/qubes-mirage-firewall | ||
ADD config.ml /home/opam/qubes-mirage-firewall/config.ml | ||
WORKDIR /home/opam/qubes-mirage-firewall | ||
RUN opam config exec -- mirage configure -t xen && make depend | ||
CMD opam config exec -- mirage configure -t xen && \ | ||
opam config exec -- make tar | ||
CMD opam exec -- mirage configure -t xen && make depend && make tar |
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,8 +1,7 @@ | ||
MIRAGE_KERNEL_NAME = qubes_firewall.xen | ||
OCAML_VERSION ?= 4.10.0 | ||
MIRAGE_KERNEL_NAME = dist/qubes-firewall.xen | ||
OCAML_VERSION ?= 4.14.0 | ||
SOURCE_BUILD_DEP := firewall-build-dep | ||
|
||
firewall-build-dep: | ||
opam install -y depext | ||
opam depext -i -y mirage | ||
opam install -y mirage | ||
|
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
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
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