Michael Bridgen
734a3abae8
Merge branch 'pr297'
2015-01-02 16:46:34 +00:00
Michael Bridgen
82423ad466
Merge branch 'pr306_lock_versions'
2014-12-30 17:22:34 +00:00
Michael Bridgen
5f69637f31
Merge branch '34_version_alignment' of https://github.com/rade/weave into pr306_lock_versions
2014-12-30 17:00:08 +00:00
Michael Bridgen
2a1a40c05e
Merge branch 'pr291_improve_testdev'
2014-12-30 16:55:01 +00:00
Michael Bridgen
87b3537b54
Merge branch 'improve_dev_and_test_env' of https://github.com/errordeveloper/weave into pr291_improve_testdev
2014-12-30 16:44:32 +00:00
Michael Bridgen
d3002384d7
Also push the :latest tags to Dockerhub when publishing
2014-12-30 16:01:10 +00:00
Michael Bridgen
a2fcda9267
Use the download URL for the latest release
2014-12-30 14:49:48 +00:00
Michael Bridgen
8aaf72cbf5
Update changelog for first (0.7.0) release.
2014-12-30 14:36:25 +00:00
Michael Bridgen
29f94fd64f
Update the example weave status output
2014-12-30 12:50:46 +00:00
Michael Bridgen
82dfe1cc02
Upload the release artefact to a "latest_release" release
...
We would like to have a stable URL for the most recently released
script, so that we can mention it in the README and people can use it
in update scripts.
Since GitHub's releases/latest URL redirects, and anyway doesn't work
for downloads, we have to create (possibly delete first) a release
tagged "latest_release" and update it.
2014-12-29 18:28:02 +00:00
Michael Bridgen
ec7dc556ed
Factor out ask_version and don't exit 1 if it fails
2014-12-29 12:05:38 +00:00
Michael Bridgen
6c2bef5f88
Missed change of command in usage message
2014-12-29 12:05:38 +00:00
Michael Bridgen
314fff0cff
No need for make publish
2014-12-29 12:05:38 +00:00
Michael Bridgen
f842b22eb8
Do better with checking the changelog
...
Before, this could fail without a message if there was a changelog but
no matching line.
Also change the changelog format
== Release v0.0.1
to
== Release 0.0.1
2014-12-24 12:44:19 +00:00
Michael Bridgen
8b783af832
Quote all echoings and be consistent about the message prefix
2014-12-24 12:04:53 +00:00
Michael Bridgen
0a14eb58b2
Don't hardwire executable names; use logical names instead
...
We could use `os.Args[0]` instead of hardwired names, but that ends up
being e.g. `/home/weave/weaver`. So, use logical names instead.
2014-12-24 11:52:50 +00:00
Michael Bridgen
b0b7649c8e
Switch to proper github and dockerhub repo
2014-12-24 11:04:52 +00:00
Michael Bridgen
b014d98c78
Put versions in the script and weavedns too, and report them
...
sudo weave version
2014-12-24 11:04:52 +00:00
Michael Bridgen
0348767d73
prepare -> build to better avoid mistakes
2014-12-24 11:04:52 +00:00
Michael Bridgen
ef82e81c3f
Push tagged images to docker
2014-12-24 11:04:52 +00:00
Michael Bridgen
801ca43fbf
Better (working) way of checking for a release
2014-12-24 11:04:52 +00:00
Michael Bridgen
ab4aa21cca
Up to the point of making a git release
...
(under my own account for the minute)
2014-12-24 11:04:52 +00:00
Michael Bridgen
ccf7e9993a
Add version reporting to weaver
2014-12-24 11:04:51 +00:00
Michael Bridgen
bfc9df4d25
Skeleton of a release script
2014-12-24 11:04:51 +00:00
Michael Bridgen
5b5d1e615d
Smoke tests
...
cd test
cat README.md
./setup.sh
./run_all.sh
2014-12-04 17:20:58 +00:00
Michael Bridgen
086dbf9eef
Merge pull request #261 from errordeveloper/master
...
Add play button over screencast image, so it invites to click
2014-12-04 12:43:28 +00:00
Michael Bridgen
b08c28c038
Cope with duplicate name->IP entries
...
The zone DB no longer considers duplciates of (IP, name); it will
reject duplicates of (IP, name, ident), but this ultimately doesn't
matter since those are all the fields it records anyway.
The HTTP interface treats these duplicates as trivial success (i.e.,
it acts as if it's idempotent, which it is).
This changes the behaviour for removals: if (IP, name) is recorded for
two different containers, removing one will leave the other extant.
2014-12-01 15:44:44 +00:00
Michael Bridgen
0764d7aaaf
Don't splode in error type checks if given nil
...
These two testing utils assumed that they got an error, and checked
its type; however, the most likely failure case is that there's no
error (i.e., nil). In that case they would cause a NPE panic.
2014-12-01 14:13:41 +00:00
Michael Bridgen
7187d38047
Merge remote-tracking branch 'rade/189_assert_docker_networking'
2014-11-28 14:06:16 +00:00
Michael Bridgen
56056c06b1
Merge remote-tracking branch 'rade/186_stop_dns'
2014-11-28 12:55:43 +00:00
Michael Bridgen
42e7c05ead
Merge pull request #247 from rade/235_document_cross_domain_search
...
document how to configure search across sub-domains
2014-11-28 12:23:36 +00:00
Michael Bridgen
b3d19d6e9d
Wait for weaveDNS HTTP to be running before sending it names
...
This adds a no-op endpoint to the HTTP API at `/status`. The script
simply tries this until it succeeds or gets bored.
2014-11-26 14:18:26 +00:00
Michael Bridgen
6a076d05b0
Only get the DNS container IP once
...
`populate_dns` previously used http_call, which looks up the IP for a
container each time. I've factored the HTTP bit after the IP look-up
in http_call out, so it can be used directly. This involved switching
arguments around to make the tail call easier.
2014-11-26 14:18:26 +00:00
Michael Bridgen
3d8249b4c3
Populate DNS when starting the weaveDNS container
2014-11-26 14:18:26 +00:00
Michael Bridgen
2534977f99
Make weaveDNS use the docker bridge IP instead of its own
...
This means the `--dns` setting for containers will work even if the
weavedns container is restarted (and assigned a new docker network
IP).
2014-11-26 13:16:52 +00:00
Michael Bridgen
6e8060cb7f
Merge branch '208_opt_in' of github.com:bboreham/weave into pr234_with_dns
2014-11-25 14:33:02 +00:00
Michael Bridgen
2a8ef7803b
Catch the README up with the change in IP used
2014-11-21 16:23:56 +00:00
Michael Bridgen
95430cb528
Make weaveDNS use the docker bridge IP instead of its own
...
This means the `--dns` setting for containers will work even if the
weavedns container is restarted (and assigned a new docker network
IP).
2014-11-21 16:23:56 +00:00
Michael Bridgen
e55a27fb58
Merge branch 'master' of github.com:bboreham/weave into pr213
2014-11-21 14:39:28 +00:00
Michael Bridgen
674da8dafd
Merge branch 'make_tests' of github.com:bboreham/weave into make_tests
2014-11-20 12:20:02 +00:00
Michael Bridgen
abba2f6b66
Merge pull request #202 from errordeveloper/issue185_min_kernel_version
...
Add kernel version check and document in README
2014-11-19 16:40:33 +00:00
Michael Bridgen
64b20d8f30
Remove redundant shell function
...
This was used before http_call was made, but that function effectively
inlines it.
2014-11-19 16:20:53 +00:00
Michael Bridgen
5d094f132b
Merge pull request #196 from errordeveloper/master
...
Add quick start video to the README
(and minor markdown tweaks along for the ride)
2014-11-18 12:11:28 +00:00
Michael Bridgen
61d2595c76
Better phrasing for http_call error messages
2014-11-17 16:28:11 +00:00
Michael Bridgen
40de90a4c2
Better terminologicals for no-IP case
2014-11-17 16:25:08 +00:00
Michael Bridgen
dce73559b7
Differentiate between failure cases in http_call
...
.. otherwise, no networking can look like no running container.
2014-11-17 15:58:11 +00:00
Michael Bridgen
04ed4aef6c
Script to publish gh-pages to site
...
Ideally to be used after merging changes from master with
`./bin/merge-into-gh-pages`
2014-11-14 14:08:45 +00:00
Michael Bridgen
1026342993
Lowercase weave for consistency
2014-11-14 14:02:26 +00:00
Michael Bridgen
eeff76dbd7
Script to merge master/site into gh-pages
2014-11-14 14:00:22 +00:00
Michael Bridgen
a1badfccc7
Put gh-pages branch in site/
...
git read-tree -u --prefix=site/ gh-pages
This is so we can work on code and docs at the same time.
2014-11-14 11:55:07 +00:00
Michael Bridgen
418578a986
Merge pull request #175 from squaremo/issue172_dns_search
...
Supply a --dns-search to blank the inherited resolv.conf search
(fixes #172 )
2014-11-11 15:46:52 +00:00
Michael Bridgen
a61080e025
Supply a --dns-search to blank the inherited resolv.conf search
...
In the absence of *either* a `--dns` or `--dns-search` argument,
Docker will write a `/etc/resolv.conf` based on the host's. Since, in
general, we rely on the DNS search path being empty (so that the
resolver uses the local domain), we want to blank the
`/etc/resolv.conf` by providing `--dns-search=.` when running a
container.
However, if there's a `--dns-search=` in the remainder of the args,
Docker will append them to the dot, which breaks resolution. Not good.
So, we only "blank" the search path if there's no `--dns-search`
argument present already.
2014-11-11 15:23:06 +00:00
Michael Bridgen
34022ce2fc
Link to weaveDNS review in README
2014-11-07 15:33:30 +00:00
Michael Bridgen
97c31f0a15
Merge pull request #163 from squaremo/integrate_weavedns
...
Integrate weavedns
2014-11-04 12:00:55 +00:00
Michael Bridgen
01079737fa
Publish the weaveDNS docker image too
2014-11-04 11:54:45 +00:00
Michael Bridgen
b78255f517
Fix typos and grammaros in weavedns README
2014-11-03 19:01:19 +00:00
Michael Bridgen
27beebf5d5
Factor out the wait-for-interface code
2014-11-03 17:47:16 +00:00
Michael Bridgen
8ce6c4aba3
Rewrite weaveDNS README to account for weave integration
2014-11-03 17:34:56 +00:00
Michael Bridgen
55c8b80075
Reform rest_call
...
First, it's not ReST, so rename to http_call; second, separate the
port into its own argument and put the values in variables; third,
replace the container names with the appropriate variables.
2014-10-31 13:29:32 +00:00
Michael Bridgen
67dfc4211c
No need for this Makefile now
2014-10-30 11:38:17 +00:00
Michael Bridgen
08a0cf3442
Merge branch 'master' into integrate_weavedns
...
Conflicts:
weave
2014-10-29 16:28:54 +00:00
Michael Bridgen
7729f6d742
Realign usage message
2014-10-29 15:19:48 +00:00
Michael Bridgen
b47e819485
Don't include routing_prefix in calls from script
...
I took subnets out of the DNS code.
2014-10-29 14:52:03 +00:00
Michael Bridgen
44cac7fb40
Build weavedns bin and container in the Makefile
2014-10-29 14:20:24 +00:00
Michael Bridgen
190e708045
Merge branch 'arrange_for_merge' of ../weavedns into integrate_weavedns
...
This pulls the weavedns repo commits into the weave repo, for merging
into the main code base.
2014-10-29 12:25:20 +00:00
Michael Bridgen
a384e0bc16
Move more weavedns things out of the way
2014-10-29 12:23:18 +00:00
Michael Bridgen
747d48749d
Ignore compiled binary
2014-10-29 11:44:07 +00:00
Michael Bridgen
822ec90606
Rename weavedns package to nameserver, and fix up
2014-10-29 11:41:58 +00:00
Michael Bridgen
8469fea215
Move files around in preparation for melding into weave code
...
* library code will go in weave/nameserver/
* main.go for the server goes in weavedns/ with the containerising
2014-10-29 11:34:56 +00:00
Michael Bridgen
fdcb960cdd
Don't export sendResponse, and pay attention to its retval
2014-10-28 17:23:03 +00:00
Michael Bridgen
03f766bb95
test.Log;test.Fail -> test.Fatal, and use checkError
...
(in tests)
2014-10-28 17:15:36 +00:00
Michael Bridgen
48328dec50
Change logging config to match weave
2014-10-28 16:52:43 +00:00
Michael Bridgen
b3489f6ec1
Move the handler function closer to its use
2014-10-28 15:39:50 +00:00
Michael Bridgen
96ce10a4d5
Use compact if-with-assign statements where scoping allows
2014-10-28 15:38:53 +00:00
Michael Bridgen
126c36cffb
Extended makeDNSReply to PTR replies too
2014-10-28 14:46:29 +00:00
Michael Bridgen
5bb6c85565
Move DNS utils into their own file
2014-10-28 11:48:51 +00:00
Michael Bridgen
a5869e2090
Use constant for TTL
2014-10-28 11:10:59 +00:00
Michael Bridgen
548039db08
No need to give defaults in docstrings for options
...
The usage message will include them anyway.
2014-10-28 10:59:30 +00:00
Michael Bridgen
2cc0e8aaa6
Clarify comments
2014-10-28 10:54:37 +00:00
Michael Bridgen
765bfbb49d
Merge pull request #159 from rade/140_weave_connect
...
add `weave connect` to dynamically add peers to running router
2014-10-27 14:47:32 +00:00
Michael Bridgen
cb05e886a8
Removed duplicate check for rDNS domain
...
There's no need to check whether the queried address is a subdomain of
in-addr.arpa, since this handler is registered with the muxer under
that domain anyway.
(Also, remove a magic number)
2014-10-27 14:13:53 +00:00
Michael Bridgen
ad44a8816f
Remove subnets from API, since we don't use them
2014-10-23 16:43:41 +01:00
Michael Bridgen
840c0b9f86
Renamed variables for consistency
2014-10-23 16:23:55 +01:00
Michael Bridgen
156314a802
Complete multicast requests on first response
...
This is the simplest thing that works, is consistent with what happens
if there's a local answer, and avoids having all multicast requests
last 250ms or more.
Since we're no longer waiting *at least* the timeout period, I've
bumped the multicast response timeout up to half a second.
There was also a bug whereby the query would be entered into the
inflight map even if the socket write had failed (and the channel had
been closed).
2014-10-22 13:35:40 +01:00
Michael Bridgen
e21069f3ab
Factored out HTTP error + log
2014-10-22 11:58:55 +01:00
Michael Bridgen
1d5a55ea75
Factored out more (but different) err != nil code
2014-10-21 17:06:46 +01:00
Michael Bridgen
0615d122e9
Made zone return errors and http idempotent
...
The Zone DB tells you if you have a duplicate or missing record, but
the HTTP server smoothes these over.
2014-10-21 17:05:03 +01:00
Michael Bridgen
5c6410a3c6
Refactored indexOf*
2014-10-21 15:49:42 +01:00
Michael Bridgen
23edd79177
Changed Lock to RLock when matching
2014-10-21 14:01:07 +01:00
Michael Bridgen
6eb7d71499
Substituted checkFatal for repeated if err == nil
2014-10-21 13:58:12 +01:00
Michael Bridgen
1a593fc81f
Used an init func instead of initialisers
...
Ends up slightly neater. (Also note Error goes from os.Stdout to
os.Stderr)
2014-10-21 12:25:05 +01:00
Michael Bridgen
e8f9705211
Updated README re local domain
2014-10-20 18:39:40 +01:00
Michael Bridgen
35c09f37b9
Added logging.go, required by prior changes
2014-10-20 18:27:24 +01:00
Michael Bridgen
55d21d0ec1
Replaced another log.Printf
...
(in a file I hadn't noticed)
2014-10-20 18:22:25 +01:00
Michael Bridgen
337919d741
Replaced ad-hoc printf with log levels
2014-10-20 18:18:16 +01:00
Michael Bridgen
d3d07deec6
Changed local domain handling
...
1. The local domain is now ".weave.local", which is safer from TLD
pollution
2. If the name given for an IP isn't a subdomain of the local domain,
ignore it
2014-10-20 18:11:14 +01:00
Michael Bridgen
a3cede3027
Tidied up a few printfs
2014-10-17 15:24:51 +01:00
Michael Bridgen
9606628edd
Merge pull request #129 from squaremo/use_lxc_docker
...
Switched to lxc-docker (from docker.io)
2014-10-17 15:16:50 +01:00
Michael Bridgen
380f2eb6b9
Switched to lxc-container (from docker.io)
...
lxc-docker is the docker-maintained package, which is rather more
current than the Ubuntu one.
2014-10-17 15:14:24 +01:00
Michael Bridgen
9d1f2023b5
Documented the more egregious limitations
2014-10-17 12:29:43 +01:00