Installing Drone on Linux Mint Latest

Drone is a Continuous Integration (CI) tool that automates the building, testing and deployment of software applications. In this tutorial, you will learn how to install drone on Linux Mint latest.

Prerequisites

Before installing drone, ensure that the following prerequisites are met:

Step 1 – Install Docker

If you do not have Docker already installed, you can install it using the command below:

sudo apt-get update
sudo apt-get install docker.io

You can verify that Docker is installed and running by running the command below:

sudo docker run hello-world

Step 2 – Install Drone Server

After installing Docker, you can now install drone server using the following command:

sudo docker run \
  --volume=/var/lib/drone:/data \
  --env=DRONE_GITHUB_CLIENT_ID={{your-github-client-id}} \
  --env=DRONE_GITHUB_CLIENT_SECRET={{your-github-client-secret}} \
  --env=DRONE_SERVER_HOST={{your-server-hostname}} \
  --env=DRONE_SERVER_PROTO={{http-or-https}} \
  --restart=always \
  --detach=true \
  --publish=80:80 \
  --publish=443:443 \
  --name=drone \
  drone/drone:2

In the above command, replace the following variables with your own values:

Note: You can get your GitHub client ID and secret by creating a new OAuth application in your GitHub account.

Step 3 – Install Drone Runner

After installing the drone server, you can now install the drone runner using the following command:

sudo docker run -d \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e DRONE_RPC_PROTO=https \
    -e DRONE_RPC_HOST={{your-server-hostname}} \
    -e DRONE_RPC_SECRET={{your-rpc-secret}} \
    -e DRONE_RUNNER_CAPACITY=2 \
    -e DRONE_RUNNER_NAME={{your-runner-name}} \
    --restart always \
    --name drone-runner \
    drone/drone-runner-docker:1

In the above command, replace the following variables with your own values:

Step 4 – Accessing Drone

To access the drone server, simply open your web browser and navigate to the following URL:

https://{{your-server-hostname}}

Replace {{your-server-hostname}} with the hostname or IP address of your server.

You can now log in to drone using your GitHub account credentials and start setting up your first project and CI pipeline.

Congratulations! You have successfully installed drone on your Linux Mint latest operating system.

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!