Add Akkoma in Docker TIL

This commit is contained in:
askiiart 2023-10-15 12:11:18 -05:00
parent e7de1545e8
commit 67f54b7c02
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
3 changed files with 57 additions and 1 deletions

19
til/akkoma-in-docker.md Normal file
View file

@ -0,0 +1,19 @@
# Akkoma in Docker
Okay, so first of all, it doesn't work when running inside the container as root. You can run the Docker daemon as root, but if you're the root you'll have to change it up a bit to use some other UID/GID, not 0 and 0.
Besides that, Akkoma's documentation isn't quite complete. Some commands are missing a Docker version in the docs. But running it in Docker is the same as running it from source, it's just, well, in Docker.
So for "from source" commands, to use them in Docker, you just prepend `./docker-resources/manage.sh`. For example...
```bash
mix pleroma.user invite
```
...would instead become...
```bash
./docker-resources/manage.sh mix pleroma.user invite
```
Other than those minor issues, you can just follow the docs.