Skip to content

Commit 07ff3d6

Browse files
author
Thomas Leonard
committed
Fix opam-repository commit for reproducible builds
Also, display the actual and expected SHA hashes after building.
1 parent d6074f2 commit 07ff3d6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
FROM ocaml/opam:debian-8_ocaml-4.03.0
2+
3+
# Pin last known-good version for reproducible builds.
4+
# Remove this line if you want to test with the latest versions.
5+
RUN cd opam-repository && git reset --hard 0f17b354206c97e729700ce60ddce3789ccb1d52 && opam update
6+
27
RUN sudo apt-get install -y m4 libxen-dev
38
RUN opam install -y vchan xen-gnt mirage-xen-ocaml mirage-xen-minios io-page mirage-xen mirage
49
RUN opam pin add -n -y mirage-nat 'https://github.com/talex5/mirage-nat.git#simplify-checksum'

build-with-docker.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2-
set -eux
2+
set -eu
3+
echo Building Docker image with dependencies..
34
docker build -t qubes-mirage-firewall .
5+
echo Building Firewall...
46
docker run --rm -i -v `pwd`:/home/opam/qubes-mirage-firewall qubes-mirage-firewall
7+
echo "SHA2 of build: $(sha256sum mir-qubes-firewall.xen)"
8+
echo "SHA2 last known: f0c1a06fc4b02b494c81972dc89419af6cffa73b75839c0e8ee3798d77bf69b3"

0 commit comments

Comments
 (0)