bludit / docker

Dockerfile and Kubernetes Deployment
21 stars 16 forks source link

Access rights issues and themes #7

Open Exiknox opened 5 years ago

Exiknox commented 5 years ago

Hello,

Before I detail my problems, I would like to thank you for the work you have done!

I currently have two problems.

The first concerns access rights to the volume. When I create a container with a volume and then try to connect to the website, I face an error that tells me: Writing test failure, check directory "bl-content" permissions.

I think this error is due to the fact that nginx is not installed on my machine and therefore the user and group used by your dockerfile do not exist.

The second problem concerns the themes. I noticed that it was not possible to create a volume containing the themes. It's a feature that interests me and I think you just have to do the same steps on bl-themes as on bl-content so that you can access it from a volume.

I hope to hear from you soon because I really want to deploy my blog using this great tool!

Thank you in advance.

My docker-compose file:

version: '3.3'

services:
   myblog:
     image: bludit/docker:latest
     volumes:
       - ./content:/usr/share/nginx/html/bl-content
     restart: always
     ports: 
       - 8080:80
chan-vince commented 4 years ago

The issue here is indeed the folder permissions of bl-content. Bludit needs to have write permissions on the bl-content folder as that's where it stores new posts. You can open up permissions with chmod 777 ./content on your host machine.

puschmie commented 3 years ago

not sure if this is still relevant to you, but might be useful to future googlers to: you can simply mount bl-themes and bl-plugins the same way you did with content. just add a directory on your host for each and add a line in the volumes section of the docker-compose.yml file, analogos to the one for bl-content.