Skip to content
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

Info: docker-gutenberg #53

Open
Apfelwurm opened this issue Aug 25, 2022 · 2 comments
Open

Info: docker-gutenberg #53

Apfelwurm opened this issue Aug 25, 2022 · 2 comments

Comments

@Apfelwurm
Copy link

Hey all,
i just wanted to let you know that since i had a really hard time to get gutenberg running in my environment, i've worked on a Docker image (and a corresponding docker-compose file) of gutenberg in the last weeks.
It is working so far, but there are some things that have to be done to finalize it or better to make it perfect. (see todo section in the readme)

https://github.com/Apfelwurm/docker-gutenberg

The most "critical" thing is, i had to remove the sandboxing because i was not able to get bwrap to work fine on a debian docker host inside the container. But maybe this can be fixed in the future, as well as the other things listed there (like cups-browsed).

If you are interested, we could connect in the future to build an "official" docker image housed here, so new users have a better onboarding process :)

@apardyl
Copy link
Member

apardyl commented Aug 25, 2022

Hey,

Interesting idea! We don't use Docker at @KSIUJ (we use LXD containers instead), but I agree, that a Docker image would greatly help others to use this project. We would gladly accept a pull request and help developing it!

About the problem with bwrap - it might be caused by AppArmor or SELinux preventing mounting filesystems inside containers
we had that problem with LXD. Could you try running Docker with --security-opt apparmor=unconfined? (or similar setting, it solved the issue for LXD). The job sandboxing with bwrap is desired as gutenberg runs quite a lot of external tools, including libreoffice, that theoretically could execute malicious code from converted files.

@m4tx
Copy link
Member

m4tx commented Aug 25, 2022

That's excellent; thanks for quite a bit of work on that! It's really cool to see someone using Gutenberg and contributing back.

A question purely out of curiosity: what is the benefit of having CUPS server running inside Docker? I believe you still need CUPS on the host system for it to work correctly; am I missing anything here?

As @apardyl said, it would be cool to see Gutenberg as a Docker image that can be brought up to run in a few terminal commands. We'd definitely appreciate making a PR out of the work you've done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants