-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add docker based welcome.openstreetmap.org #566
Conversation
fb591ef
to
6305dc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I am concerned this should not deployed until we at least pretend to isolate the container from the host properly.
I'm happy to work up a way to do it properly with podman and other than that I suggest forgetting containerisation and just deploying the site on the host.
By default containers are isolated from the host unless running in the non-default privileged mode. I have now moved the |
Is community running in privileged mode then? Because it definitely does not have proper user isolation... |
No, the community service runs in docker's concept of underprivileged, but the container does launch as a containerised "root" user (which isn't ideal) and then within the container SETUIDs to other underprivileged users per discourse's own design. I'd prefer to deal with any discourse docker issues separately to this issue. The https://github.com/discourse/discourse_docker setup is indeed not sane in my view. I am watching this alternative build closely and waiting for v3.0.x https://bitnami.com/stack/discourse/containers The discourse run command is crazy: |
I'm not trying to resolve the discourse issues here but I am trying to make sure that this PR doesn't introduce the same problems for welcome-mat and I just checked and it does... I ran up the test in kitchen then logged in to the test container, which is the host as far as welcome-mat is concerned, and ran pstree on the welcome-mat entry point process:
So all the nginx processes in the container are running as the host's |
By comparison here's what happened when I did
The nginx processes are safely isolated as a new user. In a real production deployment I would use a service unit with |
Signed-off-by: Grant Slater <[email protected]>
Now amended to use Using full |
Does Presumably you also changed the container to use 33 because it was using 101 or something I think? It's horribly fragile though as you're assuming the meaning of 33 on both sides. I haven't quite finished it but I spent much of last night working on doing this better. Hopefully have something later. |
Yes The upstream |
5f3c34d
to
337dce0
Compare
Adds welcome.openstreetmap.org using a docker container service for the underlying website.
Apache is used to proxy requests to the container, but this could change in future.
The docker container service currently exposes a static external port (8090) to which apache proxies requests.