wescale / drone-base

Set the base infrastructure to work with Drone.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drone-base

Set the base of the infrastructure to work with Drone.io

Requirements

  • bash v4+
  • Docker v19.03.2+
  • aws cli v1.16.169+, with an aws access configurer
  • A ssh key created for the project

Deployment

Setup base

For Ansible deployments, you have to rename all.template.yml to all.yml and add your own values

Create and launch the workstation (docker container)

./workstation/launch.sh

Go into workdir

cd workdir/

Deploy the layers

./infra-builder-terraform.sh --account <account_name> [--plan]

# or you can select a particular layer
./infra-builder-terraform.sh --account <account_name> --category <category_name> --layer <layer_name> [--plan]

Generate inventory

./infra-make-inventory.sh

Provision the infrastructure

./infra-provisioning-base.sh

Connect to the drone cli

You should set the environment variables like this :

export DRONE_SERVER=https://drone.xxx.example.com
export DRONE_TOKEN=xxx
drone info

Setup monitoring

Create a prometheus user with drone API like this and retrieve the token :

drone user add prometheus --machine
 ./infra-provisioning-monitoring.sh <token>

About

Set the base infrastructure to work with Drone.io

License:GNU General Public License v3.0


Languages

Language:HCL 62.9%Language:Shell 26.0%Language:Smarty 8.3%Language:Dockerfile 2.8%