Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
bind map /var/run/dnsreg to the net container
Browse files Browse the repository at this point in the history
  • Loading branch information
greyarch committed May 11, 2017
1 parent efa53c4 commit d15232f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/coffee/compose.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions tests/coffee/compose.test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit d15232f

Please sign in to comment.