This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
git.autonomic.zone/README.md

44 lines
964 B
Markdown
Raw Normal View History

2020-03-16 17:27:34 +00:00
# gitea
2020-03-10 09:37:46 +00:00
2020-03-16 17:27:34 +00:00
> https://gitea.io/
2020-03-22 12:01:07 +00:00
## 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`
2020-03-22 12:01:48 +00:00
1. Ensure that the .envrc `PASSWORD_STORE_DIR` env var points to the `infrastructure/credentials/password-store`
2020-03-22 12:01:07 +00:00
### Python
2020-03-22 14:20:26 +00:00
You only need to do this if you're working with Ansible vault (encrypting/decrypting new secrets).
2020-03-22 12:01:07 +00:00
```bash
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
```
## Deploy
```bash
$ git remote add dokku dokku@dokku.autonomic.zone:gitea
$ git push dokku
```