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

Fix push handling #32

Merged
merged 2 commits into from
Sep 22, 2022
Merged

Fix push handling #32

merged 2 commits into from
Sep 22, 2022

Conversation

sgaist
Copy link
Contributor

@sgaist sgaist commented Sep 13, 2022

This merge request does mainly two things:

  • refactor the image name handling
  • add missing git credential helper script

The former allows to run the tool with non docker.io registries.
The latter allows to clone private repositories as the repo2docker image does.

@sgaist
Copy link
Contributor Author

sgaist commented Sep 21, 2022

I don't know what I can do about the test failure based on the message:

[conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied

It does not look like it is related to the code changes I did.

@manics
Copy link
Owner

manics commented Sep 21, 2022

It wouldn't surprise me if it's also broken on main 😢 I'll take a look

@manics manics closed this Sep 22, 2022
@manics manics reopened this Sep 22, 2022
@manics
Copy link
Owner

manics commented Sep 22, 2022

[conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied seems to be a harmless warning containers/podman#3024

There was a problem with the tests which I've fixed in: #33

@sgaist
Copy link
Contributor Author

sgaist commented Sep 22, 2022

That was a sneaky one !

The current default_transport value only works
if one wants to push an image to docker.io.

Here we change the default transport to be only
about the schema. The image name is then parsed
and normalized in the push method using the
docker-image-py package.
This will allow for the image to work
the same as the repo2docker image.
Copy link
Owner

@manics manics left a comment

Choose a reason for hiding this comment

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

Thanks!

@manics manics merged commit 5973cb0 into manics:main Sep 22, 2022
@sgaist sgaist deleted the fix_push_handling branch May 22, 2023 09:17
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.

2 participants