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
Matthias Radestock
cca0f5fc79
don't allow lightweight tags after all
2014-12-29 14:27:21 +00:00
Matthias Radestock
f9593ac571
ignore release dir
2014-12-29 13:51:45 +00:00
Matthias Radestock
50d94529bf
accept lightweight tags
2014-12-29 13:49:46 +00:00
Matthias Radestock
d31a4ea331
more idiomatic go build time variable setting
...
avoiding the use of 'sed'
2014-12-29 13:27:35 +00:00
Matthias Radestock
7c8586b576
nicer error when there is no version tag
2014-12-29 12:27:42 +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
Matthias Radestock
3e1d96995a
cosmetic
2014-12-29 12:01:29 +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
Matthias Radestock
99c1163862
fmt
2014-12-24 10:54:38 +00:00
Matthias Radestock
5ccc753367
kill stale connections
...
The weave protocol already effectively performs heartbeating -
FetchAll is performed at regular intervals. Hence we can detect stale
connections by the lack of receiving any data for approximately that
interval (we use x2).
We use the same interval to set a time limit on the handshake too, and
any subsequent interactions prior to the connection being fully
established.
Fixes #272 .
2014-12-24 10:33:37 +00:00
Matthias Radestock
3c50909a49
nodelay is the default, according to the docs
2014-12-24 09:09:00 +00:00
Matthias Radestock
ad67dc5d07
don't swallow error
...
Since sometimes the error is different from what we expect.
2014-12-23 19:50:08 +00:00
Matthias Radestock
34db7044e4
cosmetic
2014-12-23 17:49:16 +00:00
rade
e5699fcfcb
Merge pull request #292 from errordeveloper/fix_282
...
Simplify docker version sed expression
Fixes #282 .
2014-12-23 17:00:10 +00:00
Ilya Dmitrichenko
c61ed4010a
Simplify docker version sed expression ( close #282 )
2014-12-23 16:24:10 +00:00
Matthias Radestock
d0846961e3
cosmetic(ish): consistently use $(...) instead of ...
2014-12-23 14:52:15 +00:00
rade
ccabdc421a
Merge pull request #290 from bboreham/master
...
Quote $@ everywhere, to guard against spaces, globbing, etc.
2014-12-23 14:50:28 +00:00
Bryan Boreham
5bb80c7126
Quote $@ everywhere, to guard against spaces, globbing, etc.
2014-12-23 14:42:48 +00:00
Matthias Radestock
15a5e38e8b
cosmetic
2014-12-23 12:59:54 +00:00
Matthias Radestock
af3d2c7e7f
cosmetic: break overlong lines
2014-12-23 12:27:13 +00:00
Matthias Radestock
d54cc53864
install docker-ns in test VMs
...
handy for debugging
2014-12-23 12:14:33 +00:00
Ilya Dmitrichenko
73a8f32532
Merge pull request #288 from viirya/if_param
...
Assign iface parameter from defined variable
2014-12-23 12:10:53 +00:00
Liang-Chi Hsieh
f5afe3b203
Merge remote-tracking branch 'upstream/master' into if_param
...
Conflicts:
weave
weaver/Dockerfile
2014-12-22 20:58:20 +08:00
Bryan Boreham
affb9aef42
Merge pull request #283 from rade/275_do_not_log_password
...
Closes #275
2014-12-22 11:31:16 +00:00
Matthias Radestock
7ccb9e36d9
update Dockerfile MAINTAINER
...
and also use what appears to be (based on some sampling of the docker
registry) the correct convention for specifying the email address.
Also ditch superfluous CMD instruction in weaver.
2014-12-22 11:11:00 +00:00
Bryan Boreham
887f2adbc1
Merge pull request #284 from rade/276_alternative_password_supply
...
LGTM. Closes #276
2014-12-22 11:03:28 +00:00
Liang-Chi Hsieh
1dc28e9025
Assign iface parameter from defined variable.
2014-12-22 15:59:29 +08:00
David Wragg
08a445cb6d
Merge PR #281 : gracefully deal with missing/old ip utility
...
Addresses #279
2014-12-21 15:36:59 +00:00
Matthias Radestock
b48a66ecca
add conntrack to vagrant test VMs
...
Fixes #287 .
2014-12-21 15:22:00 +00:00
Matthias Radestock
aa68b6d05e
cosmetic
2014-12-21 15:16:21 +00:00
Matthias Radestock
41cb8a1215
ditch check_command_and_run wrapper
...
Since we end up swallowing the warning when wanting to redirect stderr
of the command execution.
Fixes #286 .
2014-12-21 15:07:21 +00:00
Matthias Radestock
66e55ee421
keep stdout and stderr separate in with_container_netns
...
so we don't end up swallowing warnings when redirecting stdout
Fixes #285 .
2014-12-21 14:29:54 +00:00
Matthias Radestock
7c513fc22b
don't duplicate output on error in with_container_netns
...
This does not cause any problems right now, since all the call sites
swallow stdout on error. But it is wrong nevertheless.
2014-12-21 13:51:59 +00:00
Matthias Radestock
fc3630da41
ignore .vagrant dir
2014-12-20 01:40:30 +00:00
Matthias Radestock
e2ec460752
feed password to weave via env var, possibly via a file
...
The latter is the most secure route since it keeps the password
completely out of any command lines, and the permissions on the file
can be very restrictive, e.g. 0400.
It would be somewhat nicer if the password file contained just
<password>
rather than
WEAVE_PASSWORD=<password>
but then we'd have to transit the password via a temporary file with
0600 permissions.
2014-12-20 01:22:59 +00:00
Matthias Radestock
2386e75cc1
Merge branch 'master' into 276_alternative_password_supply
2014-12-20 00:21:35 +00:00
Matthias Radestock
dbf09096b3
link to crypto docs from security feature
2014-12-20 00:15:11 +00:00