-
Notifications
You must be signed in to change notification settings - Fork 366
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
Publish container images for kcp #162
Comments
Images are already published in CI to GHCR: https://github.com/kcp-dev/kcp/pkgs/container/kcp%2Fsyncer-c2e3073d5026a8f7f2c47a50c16bdbec -- with tags for short commit SHAs:
We can improve this over time (in particular the image name, which is terrible). If you try it out and give feedback about what worked/didn't that would help us improve it. |
As per #111, I tough the image is just the syncer, not kcp. |
You are totally correct, sorry for misreading. It should be easy enough to build the image, but if the intention is to run kcp inside a Kubernetes cluster, I'm not sure that's something we've really explored or prioritized yet, so things might not work very well. In particular, kcp presents a K8s control plane backed by etcd, which should run fine inside K8s with its own etcd storage, but it might end up being confusing to have both running. |
Not at all, my only goal is to be able to spin up kcp as part of my integration tests running locally on my PC or as part of GitHub Actions. As today I use kind or minikube but they are overkill for my use case where in essence I don't need any of the controller that they ship. |
Hehe, good to see you're on top of things, @lburgazzoli! I was thinking that |
so yes it is quite simple to generate a container image for I initially tough to use volumes thus having the
Even if kcp starts, then content of the volume is owned by root and it is not accessible by standard users:
This can be fixed by using podman or rootles docker but it may require some additional set-up so, is there a better way to access a |
We are now publishing a kcp image (see https://github.com/kcp-dev/kcp/pkgs/container/kcp). @lburgazzoli can your test automation use a |
@lburgazzoli let me know how it goes, would be interested to see if this works nicely in GitHub Actions… |
@ncdc @metacosm added an initial testcontainer impl that spins up a kcp server https://github.com/lburgazzoli/testcontainers-kcp |
I believe we can close this. If there are still any issues, please let us know. |
One area where kcp could also be useful is for testing controllers and operators and having a container image could simplify the test set-up as example, I'm currently working on an operator written using the java-operator-sdk where I don't need all the features and controller provided by a standard kubernetes distro but only a control plane so having kcp available as a container image would be very useful as I can leverage testcontainers to spin up a kcp instance as part of the test lifecycle.
The text was updated successfully, but these errors were encountered: