mirror of
https://github.com/FuzzingLabs/fuzzforge_ai.git
synced 2026-03-13 15:56:02 +00:00
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.
20 lines
559 B
Bash
Executable File
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
|