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

Split publishing and loading #731

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

jonjohnsonjr
Copy link
Contributor

This untangles daemon from remote when publishing a bit more, which will make it easier to move towards lazily producing these images, which will make it easier to avoid building things entirely.

@jonjohnsonjr jonjohnsonjr requested a review from a team as a code owner June 6, 2023 22:51
@jonjohnsonjr jonjohnsonjr requested review from rawlingsj and removed request for a team June 6, 2023 22:51
@deitch
Copy link
Contributor

deitch commented Jun 7, 2023

I like the idea of decoupling. The question is, should we do it even one step further? Maybe it shouldn't be apko publish and apko publish --local, but rather apko publish (for OCI registries) and apko load or similar (for docker)? I think that might make it even clearer

@jonjohnsonjr
Copy link
Contributor Author

I'd prefer having a separate apko load, but I'd be worried about breaking any existing apko users :/

This untangles daemon from remote when publishing a bit more, which will
make it easier to move towards lazily producing these images, which will
make it easier to avoid building things entirely.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr jonjohnsonjr merged commit a8ad963 into chainguard-dev:main Jul 19, 2023
19 checks passed
if err != nil {
return name.Digest{}, err
}
if strings.HasPrefix(localSrcTag.Name(), fmt.Sprintf("%s/", LocalDomain)) {
Copy link

@markkrj markkrj Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will not this always be true? Line 97 has localSrcTagStr := fmt.Sprintf("%s/%s:%s", LocalDomain...
I was expecting that publish myimage.yaml myimage:mytag --local actually loaded the tags to my Docker daemon. This prevents it.

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

Successfully merging this pull request may close these issues.

4 participants