Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
Refactor Dockerfile into multi-stage virgin/full targets and introduce a single flag-based image build script. Standardize image naming, remove redundant build scripts, and update Makefile targets accordingly. CI workflows now build missing virgin images and run root and user tests consistently across all supported distributions. https://chatgpt.com/share/693c29d9-9b28-800f-a549-5661c783d968
32 lines
912 B
Bash
Executable File
32 lines
912 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
IMAGE="pkgmgr-$distro"
|
|
|
|
echo
|
|
echo "------------------------------------------------------------"
|
|
echo ">>> Testing VENV: $IMAGE"
|
|
echo "------------------------------------------------------------"
|
|
echo "[test-env-virtual] Inspect image metadata:"
|
|
docker image inspect "$IMAGE" | sed -n '1,40p'
|
|
|
|
echo "[test-env-virtual] Running: docker run --rm --entrypoint pkgmgr $IMAGE --help"
|
|
echo
|
|
|
|
# Run the command and capture the output
|
|
if OUTPUT=$(docker run --rm \
|
|
-e REINSTALL_PKGMGR=1 \
|
|
-v pkgmgr_nix_store_${distro}:/nix \
|
|
-v "$(pwd):/src" \
|
|
-v "pkgmgr_nix_cache_${distro}:/root/.cache/nix" \
|
|
"$IMAGE" 2>&1); then
|
|
echo "$OUTPUT"
|
|
echo
|
|
echo "[test-env-virtual] SUCCESS: $IMAGE responded to 'pkgmgr --help'"
|
|
|
|
else
|
|
echo "$OUTPUT"
|
|
echo
|
|
echo "[test-env-virtual] ERROR: $IMAGE failed to run 'pkgmgr --help'"
|
|
exit 1
|
|
fi |