Trim README
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-03-29 11:06:05 +02:00
parent e5d9f586cc
commit c53c2cc86e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 43 deletions

View File

@ -4,47 +4,7 @@
> https://github.com/beakerbrowser/homebase
## 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 <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
```bash
$ git remote add dokku dokku@dokku.autonomic.zone:homebase
$ git push dokku
```
## Adding Dats
- Edit [ansible/vars/all.yml](./ansible/vars/all.yml) and add to the `dats` variable
- Git push and Drone will deploy the new copy of Homebase
1. Push your changes to master and Dokku will try to automatically release
1. See the [Drone dashboard to see the build](https://drone.autonomic.zone/autonomic-cooperative/homebase/)