mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2024-10-01 01:05:39 -04:00
25 lines
621 B
Bash
Executable File
25 lines
621 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
if [[ $# -ne 1 ]] ; then
|
|
echo "Usage: build-with.sh { docker | podman }"
|
|
exit 1
|
|
fi
|
|
|
|
builder=$1
|
|
case $builder in
|
|
docker|podman)
|
|
;;
|
|
*)
|
|
echo "You should use either docker or podman for building"
|
|
exit 2
|
|
esac
|
|
|
|
echo Building $builder image with dependencies..
|
|
$builder build -t qubes-mirage-firewall .
|
|
echo Building Firewall...
|
|
$builder run --rm -i -v `pwd`:/tmp/orb-build:Z qubes-mirage-firewall
|
|
echo "SHA2 of build: $(sha256sum ./dist/qubes-firewall.xen)"
|
|
echo "SHA2 last known: 12532d5777a237a88b0cb15e16e6c2d328730527de4c6bcfd73e1d22ca026b45"
|
|
echo "(hashes should match for released versions)"
|