Skip to content

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 <[email protected]>
@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 <[email protected]>
}
}
// 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