Installing Drone on Void Linux

In this tutorial, we will guide you through the steps to install Drone on your Void Linux system.

Prerequisites

Step 1: Install Drone CLI

To install Drone, we need to use the Drone CLI.

  1. Open the terminal and run the following command to download the Drone CLI:
$ curl -L https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zx
  1. To install the CLI, run the following command:
$ sudo install -t /usr/local/bin drone
  1. To verify that the CLI has been installed properly, you can run the following command:
$ drone --version

Step 2: Create a Docker Network

Drone needs a Docker network to function properly.

  1. Open the terminal and run the following command to create a Docker network:
$ docker network create drone

Step 3: Install and Run Drone

  1. Open the terminal and run the following command:
$ docker run \
  --volume=/var/run/docker.sock:/var/run/docker.sock \
  --env=DRONE_AGENTS_ENABLED=true \
  --env=DRONE_GITHUB_SERVER=https://github.com \
  --env=DRONE_GITHUB_CLIENT_ID=<CLIENT_ID> \
  --env=DRONE_GITHUB_CLIENT_SECRET=<CLIENT_SECRET> \
  --env=DRONE_RPC_SECRET=<RANDOM_SECRET> \
  --env=DRONE_SERVER_HOST=<YOUR_DOMAIN> \
  --env=DRONE_SERVER_PROTO=https \
  --env=DRONE_TLS_AUTOCERT=true \
  --publish=80:80 \
  --publish=443:443 \
  --restart=always \
  --detach=true \
  --name=drone \
  --network=drone \
  drone/drone:1

Make sure to replace <CLIENT_ID>, <CLIENT_SECRET>, <RANDOM_SECRET> and <YOUR_DOMAIN> with your Github client ID, client secret, random secret and domain respectively.

  1. To verify that Drone is running properly, open your browser and visit https://<YOUR_DOMAIN>.

  2. You will be prompted to login to your Github account and authorize Drone to access your repositories.

  3. Once authorized, you will be redirected to your Drone dashboard where you can configure your projects.

Congratulations! You have successfully installed Drone on your Void Linux system. Happy CI/CD-ing!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!