Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Last active January 6, 2023 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jniltinho/b7d004ec1916be677b9eefbe60eb4efa to your computer and use it in GitHub Desktop.
Save jniltinho/b7d004ec1916be677b9eefbe60eb4efa to your computer and use it in GitHub Desktop.
Install Drone Server
#!/bin/bash
## Install Drone Server
# https://docs.drone.io/server/provider/github/
# https://docs.drone.io/runner/exec/installation/linux/
# https://samuelsson.dev/how-to-install-and-configure-drone-ci-on-a-self-hosted-server/
# https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/
# https://www.digitalocean.com/community/tutorials/how-to-use-certbot-standalone-mode-to-retrieve-let-s-encrypt-ssl-certificates-on-ubuntu-22-04
COMPOSE=https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64
apt-get update && apt-get dist-upgrade
apt-get install -y docker.io nginx unzip curl net-tools certbot
systemctl start docker && systemctl enable docker
curl -skL -o /usr/local/bin/docker-compose ${COMPOSE} && chmod +x /usr/local/bin/docker-compose
## Create SSL, stop nginx
systemctl stop nginx
certbot certonly --standalone -d drone.linuxpro.com.br
systemctl start nginx
mkdir -p /opt/drone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment