-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker setup fails with Git Error #42
Comments
Hi @belibug , |
I hope you'll be able to upload a working docker image soon. Wikmd seems to be exactly what I've been looking for - simple clean interface, no nonsense, not trying to be a lot of other things. |
Hi @Waldorf3, I tried looking for the problem, but I can't seem to find how to get the user permission to work. It seems like the docker/root/etc/cont-init.d/30-config file does not work. I fixed it for now using the following method:
let me know if that worked ;) @artivis Sorry for the inconvenience, your Dockerfiles worked like a charm. But do you know how to fix the permission issue here, I can't seem to find the problem? |
Hey, no problem. A quick search seem to point to a recent change in git. It has affected a lot of other projects. I'm not at my computer so I can't debug that right now but the permissions are set here for new repo created from the example. I'll give it a look on Monday 👍. |
Alright, I'll look into it. Thanks for the quick response, appreciate it! |
/wiki already is www-data.www-data (my preferred uid-gid) edit ... that kinda works, but then all the examples disappear... |
My excuses, I meant 'app/wikmd'. How does your docker-compose look like? I also tried to chown the mount folder on my host machine with the hosts user (even if it already was the same) and that also made it work. If you don't specify a volume the files won't be stored in 'wiki'. |
My docker-compose.yml is pretty much straight from the github:
btw, would it not make sense to have a config folder on the host for whatever users might customize (template etc) |
Could you try:
Make sure to specify the WIKI_DIRECTORY. Also try to chown EDIT: The customization in docker is done using the env variables. So currently there is no support for a config on the host. |
Yes that worked, thanks! The documentation files are no longer present though, the files under /app/wikmd/wiki in the container, also not when hitting list as before, is that on purpose? I get your point about config through env variables, makes good sense, sorry I didn't think about that. |
Hi good to hear that, also make sure to create a img file in the wiki folder when you want to upload images through the webinterface. The demo files are indeed not present, thats a problem I'll fix in the future. But for know everything should work. |
I copied the content from /app/wikmd/wiki to /wiki, that seems to take are of it? |
I couldn't reproduce the error described here (did find a couple other tho). |
@artivis this is how you can reproduce the error.
As you can see I mapped local immediate path 'wiki' to 'wiki' and I get below error.
I have tried mapping volume as
Thank you. |
Hi @belibug,
git clone https://github.com/Linbreux/wikmd.git
cd wikmd
docker build -t linbreux/wikmd:fix -f docker/Dockerfile .
Make sure that the permissions are correctly set, e.g. with, $ id myuser
uid=1001(myuser) gid=1002(myuser) groups=1001(myuser) then you should set |
@artivis I tried building from docker file, It worked for most part but failed to rename branch which is same as issue #44 which I see you opened.
|
Running wikmd as docker container with following error.
Troubleshooting done,
The text was updated successfully, but these errors were encountered: