Closed awh closed 8 years ago
Things the script should do:
Since the weave router is a prerequisite to using the plugin, it makes sense IMO to extend the weave script to do these things - not only will it be the quickest to implement, but it will lead to the nicest user experience too.
The build & upload of the executable (in whatever form) can remain manual for now - suggest we merge the docker-plugin
repo into weave
to take advantage of bin/release
when we need to automate.
weave setup
weave launch-plugin
Assuming users already have their system configured to start Docker + weave somehow, we could avoid further complicating their start ordering/restart policy issues by distributing a separate uncontained executable that is launched before Docker via their init system (the plugin only needs to access the router once Docker is up and responding to requests)
sudo weave setup-plugin
that grabs and installs the executable and systemd unit file(BTW, if we chose this option it does beg the question of whether we should continue to distribute the router and proxy as containers - not doing so would solve all the restart policy issues!)
Design and implement packaging and distribution for GA releases of the plugin.