
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
16 lines
459 B
Bash
Executable File
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."
|