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

Better support pre-builts with an image base #505

Open
Clockwork-Muse opened this issue Oct 7, 2024 · 0 comments
Open

Better support pre-builts with an image base #505

Clockwork-Muse opened this issue Oct 7, 2024 · 0 comments

Comments

@Clockwork-Muse
Copy link

Currently, when creating a devcontainer, both the dockerfile-based build and the compose-based build can take advantage of docker's ability to pull cache from OCI registries (by using the name of the final pushed image) to potentially speed up the container build. This is possibly superior to pre-building based off of a separate devcontainer definition, since then you're only maintaining a single file.

Unfortunately, this isn't available at all for image-based builds.
It would be nice if there was a cache-from option available for image-based builds, similar to dockerfile-based builds, something like:

{
    "image": "some-image-that-has-most",
    // This would be new
    "cacheFrom": "pushed-image-version",
    "features": {
        "somethingExpensive": {
        },
    }
}

This would make setup potentially simpler for some use cases.

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

No branches or pull requests

2 participants
@Clockwork-Muse and others