Bryan Boreham
95cbc8940e
Sync 'owned' data with existing containers at startup
2016-03-02 11:35:24 -08:00
Bryan Boreham
dd74bb1774
Simplify by using GetFromPid
2016-03-01 12:12:46 -08:00
Adam Harrison
adf56d316d
Remove obsolete alternative procfs support
2016-03-01 20:10:47 +00:00
Matthias Radestock
3283bc89fc
Merge branch '1.4'
2016-02-23 13:56:56 +00:00
Matthias Radestock
e52abafc48
treat restarting containers as "not running"
...
thus preventing stale DNS & IPAM entries.
Fixes #1977
2016-02-20 10:59:47 +00:00
Adam Harrison
65c48707f6
Use netlink instead of shelling out to weave ps
2016-02-04 12:51:18 +00:00
Bryan Boreham
b2b293a8ee
Added 'ContainerDestroyed()' callback from docker client
2016-01-12 14:38:44 +00:00
Matthias Radestock
79452d3a9a
cosmetic(ish)
2016-01-02 14:00:23 +00:00
Matthias Radestock
75d9e95b15
appease linter
2016-01-02 12:35:10 +00:00
Bryan Boreham
357f67255e
Move logging of Docker API info to callers
2015-12-17 08:25:51 +00:00
Paul Bellamy
a4ef96690e
support alternate DOCKER_HOST settings when launching the plugin
2015-12-15 18:12:31 +00:00
Paul Bellamy
f28ad350bd
make weave and the proxy work with tcp-only dockers via DOCKER_HOST
2015-12-15 18:02:59 +00:00
Bryan Boreham
ec420c66d4
Review feedback
2015-12-01 16:47:47 +00:00
Bryan Boreham
5eb99fe5ef
Get container IP for various networks
2015-11-30 14:27:33 +00:00
Bryan Boreham
bd2b8df7c5
Refactor to use Weave's docker client and watcher
2015-11-30 13:25:20 +00:00
Bryan Boreham
682133a56a
Move ODP helper functions out to their own package
2015-11-10 17:09:17 +00:00
Matthias Radestock
8bd77c0d47
refactor: get rid of router/utils.go
...
most functions end up in other files in the router package, but a few
land in common.
2015-11-07 15:45:29 +00:00
Bryan Boreham
9ad1ccf19f
Don't listen to SIGUSR1, since we stopped handling it a few months back
2015-10-02 13:52:23 +01:00
Bryan Boreham
81e8ba223f
Do network attach on docker event rather than intercepting start and restart commands.
...
This means it also works when the docker daemon restarts a container.
2015-09-01 17:48:12 +01:00
Matthias Radestock
c1c5450caf
more idiomatic logger initialisation, with standard default log level
2015-08-18 12:04:48 +01:00
Tom Wilkie
cdab6a71b7
Merge pull request #1289 from weaveworks/move-listvar
...
Move ListVar into common, so it can be reused elsewhere.
2015-08-12 12:56:25 +01:00
Tom Wilkie
45293fdcac
Move ListVar into common, so it can be reused elsewhere.
2015-08-12 11:35:57 +00:00
Adam Harrison
fc9a1c8664
new weave status, weave status ..., and weave report
2015-08-11 12:15:13 +01:00
David Wragg
7d6f85424c
Move OnOff into router.go
2015-08-03 14:06:23 +01:00
Tom Wilkie
25c9180fdf
Don't swallow errors in the docker client.
2015-07-17 12:35:12 +00:00
Matthias Radestock
7063ca51aa
remove dead code
2015-07-15 05:35:05 +01:00
Matthias Radestock
97498d26f7
remove dead code
2015-07-15 05:32:35 +01:00
Tom Wilkie
01f7201a9e
Remove legacy WeaveDNS code.
2015-07-14 16:00:28 +00:00
Matthias Radestock
2b61bc91df
cosmetic: remove blank log lines
2015-07-11 16:43:33 +01:00
Tom Wilkie
00a7490a1d
Code coverage for smoke tests.
...
Allow non-circle people to build coverage reports.
2015-07-10 14:45:14 +00:00
Matthias Radestock
6596c8b1a7
make container aliveness check part of the ipam & dns API
...
...rather than conducting it implicitly when an ID "looks like" a
container ID.
Closes #971
2015-07-04 19:13:13 +01:00
Bryan Boreham
ff2d7451e2
Remove -debug option, superceded by --log-level
2015-07-04 03:27:07 +01:00
Bryan Boreham
a5ddb63fca
Remove Info.Print in favour of Log.Info
2015-07-01 14:01:45 +01:00
Bryan Boreham
7276fc1d4b
Wire up selection of logging levels to match old behaviour
...
- note that all output is now going to stderr.
2015-07-01 12:26:23 +01:00
Bryan Boreham
67a6961b4b
Adjust logrus feature of padding all lines less than 44 chars with spaces at the end
2015-07-01 12:26:23 +01:00
Bryan Boreham
d82578d895
Replace logging calls with new style
2015-07-01 12:26:23 +01:00
Bryan Boreham
c786e7eb5a
Switch from basic logger to logrus
2015-07-01 12:26:23 +01:00
Paul Bellamy
cdee7a5d6f
Replacing custom testing helpers with testify, where possible
2015-06-17 16:58:03 +01:00
Bryan Boreham
1b57a24789
Don't re-initialise log writers unless the type changed.
...
This avoids race-conditions in unit tests where the initialisation
is on a different goroutine to the logging.
2015-06-17 11:35:01 +01:00
Alvaro Saurin
ba2f6671a6
Removed a couple of Debug.Printf()s
2015-06-15 17:11:27 +02:00
Bryan Boreham
0ff311356d
Flush the background updater goroutines to make tests reliable
2015-06-15 13:48:54 +01:00
Bryan Boreham
e49a29197b
Add a Flush() routine to synchronize callers
2015-06-15 13:48:24 +01:00
Bryan Boreham
2b7fb699af
Clean up a couple of compilation errors
2015-06-15 13:47:01 +01:00
Bryan Boreham
f3ad8bd52f
Merge branch 'weave-fix-unittest' of https://github.com/inercia/weave into inercia-weave-fix-unittest
2015-06-15 11:51:14 +01:00
Bryan Boreham
13944f3811
Refactor is-running check so we can re-use more of the code
2015-06-12 17:09:11 +01:00
Bryan Boreham
086daca3d0
Fold communication-checking code into docker.Client.NewClient()
2015-06-12 14:45:29 +01:00
Alvaro Saurin
d6a9fc57cc
New scheduled queue, for scheduling calls to callables
2015-06-10 22:56:38 +02:00
Alvaro Saurin
5cb2347f77
Use our own Docker client
2015-06-10 22:27:47 +02:00
Matthias Radestock
c10f1dacad
introduce OnOff helper, for consistency in status output
2015-06-05 15:00:02 +01:00
Bryan Boreham
3cd1a17c23
IP Allocation Management
...
Using the Ring CRDT and Weave gossip, provides an interface
for the weave script to allocate IP addresses in `weave run`,
`weave start` and `weave expose`.
See docs/ipam.md for implementation details, and site/features.md
for user-visible changes.
2015-05-14 17:44:06 +01:00