Skip to content

Commit

Permalink
enable logging for the restart command
Browse files Browse the repository at this point in the history
  • Loading branch information
codekitchen committed Apr 10, 2017
1 parent 4834fd7 commit b3b7806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nginx: nginx
dockergen: docker-gen -watch -only-exposed -notify "/app/reload-nginx" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
dockergen: docker-gen -watch -only-exposed -notify-output -notify "/app/reload-nginx" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
dnsmasq: dnsmasq --no-daemon --port=19322 --no-resolv --address=/hostmachine.$DOMAIN_TLD/$HOSTMACHINE_IP --address=/.$DOMAIN_TLD/$DNS_IP
6 changes: 4 additions & 2 deletions join-networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ func main() {
toJoin := getNetworksToJoin(currentNetworks, bridgeNetworks)
toLeave := getNetworksToLeave(currentNetworks, bridgeNetworks)

fmt.Printf("currently in %d networks, found %d bridge networks, %d to join, %d to leave\n", len(currentNetworks), len(bridgeNetworks), len(toJoin), len(toLeave))

for _, id := range toLeave {
fmt.Printf("leaving network %s", id)
fmt.Printf("leaving network %s\n", id)
err := client.DisconnectNetwork(id, docker.NetworkConnectionOptions{
Container: *containerName,
})
Expand All @@ -44,7 +46,7 @@ func main() {
}

for _, id := range toJoin {
fmt.Printf("joining network %s", id)
fmt.Printf("joining network %s\n", id)
err := client.ConnectNetwork(id, docker.NetworkConnectionOptions{
Container: *containerName,
})
Expand Down

0 comments on commit b3b7806

Please sign in to comment.