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

View file

@ -5,7 +5,7 @@
<title>askiiart.net</title>
<description>The feed for askiiart.net, I guess</description>
<link>https://askiiart.net</link>
<lastBuildDate>Wed, 11 Oct 2023 00:29:58 +0000</lastBuildDate>
<lastBuildDate>Sun, 15 Oct 2023 17:10:25 +0000</lastBuildDate>
<item>
<title>My Stack</title>
<link>https://askiiart.net/stack.html</link>
@ -14,6 +14,10 @@
<title>Using JSON with docker compose</title>
<link>https://askiiart.net/til/using-json-with-docker-compose.html</link>
</item>
<item>
<title>Akkoma in Docker</title>
<link>https://askiiart.net/til/akkoma-in-docker.html</link>
</item>
<item>
<title>askiiart's site</title>
<link>https://askiiart.net/index.html</link>

33
til/akkoma-in-docker.html Normal file
View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
<title>Akkoma in Docker</title>
<link href="/style.css" type="text/css" rel="stylesheet" />
<link href="/prism.css" rel="stylesheet" />
</head>
<body class="line-numbers">
<h1 id="akkoma-in-docker">Akkoma in Docker</h1>
<p>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.</p>
<p>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.</p>
<p>So for "from source" commands, to use them in Docker, you
just prepend <code>./docker-resources/manage.sh</code>. For
example...</p>
<div class="sourceCode" id="cb1"><pre
class="language-bash"><code class="language-bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">mix</span> pleroma.user invite</span></code></pre></div>
<p>...would instead become...</p>
<div class="sourceCode" id="cb2"><pre
class="language-bash"><code class="language-bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./docker-resources/manage.sh</span> mix pleroma.user invite</span></code></pre></div>
<script src="/prism.js"></script>
</body>
<footer>
<p><a href="https://git.askiiart.net/askiiart/askiiart-net">code</a> (<a href="https://github.com/askiiart/askiiart.github.io">mirror</a>)&emsp;<a href="/feed.xml">rss</a>&emsp;<a href="/pubkey.asc">pubkey</a></p>
</footer>
</html>

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.