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

Add docker based welcome.openstreetmap.org using podman #570

Merged
merged 3 commits into from
Feb 11, 2023

Conversation

tomhughes
Copy link
Member

This is an alternative to #566 that adds support for running container services using podman along with modified versions of @Firefishy's work to run welcome.openstreetmap.org as a container.

Unfortunately containers/podman#12778 means it's not currently possible to use DynamicUser to run each container as a separate user so instead it edits /etc/subuid and /etc/subgid to reserve a block of user IDs for containers and then uses --userns=auto to allocate each container a group of IDs from that block.

It also switches networking to use slirp4netns mode (which would be the default if we were running as a non-root user) which is probably a bit less efficient but avoids needing to add firewall rules which then cause issues with shorewall.

@Firefishy
Copy link
Member

I looked into slirp4netns earlier. The performance is quite good, especially if you match the MTU to the upstream interface (1500). We can always optimise later.

@Firefishy Firefishy self-requested a review February 11, 2023 14:26
@tomhughes tomhughes merged commit eb10ee1 into openstreetmap:master Feb 11, 2023
@tomhughes tomhughes deleted the podman branch February 13, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants