mirror of
https://github.com/FuzzingLabs/fuzzforge_ai.git
synced 2026-03-22 05:53:26 +00:00
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.
This commit is contained in:
19
scripts/container-env.sh
Executable file
19
scripts/container-env.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user