rancher / convoy

A Docker volume plugin, managing persistent container volumes.
Apache License 2.0
1.31k stars 135 forks source link

Auto Install Script #143

Open pi0 opened 8 years ago

pi0 commented 8 years ago

I created an easy install script for convoy. it would save a lot of time deploying and installing convoy on multi hosts...

Source Code

Usage:

curl -#L https://git.io/convoy | sudo bash

Example output:

root@Ni8CAC2:/|>  curl -#L https://git.io/convoy | sudo bash
######################################################################## 100.0%
Downloading convoy ...
Installing convoy ...
'convoy/convoy' -> '/usr/local/bin/convoy'
'convoy/convoy-pdata_tools' -> '/usr/local/bin/convoy-pdata_tools'
mkdir: created directory '/etc/docker/plugins/'
Installing convoy service...
Created symlink from /etc/systemd/system/multi-user.target.wants/convoy.service to /etc/systemd/system/convoy.service.
Convoy is installed!
run 'convoy daemon' with approtiate options then run 'systemctl start convoy'
yasker commented 8 years ago

@pi0

Thanks for the script!

Though it's hard to included it in the official convoy doc, because it's very hard to be a good universal solution.

For example, it's assuming everyone is using systemd, which can be broken for quite some people.

We're working towards a docker container approach which we think is more universal applicable. I can redirect people to here if they're asking for auto start script though. :)

juglans commented 7 years ago

run 'convoy daemon' with approtiate options then run 'systemctl start convoy'

what's this line mean?

pi0 commented 7 years ago

@juglans To be honest this was for months ago so i forgot things 😂 But it appears that some initial configuration was needed or if i am wrong just tell me to remove that line and simply starting daemon

juglans commented 7 years ago

add something to end of ExecStart=/usr/local/bin/convoy daemon? maybe like this,

...
[Service]
ExecStart=/usr/local/bin/convoy daemon --drivers vfs --driver-opts vfs.path=/mnt
...

3q also

pi0 commented 7 years ago

@juglans Just added VFS_PATH param. what's your idea migrating that script from gists to this repo?

juglans commented 7 years ago

I just want to run this Unit in my Docker swarm nodes...:)

pi0 commented 7 years ago

Ok :))