4NK_node/scripts/build_all_images.sh
Debian 5c60af349d
Some checks failed
CI - 4NK_node / Security Tests (push) Failing after 27s
CI - 4NK_node / Documentation Tests (push) Failing after 3s
CI - 4NK_node / Security Audit (push) Successful in 3s
CI - 4NK_node / Release Guard (push) Has been skipped
CI - 4NK_node / Performance Tests (push) Successful in 27s
CI - 4NK_node / Notify (push) Failing after 1s
CI - 4NK_node / Publish Release (push) Has been skipped
CI - 4NK_node / Code Quality (push) Failing after 30s
CI - 4NK_node / Unit Tests (push) Failing after 29s
CI - 4NK_node / Integration Tests (push) Failing after 33s
CI - 4NK_node / Docker Build & Test (push) Failing after 10s
feat(config): centralize restart config; add conf/restart_config.conf; adapt restart script; add skeleton external_nodes.conf; update README
2025-09-04 19:44:15 +00:00

16 lines
459 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
BASE_DIR="/home/debian/code/4NK_dev/4NK_node"
echo "Building all local Docker images from Dockerfiles under modules/ and projects/ ..."
while IFS= read -r df; do
dir=$(dirname "$df")
rel=${dir#"$BASE_DIR/"}
img_tag="4nk-node-"$(echo "$rel" | tr '/' '-')":latest"
echo "Building $img_tag from $dir"
docker build -t "$img_tag" "$dir"
done < <(find "$BASE_DIR" -name Dockerfile -print)
echo "All images built."