A painless self-hosted Git service https://git.autonomic.zone
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.
Go to file
Luke Murphy 86814f4ddc
Don't proxy, it's handled elsewhere
2020-03-25 01:28:25 +01:00
ansible Don't proxy, it's handled elsewhere 2020-03-25 01:28:25 +01:00
sbin Fix SSH ports 2020-03-23 16:28:11 +01:00
.envrc.sample Add env example 2020-03-21 01:00:58 +01:00
.gitignore Add vault lookup script 2020-03-22 12:50:51 +01:00
CHECKS Get faster checks 2020-03-12 16:34:19 +01:00
Dockerfile Open up SSH ports 2020-03-23 15:14:51 +01:00
README.md More hints on update 2020-03-22 18:00:03 +01:00
app.json Update URL 2020-03-24 11:45:13 +01:00
requirements.txt Add requirements file 2020-03-21 00:59:35 +01:00

README.md

gitea

https://gitea.io/

Setup

Pre-requisites

  1. You have SSH access to dokku.autonomic.zone
  2. 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
  2. Copy the sample file: cp .envrc.sample .envrc
  3. 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).

$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt

Deploy

$ 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