Skip to content

Commit 33b2d4f

Browse files
SecAI-Hubclaude
andcommitted
Fix BlueBuild: guard airlock build against missing source
BlueBuild's script module only mounts files/ at /tmp/files/ — the services/ directory from the repo root is not available at /tmp/services/. Wrap airlock build in if/else guards so the image build continues (airlock is disabled by default). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5bab14b commit 33b2d4f

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

files/scripts/build-services.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,20 @@ dnf install -y golang python3 python3-pip cmake gcc gcc-c++ 2>/dev/null || true
1515

1616
mkdir -p "$INSTALL_DIR" "$SRC_DIR"
1717

18-
# --- Airlock (built from monorepo) ---
18+
# --- Airlock (disabled by default — last monorepo service) ---
1919
echo "Building: airlock"
20-
cp -r /tmp/services/airlock "${SRC_DIR}/airlock"
21-
cd "${SRC_DIR}/airlock"
22-
CGO_ENABLED=0 go build -ldflags="-s -w" -o "${INSTALL_DIR}/airlock" .
23-
echo " -> ${INSTALL_DIR}/airlock"
20+
if [ -d "/tmp/services/airlock" ]; then
21+
cp -r /tmp/services/airlock "${SRC_DIR}/airlock"
22+
elif [ -d "/tmp/files/services/airlock" ]; then
23+
cp -r /tmp/files/services/airlock "${SRC_DIR}/airlock"
24+
else
25+
echo "WARNING: airlock source not found — airlock will not be available (disabled by default)"
26+
fi
27+
if [ -d "${SRC_DIR}/airlock" ]; then
28+
cd "${SRC_DIR}/airlock"
29+
CGO_ENABLED=0 go build -ldflags="-s -w" -o "${INSTALL_DIR}/airlock" .
30+
echo " -> ${INSTALL_DIR}/airlock"
31+
fi
2432

2533
# --- ai-model-registry (standalone: security-first artifact registry) ---
2634
echo "Building: ai-model-registry"

0 commit comments

Comments
 (0)