build: replace bootstrap script with docker wrapper

This commit is contained in:
Tibo De Peuter 2026-08-18 20:14:56 +02:00
parent e23006d701
commit a1e34e01eb
3 changed files with 42 additions and 112 deletions

19
scripts/apply-host-layer.sh Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
# This script runs the host-layer OpenTofu configuration using a Docker container,
# keeping your laptop and the Proxmox node clean of dependencies.
echo "Running OpenTofu for host-layer..."
docker run --rm -it \
-v "$(pwd)":/workspace \
-w /workspace/opentofu/host-layer \
-v "$HOME/.ssh:/root/.ssh:ro" \
ghcr.io/opentofu/opentofu:latest init -upgrade
docker run --rm -it \
-v "$(pwd)":/workspace \
-w /workspace/opentofu/host-layer \
-v "$HOME/.ssh:/root/.ssh:ro" \
ghcr.io/opentofu/opentofu:latest apply