From e861a6cc7a56c10f4998695530f6d9726dd745e3 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 29 Mar 2020 09:42:57 +0200 Subject: [PATCH] Chop down README --- README.md | 41 ++--------------------------------------- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index c6c2523..8f9f6ff 100644 --- a/README.md +++ b/README.md @@ -2,48 +2,11 @@ > https://gitea.io/ -## Setup +# Deploy -### 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 - Port 222 - IdentityFile ~/.ssh/ -``` - -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 +See [the prerequisites documentation](https://git.autonomic.zone/autonomic-cooperative/organising/wiki/hacking-on-dokku-apps) first for setting up SSH access. ```bash $ git remote add dokku dokku@dokku.autonomic.zone:gitea $ git push dokku ``` - -## Updating Configurations - -- `sbin/entrypoint.sh`: app.ini changes -- `ansible/pre-deploy.yml`: environment and secrets changes -- `Dockerfile`: container image packages and configuration