mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-09-04 19:25:36 +00:00
fix: mount answer server directory instead of individual file
Docker bind mount fails when mounting a file that doesn't exist on the host (creates a directory instead). In CI, the container's $WORK_DIR path differs from the host path, so the file mount failed. Changed to mount a single answer-server/ directory containing both default.toml and answers/ subdirectory. Replaced two TF variables (answer_files_dir, default_answer_file) with one (answer_server_dir). Layout: $WORK_DIR/answer-server/default.toml + answers/<mac>.toml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,14 +11,13 @@ 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_files_dir
|
||||
container_path = "/app/answers"
|
||||
}
|
||||
|
||||
volumes {
|
||||
host_path = var.default_answer_file
|
||||
container_path = "/app/default.toml"
|
||||
host_path = var.answer_server_dir
|
||||
container_path = "/app"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user