Docker installation missing offline support #3571
Replies: 7 comments 1 reply
-
Update: Today I learned about docker's volume-binding |
Beta Was this translation helpful? Give feedback.
-
@MrPointer I managed to get rid of "EACCESS: permission denied" error when mounting sideload folder by forcing root user within wiki container ("user: root" option in docker-compose file or --user=root for docker run). To get rid of placeholder text and errors, you have to reapply site locale in locale settings |
Beta Was this translation helpful? Give feedback.
-
@defteame It's good to read that you've managed to overcome this issue, yet I keep asking myself - Isn't it not-recommended to run the container as root? especially in prod environments. |
Beta Was this translation helpful? Give feedback.
-
@MrPointer The user inside the container runs as root. You're not giving root access for the whole system. These are 2 different things. |
Beta Was this translation helpful? Give feedback.
-
@NGPixel Edit: After doing some additional reading I've come across this blog post which clearly states why it's not such a good idea to run containers as root after all, somewhat aligned with my previous comment. |
Beta Was this translation helpful? Give feedback.
-
My installation (on Docker Swarm) does not recognize the locale files at all. I've downloaded the locale files from https://github.com/Requarks/wiki-localization and put them in the
And here is the content of
The locale configuration seems to have been loaded because I saw When I visit /a/locale, I can see all the locales are there, but the availabilities are all 0%. |
Beta Was this translation helpful? Give feedback.
-
@MrPointer, @NGPixel, @defteame and @Aetherus, I think that this problem is resolved right now (using version Here is the
And here is the
I think the offline mode support can be built more into the container. However these ideas can be issued separately and I think this issue can be closed. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
It seems that the docker images of the beta version (latest and previous) don't quite support offline mode as the standard installation does. The heart of the problem lies at the sideloading feature, which is key to supporting a fully offline solution.
The sideloading wiki-page only specifies instructions for standard installations, but it's inferrable that a similar process holds for docker installations, using paths relative to the image.
So I went on to try it by binding volumes between a local
data/sideload
directory, containing the required locale files, and/wiki/data/sideload
, which I assume is the required path in the image.However, the container constantly gets stuck in a "boot-loop" with the following error message:
I've attempted several other approaches, all without success:
docker
groupnode
), which is part of thedocker
group/wiki/data
folder locally, then mounting the entiredata
directory or just thedata/sideload
directoryAt last, I tried to mount the files explicitly to the
/wiki/
directory, then attach to the container's terminal (usingdocker exec -it wiki bash
), create thedata/sideload
directory and manually copy the files there.While it didn't crash with the error previously mentioned, the logs showed that the server has successfully read the locales yet it didn't display it in the browser - All names were field names taken (probably) from code, which seems to be another issue.
Host Info:
Additional context
It's also worth mentioning that I did set the
offline
option in the configuration file totrue
.Beta Was this translation helpful? Give feedback.
All reactions