nix-samples/poc-oci/check.sh

14 lines
196 B
Bash
Raw Permalink Normal View History

2024-03-22 15:51:40 +01:00
#!/bin/sh
set -e
nix build -f default.nix
ls -l
sh result > oci
IMGID=$(podman load < oci 2>&1 | tail -1 | awk '{ print $3 }')
rm -f oci result
echo
echo ${IMGID}
echo "dive podman://${IMGID}"