convoy
convoy copied to clipboard
Auto Install Script
I created an easy install script for convoy. it would save a lot of time deploying and installing convoy on multi hosts...
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'
@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. :)
run 'convoy daemon' with approtiate options then run 'systemctl start convoy'
what's this line mean?
@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
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
@juglans Just added VFS_PATH param. what's your idea migrating that script from gists to this repo?
I just want to run this Unit
in my Docker swarm nodes...:)
Ok :))