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

Built-in container images #2974

Open
qbx2 opened this issue Apr 3, 2023 · 2 comments
Open

Built-in container images #2974

qbx2 opened this issue Apr 3, 2023 · 2 comments
Labels
area/core Issues core to the OS (variant independent) area/out-of-tree-builds Related to the efforts of making it easy to create builds outside of the main Bottlerocket repo status/icebox Things we think would be nice but are not prioritized type/enhancement New feature or request

Comments

@qbx2
Copy link

qbx2 commented Apr 3, 2023

What I'd like:
I'd like to include large container images (it could be 10GB+) into the AMI image. I am using warm pool to reduce time to pull, but still it costs traffic. It'd be best to include them in AMIs.

Any alternatives you've considered:
I have modified the source code for buildsys to be able to docker-pull and docker-save at build time, and added a package refers to [[package.metadata.build-package.external-container-images]]. Then, the package.spec copies the tar file and a service spec to execute ctr -n k8s.io images import /path/to/tarfile on boot. If wanted, I have willing to submit a PR.

@qbx2 qbx2 added status/needs-triage Pending triage or re-evaluation type/enhancement New feature or request labels Apr 3, 2023
@stmcginnis
Copy link
Contributor

Hey @qbx2, thanks for raising this. I know similar ideas have come up a few times, but I haven't seen a good answer yet.

The idea is really interesting, but the idea and your example solution require creating a custom build of Bottlerocket. Is the idea your proposing that this capability is added to the "core" Bottlerocket to make it easier to make these customized builds?

#2669 is looking at making it easier to create customized builds outside of the main variants included in the Bottlerocket repo. I wonder if this would be a good addition to that effort.

@stmcginnis stmcginnis added status/needs-info Further information is requested area/core Issues core to the OS (variant independent) and removed status/needs-triage Pending triage or re-evaluation labels Apr 7, 2023
@qbx2
Copy link
Author

qbx2 commented Apr 13, 2023

@stmcginnis Yes, the idea is to add the capability to the "core". Also, I expect to leverage this capability easily with out-of-tree Bottlerocket variants.

@stmcginnis stmcginnis added area/out-of-tree-builds Related to the efforts of making it easy to create builds outside of the main Bottlerocket repo status/icebox Things we think would be nice but are not prioritized and removed status/needs-info Further information is requested labels Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues core to the OS (variant independent) area/out-of-tree-builds Related to the efforts of making it easy to create builds outside of the main Bottlerocket repo status/icebox Things we think would be nice but are not prioritized type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants