epcim
1/14/2016 - 1:34 PM

drone.io update script

drone.io update script

#/bin/bash

sudo docker stop drone
sudo docker rm drone
sudo docker pull drone/drone

sudo docker run \
        --volume /var/lib/drone:/var/lib/drone \
        --volume /var/run/docker.sock:/var/run/docker.sock \
        --volume /etc/ssl/certs/wildcard.pem:/etc/ssl/certs/wildcard.pem \
        --volume /etc/ssl/private/wildcard.key:/etc/ssl/private/wildcard.key \
        --volume /etc/drone/dronerc:/etc/drone/dronerc \
        --env-file /etc/drone/dronerc \
        --restart=always \
        --publish=443:443 \
        --detach=true \
        --name=drone \
        drone/drone