Fix Marathon backend
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
68da47b59a
commit
2a3a34a80c
2 changed files with 7 additions and 1 deletions
|
@ -43,7 +43,7 @@ marathon:
|
||||||
command: --event_subscriber http_callback
|
command: --event_subscriber http_callback
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik
|
image: containous/traefik
|
||||||
command: -c /dev/null --web --logLevel=DEBUG --marathon --marathon.domain marathon.localhost --marathon.endpoint http://172.17.0.1:8080 --marathon.watch
|
command: -c /dev/null --web --logLevel=DEBUG --marathon --marathon.domain marathon.localhost --marathon.endpoint http://172.17.0.1:8080 --marathon.watch
|
||||||
ports:
|
ports:
|
||||||
- "8000:80"
|
- "8000:80"
|
||||||
|
|
|
@ -69,6 +69,7 @@ func (provider *Marathon) Provide(configurationChan chan<- types.ConfigMessage,
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
pool.Go(func(stop chan bool) {
|
pool.Go(func(stop chan bool) {
|
||||||
|
defer close(update)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-stop:
|
case <-stop:
|
||||||
|
@ -86,6 +87,11 @@ func (provider *Marathon) Provide(configurationChan chan<- types.ConfigMessage,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
configuration := provider.loadMarathonConfig()
|
||||||
|
configurationChan <- types.ConfigMessage{
|
||||||
|
ProviderName: "marathon",
|
||||||
|
Configuration: configuration,
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue