-
Notifications
You must be signed in to change notification settings - Fork 115
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 CI to automate building and pushing estargz-kind-node
and pre-converted estargz images
#715
Comments
cc @AkihiroSuda |
I'm interested in having more pre-converted images and allow users to add more, by making a pull request, if they need it. I believe this will help adoption a lot at a time when Docker is making the stargz snapshotter the default in their Docker desktop with containerd beta. I've read through what the CI does right now and it seems it's a python script executed on a remote VM that does the job of converting, pushing and benchmarkinh the images if I'm not mistaken. If I do a python3 script running in github action calling ctr-remote and nerdctl to convert and push a list of docker images et every commit on master, would that work for you? You would likely need to add the gcr.io credentials in github secrets too. Also I'm not sure if I understand this part, does it need to be in this repository or another? |
I made a repository that does the conversion and push: https://github.com/gabrieldemarmiesse/estargz-images It does not include the estargz-kind-node image. If that works for you we can move it to the stargz-containers org. |
@gabrieldemarmiesse Thank you for your interest. Yes, I agree that we should have a CI in
SGTM. The CI should based on Same as the current |
Thank you, I believe it's clearer now. I'll continue my work on my custom repo and ping you when the conversion and push is implemented (for the moment, I only support entrypoint, -org and -esgz). I'll then move the benchmark in a second time Update: I'm nearly done, I had to skip some images because they were too old and used an unsupported media type. See https://github.com/gabrieldemarmiesse/estargz-images/blob/master/list_of_images_to_optimize.py |
@ktock could I have feedback on https://github.com/gabrieldemarmiesse/estargz-images ? I did all the code to convert and push images automatically if they don't exist in the registry yet, I've added all the images of the benchmark. The only pain point so far is some kind of flakyness I have a hard time to debug. When checking if the manifest exists in ghcr.io with crane (that happened with dockerhub too) I sometimes had 403. It was very random and couldn't make sense of it. The code to benchmark the Docker images does not exist yet. I think that we may want to have a repo in charge of converting existing images for stargz users AND benchmarks. Something like It's just an idea, I'm trying to think of ways people can use estargz without waiting for all upstream repository to switch. This would be very useful in CI/CD as well as just using Also related I opened an issue to discuss a possible additional tag in docker.io/library: docker-library/official-images#13123 |
@gabrieldemarmiesse Thank you.
Remaining issue is that estargz-images doesn't seems to support passing stdin to
Does using the command other than
Thank you! 👍 |
Thanks, it's quite clear. I could implement the stdin but I'm not sure it's necessary. It's hard to find docker images that can be optimized only by using stdin to run them. Even the ones already in the list you gave me could use --entrypoint instead. Maybe, to avoid having dead code in the repo, we could implement the stdin only when we encounter a docker image where stdin is the only way to optimize? |
SGTM If you're interested in moving that repo under
BTW, I'm attending at Open Source Summit at Dublin. Are you there as well? It would be nice if we talk there. cc @AkihiroSuda |
Here are some updates on the repo https://github.com/gabrieldemarmiesse/estargz-images :
Let's not transfer the repo until I remove the push step when the CI is running in a pull request If you would like to talk, I'm available on the docker slack or we could do a google meet. You can find my email address in my github user profile page |
Thank you. Please let us know when it's ready. |
@ktock it's done. When in a pull request, the CI will only try to convert the images, but will not try to push them We can transfer the repo. Since I made a lot of commits just for testing purposes, you might want to squash the whole history into one commit :) |
FYI: https://github.com/stargz-containers/image-ci |
Very cool! :) |
Now images are created from our CI. Closing this issue.
|
We should have CI to automate building & pushing of
estargz-kind-node
and pre-converted estargz images.We publish these images on
stargz-containers
org so we should have that CI repository under that org.The text was updated successfully, but these errors were encountered: