Drone is a self-hosted continuous integration and deployment tool that helps automate building, testing, and deploying software. In this tutorial, we will walk you through the steps to install Drone on Kali Linux Latest.
Before we start, make sure you have the following prerequisites:
To install Docker on your system, run the following commands:
sudo apt-get update
sudo apt-get install docker.io
Verify the installation by running the following command:
sudo docker --version
To install Docker Compose on your system, run the following commands:
sudo curl -L "https://github.com/docker/compose/releases/download/[VERSION]/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Replace [VERSION] with the latest version of Docker Compose.
Verify the installation by running the following command:
sudo docker-compose --version
To install Drone on your system, follow these steps:
docker-compose.yml
and add the following code:version: '3'
services:
drone-server:
image: drone/drone:1
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./drone:/data
- ./certs:/etc/drone/certs
restart: always
environment:
- DRONE_HTTP_PROTO=https
- DRONE_HTTP_HOST=[YOUR_DOMAIN_NAME]
- DRONE_RPC_SECRET=[RPC_SECRET_VALUE]
depends_on:
- drone-agent
drone-agent:
image: drone/drone-runner-docker:1
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- DRONE_RPC_PROTO=https
- DRONE_RPC_HOST=[YOUR_DOMAIN_NAME]
- DRONE_RPC_SECRET=[RPC_SECRET_VALUE]
- DRONE_RUNNER_CAPACITY=2
Replace [YOUR_DOMAIN_NAME] with your domain name and [RPC_SECRET_VALUE] with a secret value that will be used to authenticate the Drone server and agent.
drone
and certs
in the same directory where your Docker Compose file is located.mkdir drone
mkdir certs
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./certs/drone.key -out ./certs/drone.crt
sudo openssl dhparam -out ./certs/dhparam.pem 2048
sudo docker-compose up -d
Once the Drone server and agent are started successfully, you can access the Drone Web UI by opening your web browser and navigating to your domain name. For example, if your domain name is drone.example.com
, you would navigate to https://drone.example.com
.
You should see the Drone login page where you can sign up or log in to your Drone account.
In this tutorial, we walked you through the steps to install Drone on Kali Linux Latest. You can now use Drone to automate building, testing, and deploying software. Happy coding!
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!
Alternatively, for the best virtual desktop, try Shells!