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:
Clint Branham
2026-03-25 17:12:44 -05:00
parent 9e17036169
commit 6e9361eb7c
3 changed files with 17 additions and 25 deletions
+2 -7
View File
@@ -95,13 +95,8 @@ variable "docker_host_ip" {
type = string
}
variable "answer_files_dir" {
description = "Host path to the directory containing per-MAC answer.toml files"
type = string
}
variable "default_answer_file" {
description = "Host path to the default answer.toml file"
variable "answer_server_dir" {
description = "Host path to the answer server root directory (contains default.toml and answers/ subdirectory)"
type = string
}