Wire up docker build and trim README
This commit is contained in:
parent
1f4b930c12
commit
bdcedb45ba
13
.drone.yml
Normal file
13
.drone.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Build Drone docker image
|
||||||
|
image: docker:stable
|
||||||
|
volumes:
|
||||||
|
- name: docker_sock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- docker build --no-cache -t autonomic/drone:drone .
|
37
README.md
37
README.md
@ -2,41 +2,12 @@
|
|||||||
|
|
||||||
> https://drone.io/
|
> https://drone.io/
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
### Pre-requisites
|
|
||||||
|
|
||||||
1. You have SSH access to dokku.autonomic.zone
|
|
||||||
1. You have sudo privilege escalation working
|
|
||||||
|
|
||||||
```
|
|
||||||
Host dokku.autonomic.zone
|
|
||||||
Hostname dokku.autonomic.zone
|
|
||||||
User <your-username>
|
|
||||||
Port 222
|
|
||||||
IdentityFile ~/.ssh/<your-ssh-key-private-file>
|
|
||||||
```
|
|
||||||
|
|
||||||
See the password-store under `autonomic-dokku` for your sudo password.
|
|
||||||
|
|
||||||
### Environment
|
|
||||||
|
|
||||||
1. Clone the [infrastructure repository](https://gitlab.com/autonomic-cooperative/infrastructure)
|
|
||||||
1. Copy the sample file: `cp .envrc.sample .envrc`
|
|
||||||
1. Ensure that the .envrc `PASSWORD_STORE_DIR` env var points to the `infrastructure/credentials/password-store`
|
|
||||||
|
|
||||||
### Python
|
|
||||||
|
|
||||||
You only need to do this if you're working with Ansible vault (encrypting/decrypting new secrets).
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ python3 -m venv .venv
|
|
||||||
$ source .venv/bin/activate
|
|
||||||
$ pip install -r requirements.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
## Deploy
|
## Deploy
|
||||||
|
|
||||||
|
We deploy Drone by hand because it cannot replace itself during the deployment process.
|
||||||
|
|
||||||
|
See the [wiki](https://git.autonomic.zone/autonomic-cooperative/organising/wiki/hacking-on-dokku-apps) for documentation about setting up your SSH connection.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git remote add dokku dokku@dokku.autonomic.zone:drone
|
$ git remote add dokku dokku@dokku.autonomic.zone:drone
|
||||||
$ git push dokku
|
$ git push dokku
|
||||||
|
Reference in New Issue
Block a user