|
@@ -9,4 +9,19 @@ RUN apk add --no-cache ttf-dejavu
|
|
|
CMD ["anki"]
|
|
|
|
|
|
# uid & gid in `--user` arbitrary.
|
|
|
-LABEL podman-run-x11="podman run --name anki --rm --user 25772:34044 --env HOME=/mnt/home --env DISPLAY --env QTWEBENGINE_DISABLE_SANDBOX=1 --read-only --read-only-tmpfs=false --volume anki_share:/mnt/home/.local/share/Anki2/ --tmpfs /tmp:size=1M --volume /tmp/.X11-unix/:/tmp/.X11-unix/ --cap-drop ALL --security-opt no-new-privileges \${IMAGE}"
|
|
|
+# tmpfs size for:
|
|
|
+# > 2024-10-08 22:29:24,351:ERROR:waitress: Exception while serving
|
|
|
+# > /_anki/js/vendor/mathjax/tex-chtml-full.js
|
|
|
+# > Traceback (most recent call last):
|
|
|
+# > File "…/site-packages/waitress/channel.py", line 428, in service
|
|
|
+# > task.service()
|
|
|
+# > …
|
|
|
+# > File "…/site-packages/waitress/buffers.py", line 253, in _set_large_buffer
|
|
|
+# > self.buf = TempfileBasedBuffer(oldbuf)
|
|
|
+# > ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
+# > File "…/site-packages/waitress/buffers.py", line 112, in __init__
|
|
|
+# > FileBasedBuffer.__init__(self, self.newfile(), from_buffer)
|
|
|
+# > File "…/site-packages/waitress/buffers.py", line 38, in __init__
|
|
|
+# > file.write(data)
|
|
|
+# > OSError: [Errno 28] No space left on device
|
|
|
+LABEL podman-run-x11="podman run --name anki --rm --user 25772:34044 --env HOME=/mnt/home --env DISPLAY --env QTWEBENGINE_DISABLE_SANDBOX=1 --read-only --read-only-tmpfs=false --volume anki_share:/mnt/home/.local/share/Anki2/ --tmpfs /tmp:size=2M --volume /tmp/.X11-unix/:/tmp/.X11-unix/ --cap-drop ALL --security-opt no-new-privileges \${IMAGE}"
|