Drone is a Continuous Integration (CI) and Continuous Deployment (CD) tool that helps automate software testing and deployment processes. In this tutorial, we will show how to install Drone on OpenBSD.
Before installing Drone on OpenBSD, ensure that:
Login to your OpenBSD server as root or a user with sudo privileges.
Update your system using the following command:
sudo pkg_add -u
Install the required packages using the following command:
sudo pkg_add git go py-pip sqlite
Install Docker by following the instructions in the official Docker documentation for OpenBSD: https://docs.docker.com/install/linux/docker-ce/openbsd/
Create a new system user for Drone:
sudo adduser drone
Install Drone CLI:
sudo curl -L https://github.com/drone/drone-cli/releases/latest/download/drone_openbsd_amd64.tar.gz | sudo tar zx -C /usr/local/bin
Download and extract the latest version of Drone Server:
wget https://github.com/drone/drone/archive/v1.9.0.tar.gz
tar zxvf v1.9.0.tar.gz
Change into the Drone directory:
cd drone-1.9.0/
Build the Drone server binary:
make build
Install the Drone server binary:
sudo install -t /usr/local/bin drone
/etc/drone/drone.toml
with the following content:[server]
host = "drone.example.com"
port = ":80"
proto = "http"
[database]
driver = "sqlite3"
datasource = "/var/lib/drone/drone.sqlite"
[smtp]
host = "smtp.gmail.com"
port = "587"
from = "example@gmail.com"
username = "example@gmail.com"
password = "password"
[acme]
email = "example@gmail.com"
domains = ["drone.example.com"]
Replace the host, from, username, and password values with your own.
sudo mkdir -p /etc/drone /var/lib/drone
sudo chown -R drone:drone /etc/drone /var/lib/drone
Generate a Drone token:
drone user add myusername --admin
drone user token myusername
Start the Docker daemon:
sudo systemctl start docker.service
export DRONE_SERVER_HOST="drone.example.com"
export DRONE_SERVER_PROTO="http"
export DRONE_TOKEN="mytoken"
export DRONE_AWS_BUCKET="mybucket"
export DRONE_DATABASE_DATASOURCE="/var/lib/drone/drone.sqlite"
export DRONE_AGENTS_ENABLED=true
export DRONE_RPC_SECRET=<SECRET>
drone server
Replace drone.example.com
and mytoken
with your own values.
http://drone.example.com
in a web browser.You have now successfully installed Drone on OpenBSD!
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!