From 718913571bfbcacb411313c173edcb016e3a211b Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 7 Oct 2019 11:57:53 +0200 Subject: mounting the circus companion file seeding the challenges into the companion container careful: if the setup is run in a docker-swarm, this might break because the individual containers await the companion file in /etc/companion.json --- src/docker.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/docker.go b/src/docker.go index 71075c6..4c0c48f 100644 --- a/src/docker.go +++ b/src/docker.go @@ -61,6 +61,11 @@ func spawnCompanion(username string, accesscode string) string { Source: "/var/run/docker.sock", Target: "/var/run/docker.sock", }, + { + Type: mount.TypeBind, + Source: "/etc/companion.json", + Target: "/etc/companion.json", + }, }, } -- cgit 1.4.1