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

FIXME: re-worked PushImage function to exec the docker cli, or convert other docker helpers to using the client library. #1274

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

satyazzz123
Copy link

Summary

Reworked PushImage function to exec the docker cli, or convert other docker helpers to using the client library.

Release notes


Related

Resolves #914


Context

This PR addresses the FIXME comment by directly executing the Docker CLI to push the image

Signed-off-by: satyazzz123 <beherasatyajit716@gmail.com>
@satyazzz123 satyazzz123 requested a review from a team as a code owner January 20, 2024 14:45
@satyazzz123
Copy link
Author

@natalieparellano I have raised a PR for docker.go FIXME . Please have a look. Thank you

Signed-off-by: satyazzz123 <beherasatyajit716@gmail.com>
}
// Append the new DOCKER_CONFIG to the filtered environment
newEnv := append(filteredEnv, "DOCKER_CONFIG="+auth)
Copy link
Member

Choose a reason for hiding this comment

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

Ah, I think auth here is a JSON encoded string, whereas docker expects the location of a directory containing a config.json file. If you look further up to where auth is constructed it should be possible to find that directory.

@natalieparellano natalieparellano marked this pull request as draft May 6, 2024 20:35
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.

FIXMEs in the code
2 participants