Skip to content

Commit 41d9d8b

Browse files
committed
fix: connect validator container to platform-network on startup
This allows the validator to communicate with challenge containers via hostname. The orchestrator now calls connect_self_to_network() during initialization.
1 parent f433704 commit 41d9d8b

File tree

1 file changed

+6
-0
lines changed
  • crates/challenge-orchestrator/src

1 file changed

+6
-0
lines changed

crates/challenge-orchestrator/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ impl ChallengeOrchestrator {
6161
// Ensure the detected network exists (creates it if running outside Docker)
6262
docker.ensure_network().await?;
6363

64+
// Connect the validator container to the platform network
65+
// This allows the validator to communicate with challenge containers by hostname
66+
if let Err(e) = docker.connect_self_to_network().await {
67+
tracing::warn!("Could not connect validator to platform network: {}", e);
68+
}
69+
6470
let challenges = Arc::new(RwLock::new(HashMap::new()));
6571
let health_monitor = HealthMonitor::new(challenges.clone(), config.health_check_interval);
6672

0 commit comments

Comments
 (0)