mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
Merge pull request #35 from GoodOlClint/fix/answer-server-mount-v2
fix: mount answers/ and default.toml separately, not over /app
This commit is contained in:
@@ -47,7 +47,10 @@ REPO_ROOT="$(cd "$INFRA_DIR/../.." && pwd)"
|
||||
|
||||
# ── Defaults ────────────────────────────────────────────────────────
|
||||
CACHE_DIR="${CACHE_DIR:-/opt/pve-integration}"
|
||||
WORK_DIR="${WORK_DIR:-${RUNNER_TEMP:-$CACHE_DIR/work}}"
|
||||
# Always use a path under CACHE_DIR (shared mount) so files are visible
|
||||
# to sibling Docker containers. Do NOT use RUNNER_TEMP — it's container-local
|
||||
# in CI and invisible to the Docker host.
|
||||
WORK_DIR="${WORK_DIR:-$CACHE_DIR/work}"
|
||||
CONFIG_FILE="${CONFIG_FILE:-$WORK_DIR/config.json}"
|
||||
MODULE_ARTIFACT="${MODULE_ARTIFACT:-$REPO_ROOT/publish/netstandard2.0}"
|
||||
PVE_VERSIONS="${PVE_VERSIONS:-9 8}"
|
||||
|
||||
@@ -11,13 +11,14 @@ resource "docker_container" "answer_server" {
|
||||
|
||||
network_mode = "host"
|
||||
|
||||
# Mount the answer server root directory which contains:
|
||||
# default.toml — fallback answer file
|
||||
# answers/ — per-MAC answer files
|
||||
# The server expects both at ./default.toml and ./answers/ relative to /app
|
||||
volumes {
|
||||
host_path = var.answer_server_dir
|
||||
container_path = "/app"
|
||||
host_path = "${var.answer_server_dir}/answers"
|
||||
container_path = "/app/answers"
|
||||
}
|
||||
|
||||
volumes {
|
||||
host_path = "${var.answer_server_dir}/default.toml"
|
||||
container_path = "/app/default.toml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user