diff options
author | Emile <hanemile@protonmail.com> | 2019-10-07 11:57:53 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-07 11:57:53 +0200 |
commit | 718913571bfbcacb411313c173edcb016e3a211b (patch) | |
tree | 0ca5625abf12c135339a2d856ea1dc64b828c369 /src | |
parent | 18c19dc7e37f1e75278bc2e0262c5013fc8dfd02 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/docker.go | 5 |
1 files changed, 5 insertions, 0 deletions
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", + }, }, } |