bryanlarsen / docker-plugin-kv-consul Goto Github PK
View Code? Open in Web Editor NEWSet consul keys on container start
Set consul keys on container start
Starting docker-plugins with:
autoremove 1.0 disabled Removes any container that dies, including stops and kills
docker-plugin-kv-consul 0.1 enabled Set arbitrary consul keys on container start
envhooks 1.0 disabled Evaluates hook code from environ variables ENVHOOKS_<EVENT>
timeout 1.0 disabled Kills containers with TIMEOUT set after TIMEOUT seconds
webhooks 1.0 disabled Hits WEBHOOKS_URL or WEBHOOKS_<EVENT>_URL with a POST for each event
2016/04/05 14:53:26 info: trigger: 32ab22a7e6eb exists
2016/04/05 14:53:27 info: trigger: be4b7d1472e8 exists
2016/04/05 14:53:27 info: trigger: 7cb19d86b830 exists
2016/04/05 14:53:27 info: trigger: 1206dee331fb exists
2016/04/05 14:53:27 info: trigger: 13fc2d3bc51f exists
2016/04/05 14:53:27 info: trigger: 14ef14f7f406 exists
2016/04/05 14:53:27 info: trigger: 44e5113c3cbe exists
2016/04/05 14:53:27 info: trigger: 5c877df17005 exists
2016/04/05 14:53:27 info: trigger: 74986606331f exists
2016/04/05 14:53:27 info: trigger: 50604b03fa05 exists
2016/04/05 14:53:27 info: trigger: f85b879a2731 exists
2016/04/05 14:53:27 info: trigger: 49cd8a63feb6 exists
2016/04/05 14:53:27 info: trigger: 4a5619117f8e exists
2016/04/05 14:53:27 info: trigger: 1d4e6aca6a5e exists
2016/04/05 14:53:28 info: trigger: 4d16afb0a9af exists
2016/04/05 14:53:28 info: trigger: a2e47e56bafc exists
2016/04/05 14:53:28 info: listening for Docker events...
2016/04/05 14:56:40 info: trigger: 32ab22a7e6eb kill
2016/04/05 14:56:41 info: trigger: 32ab22a7e6eb die
panic: runtime error: slice bounds out of range
goroutine 49 [running]:
runtime.panic(0x719e80, 0x92360f)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/panic.c:279 +0xf5
main.trigger(0xc20803e040, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0xc20804c100)
/Users/progrium/Projects/go/src/github.com/progrium/dockerhook/dockerhook.go:79 +0x856
created by main.main
/Users/progrium/Projects/go/src/github.com/progrium/dockerhook/dockerhook.go:132 +0x74f
goroutine 16 [chan receive]:
main.main()
/Users/progrium/Projects/go/src/github.com/progrium/dockerhook/dockerhook.go:131 +0x6d1
goroutine 19 [finalizer wait]:
runtime.park(0x4153d0, 0x927670, 0x9258a9)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x927670, 0x9258a9)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1445
goroutine 36 [select]:
github.com/fsouza/go-dockerclient.(*eventMonitoringState).monitorEvents(0xc2080262a0, 0xc20804c100)
/Users/progrium/Projects/go/src/github.com/fsouza/go-dockerclient/event.go:160 +0x359
created by github.com/fsouza/go-dockerclient.(*eventMonitoringState).enableEventMonitoring
/Users/progrium/Projects/go/src/github.com/fsouza/go-dockerclient/event.go:133 +0x113
goroutine 38 [IO wait]:
net.runtime_pollWait(0x7faaf33a9860, 0x72, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc2080cc140, 0x72, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc2080cc140, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc2080cc0e0, 0xc20805f000, 0x1000, 0x1000, 0x0, 0x7faaf33a84b0, 0xb)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_unix.go:242 +0x34c
net.(*conn).Read(0xc20803c038, 0xc20805f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/net.go:122 +0xe7
bufio.(*Reader).fill(0xc2080053e0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).ReadSlice(0xc2080053e0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:298 +0x22c
net/http.readLine(0xc2080053e0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/chunked.go:111 +0x59
net/http.(*chunkedReader).beginChunk(0xc2080c6a20)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/chunked.go:48 +0x45
net/http.(*chunkedReader).Read(0xc2080c6a20, 0xc20808e001, 0x5ff, 0x5ff, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/chunked.go:78 +0xc0
net/http.(*body).readLocked(0xc2080bb200, 0xc20808e001, 0x5ff, 0x5ff, 0x5, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transfer.go:577 +0x81
net/http.(*body).Read(0xc2080bb200, 0xc20808e001, 0x5ff, 0x5ff, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transfer.go:572 +0x11a
encoding/json.(*Decoder).readValue(0xc208028000, 0x1d, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/json/stream.go:124 +0x557
encoding/json.(*Decoder).Decode(0xc208028000, 0x661440, 0xc2080ba740, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/json/stream.go:44 +0x7a
github.com/fsouza/go-dockerclient.func·004(0xc20804a1b0, 0xc208010000)
/Users/progrium/Projects/go/src/github.com/fsouza/go-dockerclient/event.go:269 +0x17f
created by github.com/fsouza/go-dockerclient.(*Client).eventHijack
/Users/progrium/Projects/go/src/github.com/fsouza/go-dockerclient/event.go:283 +0x46c
goroutine 46 [IO wait]:
net.runtime_pollWait(0x7faaf33a97b0, 0x72, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc2080cca00, 0x72, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc2080cca00, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc2080cc9a0, 0xc20806b000, 0x1000, 0x1000, 0x0, 0x7faaf33a84b0, 0xb)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_unix.go:242 +0x34c
net.(*conn).Read(0xc20803c070, 0xc20806b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/net.go:122 +0xe7
bufio.(*Reader).fill(0xc208004660)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).ReadSlice(0xc208004660, 0x4f2f0a, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:298 +0x22c
bufio.(*Reader).ReadLine(0xc208004660, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:326 +0x69
net/textproto.(*Reader).readLineSlice(0xc2080c7410, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/textproto/reader.go:55 +0x9d
net/textproto.(*Reader).ReadLine(0xc2080c7410, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/textproto/reader.go:36 +0x4e
net/http.ReadResponse(0xc208004660, 0xc2080008f0, 0x7faaf321b9c8, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/response.go:123 +0xc1
net/http/httputil.(*ClientConn).Read(0xc208010420, 0xc2080008f0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/httputil/persist.go:404 +0x439
net/http/httputil.(*ClientConn).Do(0xc208010420, 0xc2080008f0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/httputil/persist.go:428 +0x83
github.com/fsouza/go-dockerclient.(*Client).do(0xc20804c100, 0x75ac70, 0x3, 0xc208004480, 0x51, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/progrium/Projects/go/src/github.com/fsouza/go-dockerclient/client.go:343 +0x573
github.com/fsouza/go-dockerclient.(*Client).InspectContainer(0xc20804c100, 0xc2080ba5c0, 0x40, 0x0, 0x0, 0x0)
/Users/progrium/Projects/go/src/github.com/fsouza/go-dockerclient/container.go:215 +0xd3
main.inspect(0xc20804c100, 0xc2080ba5c0, 0x40, 0x3)
/Users/progrium/Projects/go/src/github.com/progrium/dockerhook/dockerhook.go:64 +0x63
main.trigger(0xc2080ba680, 0x4, 0x4, 0xc208037820, 0x3, 0xc2080ba5c0, 0x40, 0xc20804c100)
/Users/progrium/Projects/go/src/github.com/progrium/dockerhook/dockerhook.go:88 +0x477
created by main.main
/Users/progrium/Projects/go/src/github.com/progrium/dockerhook/dockerhook.go:132 +0x74f
fatal: destination path 'docker-plugin-kv-consul' already exists and is not an empty directory.
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.