rynbrd / beacon Goto Github PK
View Code? Open in Web Editor NEWService discovery for Docker and etcd.
License: Other
Service discovery for Docker and etcd.
License: Other
I want to run this as a fleet global unit on my CoreOS cluster. A dockerfile or automated build would be sweet!
The underlying Docker client supports TLS but we don't implement that. Do the things to implement that.
Beacon_1 | panic: config failed to parse {hostname: } as string [recovered]
Beacon_1 | panic: config failed to parse {hostname: } as string
Beacon_1 |
Beacon_1 | goroutine 1 [running]:
Beacon_1 | runtime.panic(0x6a7520, 0xc210036ca0)
Beacon_1 | /usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
Beacon_1 | gopkg.in/yaml%2ev1.handleErr(0x7f23e217aae8)
Beacon_1 | /usr/share/go/src/gopkg.in/yaml.v1/yaml.go:28 +0x143
Beacon_1 | runtime.panic(0x6a7520, 0xc210036ca0)
Beacon_1 | /usr/local/go/src/pkg/runtime/panic.c:248 +0x106
Beacon_1 | gopkg.in/BlueDragonX/yamlcfg%2ev1.AssertIsString(0x739bb0, 0x8, 0x0, 0x0)
Beacon_1 | /usr/share/go/src/gopkg.in/BlueDragonX/yamlcfg.v1/errors.go:44 +0xb5
Beacon_1 | gopkg.in/BlueDragonX/yamlcfg%2ev1.GetString(0x6431e0, 0xc2100650f0, 0x739bb0, 0x8, 0x71a6a0, ...)
Beacon_1 | /usr/share/go/src/gopkg.in/BlueDragonX/yamlcfg.v1/parse.go:95 +0xf0
Beacon_1 | main.(_ServiceConfig).SetYAML(0xc210059420, 0x727aa0, 0x7, 0x6431e0, 0xc2100650f0, ...)
Beacon_1 | /tmp/build/src/beacon/config.go:104 +0x198
Beacon_1 | main.(_Config).SetYAML(0xc210059410, 0xc210000360, 0x5, 0x6431e0, 0xc210065060, ...)
Beacon_1 | /tmp/build/src/beacon/config.go:210 +0x24b
Beacon_1 | gopkg.in/yaml%2ev1.func·001()
Beacon_1 | /usr/share/go/src/gopkg.in/yaml.v1/decode.go:221 +0x83
Beacon_1 | gopkg.in/yaml%2ev1.(_decoder).mapping(0x7f23e217aa90, 0xc21004a240, 0x6ed020, 0xc210059410, 0x196, ...)
Beacon_1 | /usr/share/go/src/gopkg.in/yaml.v1/decode.go:503 +0x11a
Beacon_1 | gopkg.in/yaml%2ev1.(_decoder).unmarshal(0x7f23e217aa90, 0xc21004a240, 0x6ed020, 0xc210059410, 0x196, ...)
Beacon_1 | /usr/share/go/src/gopkg.in/yaml.v1/decode.go:261 +0x99
Beacon_1 | gopkg.in/yaml%2ev1.(_decoder).document(0x7f23e217aa90, 0xc21004a1e0, 0x6ed020, 0xc210059410, 0x196, ...)
Beacon_1 | /usr/share/go/src/gopkg.in/yaml.v1/decode.go:273 +0x77
Beacon_1 | gopkg.in/yaml%2ev1.(_decoder).unmarshal(0x7f23e217aa90, 0xc21004a1e0, 0x6ed020, 0xc210059410, 0x196, ...)
Beacon_1 | /usr/share/go/src/gopkg.in/yaml.v1/decode.go:255 +0x67
Beacon_1 | gopkg.in/yaml%2ev1.Unmarshal(0xc21000ba00, 0x69, 0x269, 0x6c4900, 0xc210059410, ...)
Beacon_1 | /usr/share/go/src/gopkg.in/yaml.v1/yaml.go:95 +0x205
Beacon_1 | main.LoadConfig(0x2, 0x722a60, 0x6, 0xc21000ae70, 0x0, ...)
Beacon_1 | /tmp/build/src/beacon/config.go:287 +0x226
Beacon_1 | main.main()
Beacon_1 | /tmp/build/src/beacon/main.go:23 +0x1d4
Beacon_1 |
Beacon_1 | goroutine 3 [runnable]:
Beacon_1 | os/signal.loop()
Beacon_1 | /usr/local/go/src/pkg/os/signal/signal_unix.go:19
Beacon_1 | created by os/signal.init·1
Beacon_1 | /usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x31
I don't know extactly how that go-dependency management works, but if I clone and compile today, I get an error:
src/github.com/BlueDragonX/beacon/monitor.go:130: not enough arguments in call to mon.client.ListContainers
AFAICS, the second boolean parameter is missing at the ListContainers call.
Currently if a container announces itself (via the SERVICES variable) as exposing a service on a particular port and does not actually expose that port then it is silently ignored.
Need better logging to indicate that no exposed port is available and it is being skipped.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.