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

Enable local development via podman and buildah #17

Open
3 tasks
jayaddison opened this issue Apr 10, 2020 · 3 comments
Open
3 tasks

Enable local development via podman and buildah #17

jayaddison opened this issue Apr 10, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@jayaddison
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently it's challenging and time-consuming to set up a local development environment because there is an assumption that the developer will run a CRI-O-backed Kubernetes cluster.

Describe the solution you'd like
The buildah and podman tools can run in unprivileged userspace and build containers that are compatible with CRI-O Kubernetes.

Indeed, openculinary projects already use these tools to build and push (but not run) these images.

These tools could be a good fit to allow developers to run containers locally for each of the openculinary projects.

Questions here include:

  • How would inter-service communication be organized in a local dev environment like this?
  • Would persistence be supported via volumes?
  • Is there a migration path whereby a single service could be migrated before others, in order to evaluate this approach?

Describe alternatives you've considered
docker-compose would be an alternative route to take here -- essentially, we could define a compose file to define and configure the set of services required.

This has a short-term benefit of being a relatively widely-used tool and a relatively straightforward solution. It does introduce a larger attack surface and requires a privileged install environment since a Docker daemon is required.

@jayaddison jayaddison added the enhancement New feature or request label Apr 10, 2020
@jayaddison
Copy link
Member Author

👨‍🍳 💋 https://github.com/containers/podman-compose

@jayaddison
Copy link
Member Author

Regarding persistence: investigate overlay mounts in podman (-O command-line argument) - https://github.com/containers/podman/blob/e8f48a11b6100c6d0ec21366c66a95fd7abfd154/docs/source/markdown/podman-build.1.md

@jayaddison
Copy link
Member Author

A functional syntax for bind-mounting the local directory into a running container via podman run is: --mount=type=bind,ro,src=web,dst=/web,relabel=shared

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant