Files
fuzzforge_ai/scripts/container-env.sh
abel 712b91ccb3 feat(makefile): add module build targets and helper scripts
Split module image build into build-modules-sdk and
build-modules-images; build-modules
now depends on both. Factor container engine detection and version
parsing into
scripts/container-env.sh and scripts/pyproject-version.sh respectively.
Add Makefile
variables for SDK/module paths and image naming, update help output, and
simplify
clean target to remove common caches and .pyc files.
2026-03-10 12:50:16 +01:00

20 lines
559 B
Bash
Executable File

#!/usr/bin/env bash
# Resolve the container engine based on FUZZFORGE_ENGINE env var.
# Usage: source scripts/container-env.sh
# Exports: CONTAINER_CMD
if [ "${FUZZFORGE_ENGINE}" = "podman" ]; then
if [ -n "${SNAP}" ]; then
echo "Using Podman with isolated storage (Snap detected)"
CONTAINER_CMD="podman --root ~/.fuzzforge/containers/storage --runroot ~/.fuzzforge/containers/run"
else
echo "Using Podman"
CONTAINER_CMD="podman"
fi
else
echo "Using Docker"
CONTAINER_CMD="docker"
fi
export CONTAINER_CMD