From d15232f2854db379961bbe67ee4f3cfe01f7f8af Mon Sep 17 00:00:00 2001 From: Greyarch BV Date: Thu, 11 May 2017 15:43:44 +0200 Subject: [PATCH] bind map /var/run/dnsreg to the net container --- src/coffee/compose.coffee | 1 + tests/coffee/compose.test.coffee | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/coffee/compose.coffee b/src/coffee/compose.coffee index e2457cf..53ce745 100644 --- a/src/coffee/compose.coffee +++ b/src/coffee/compose.coffee @@ -82,6 +82,7 @@ module.exports = (config) -> cap_add: ["NET_ADMIN"] labels: labels stop_signal: 'SIGKILL' + volumes: ['/var/run/dnsreg:/var/run/dnsreg'] if config.net_container?.healthcheck netcontainer.healthcheck = config.net_container.healthcheck diff --git a/tests/coffee/compose.test.coffee b/tests/coffee/compose.test.coffee index 4ccbea8..025d2a1 100644 --- a/tests/coffee/compose.test.coffee +++ b/tests/coffee/compose.test.coffee @@ -179,9 +179,10 @@ describe 'Compose', -> cap_add: ['NET_ADMIN'] labels: 'bigboat.service.type': 'net' stop_signal: 'SIGKILL' - it 'should should add a network container for compose service of type \'service\'', -> + volumes: ['/var/run/dnsreg:/var/run/dnsreg'] + it 'should add a network container for compose service of type \'service\'', -> containerTest 'service' - it 'should should add a network container for compose service of type \'oneoff\'', -> + it 'should add a network container for compose service of type \'oneoff\'', -> containerTest 'oneoff' it 'should inherit all labels from the service container, except the bigboat.service.type label', -> service =