From c185297746cf69bdb7b94cd6a396fec2082c97f2 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:50:45 +0200 Subject: [PATCH] test --- justfile | 2 +- packages/by-name/kata/kata-image/package.nix | 3 +++ packages/by-name/kata/runtime-class-files/package.nix | 1 - packages/by-name/microsoft/runtime-class-files/package.nix | 2 -- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index c0cc37ad52..bf6dfabe11 100644 --- a/justfile +++ b/justfile @@ -6,7 +6,7 @@ push target: #!/usr/bin/env bash set -euo pipefail mkdir -p {{ workspace_dir }} - pushedImg=$(nix run .#containers.push-{{ target }} -- "$container_registry/contrast/{{ target }}") + pushedImg=$(nix run -L .#containers.push-{{ target }} -- "$container_registry/contrast/{{ target }}") printf "ghcr.io/edgelesssys/contrast/%s:latest=%s\n" "{{ target }}" "$pushedImg" >> {{ workspace_dir }}/just.containerlookup # Build the coordinator, containerize and push it. diff --git a/packages/by-name/kata/kata-image/package.nix b/packages/by-name/kata/kata-image/package.nix index 70103668cd..f94b661ad3 100644 --- a/packages/by-name/kata/kata-image/package.nix +++ b/packages/by-name/kata/kata-image/package.nix @@ -162,6 +162,9 @@ stdenv.mkDerivation rec { --bind /build/var /var \ --dev-bind /dev/null /dev/null \ fakeroot bash -c "bash $(pwd)/rootfs.sh -r /build/root ${distro} && \ + echo '++ rootfs built ++' && \ + ls -lah /build/root/usr/lib && \ + cat /build/root/usr/lib/libnpth.so.0 && \ tar \ --exclude='./usr/lib/systemd/system/systemd-coredump@*' \ --exclude='./usr/lib/systemd/system/systemd-journald*' \ diff --git a/packages/by-name/kata/runtime-class-files/package.nix b/packages/by-name/kata/runtime-class-files/package.nix index 5c65db9f27..c6c253bbbc 100644 --- a/packages/by-name/kata/runtime-class-files/package.nix +++ b/packages/by-name/kata/runtime-class-files/package.nix @@ -55,7 +55,6 @@ stdenvNoCC.mkDerivation { buildPhase = '' mkdir -p $out sha256sum ${image} ${kernel} ${qemu-snp.bin} ${qemu-tdx.bin} ${containerd-shim-contrast-cc-v2} ${ovmf-snp} ${ovmf-tdx} | sha256sum | cut -d " " -f 1 > $out/launch-digest.hex - printf "contrast-cc-%s" "$(cat $out/launch-digest.hex | head -c 32)" > $out/runtime-handler ''; passthru = { diff --git a/packages/by-name/microsoft/runtime-class-files/package.nix b/packages/by-name/microsoft/runtime-class-files/package.nix index 19aa1a9b4d..c895cd060a 100644 --- a/packages/by-name/microsoft/runtime-class-files/package.nix +++ b/packages/by-name/microsoft/runtime-class-files/package.nix @@ -24,8 +24,6 @@ stdenvNoCC.mkDerivation { buildPhase = '' mkdir -p $out igvmmeasure -b ${igvm} | dd conv=lcase > $out/launch-digest.hex - echo -n "contrast-cc-" > $out/runtime-handler - cat $out/launch-digest.hex | head -c 32 >> $out/runtime-handler ''; passthru = {