convoy icon indicating copy to clipboard operation
convoy copied to clipboard

Auto Install Script

Open pi0 opened this issue 7 years ago • 7 comments

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'

pi0 avatar Jul 19 '16 21:07 pi0

@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. :)

yasker avatar Aug 30 '16 22:08 yasker

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

what's this line mean?

juglans avatar Jan 10 '17 13:01 juglans

@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

pi0 avatar Jan 10 '17 13:01 pi0

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 avatar Jan 10 '17 13:01 juglans

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

pi0 avatar Jan 10 '17 13:01 pi0

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

juglans avatar Jan 10 '17 13:01 juglans

Ok :))

pi0 avatar Jan 10 '17 14:01 pi0