build: replace bootstrap script with docker wrapper
This commit is contained in:
parent
e23006d701
commit
a1e34e01eb
3 changed files with 42 additions and 112 deletions
19
scripts/apply-host-layer.sh
Executable file
19
scripts/apply-host-layer.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue