Last active
May 7, 2020 16:39
-
-
Save pi0/55d1cfee4d201ffcd125441c8e56c841 to your computer and use it in GitHub Desktop.
ConvoySetup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage curl -#L https://git.io/convoy | sudo bash | |
CONVOY_VERSION=v0.5.0 | |
cd /tmp | |
echo "Downloading convoy ..." | |
wget -q https://github.com/rancher/convoy/releases/download/$CONVOY_VERSION/convoy.tar.gz -O convoy.tar.gz | |
echo "Installing convoy ..." | |
tar xf convoy.tar.gz | |
cp -v convoy/convoy convoy/convoy-pdata_tools /usr/local/bin/ | |
mkdir -vp /etc/docker/plugins/ | |
echo "unix:///var/run/convoy/convoy.sock" > /etc/docker/plugins/convoy.spec | |
rm -r convoy.tar.gz convoy | |
VFS_PATH=$1 | |
echo "Installing convoy service..." | |
sudo cat > /etc/systemd/system/convoy.service <<EOL | |
[Unit] | |
Description=Convoy Daemon | |
Requires=docker.service | |
[Service] | |
ExecStart=/usr/local/bin/convoy daemon --drivers vfs --driver-opts vfs.path=${VFS_PATH:/mnt} | |
[Install] | |
WantedBy=multi-user.target | |
EOL | |
systemctl daemon-reload | |
systemctl enable convoy | |
systemctl start convoy | |
echo "Convoy daemon installed & running" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment