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: properly request docker images from docker API #1854

Merged
merged 9 commits into from
Sep 12, 2024
Merged

Conversation

lengau
Copy link
Collaborator

@lengau lengau commented Aug 27, 2024

Fixes #1760, reverts #1761

CRAFT-3148

@lengau lengau marked this pull request as ready for review August 29, 2024 13:23
@lengau lengau requested review from mr-cal and tigarmo August 29, 2024 13:23
@lucabello
Copy link

upload-resource fails with DockerException() on 3.2 (but works on 2.7) for me

Command:

charmcraft upload-resource blackbox-exporter-k8s blackbox-exporter-image --image="docker://quay.io/prometheus/blackbox-exporter:v0.24.0" --format=json

Logs: https://pastebin.canonical.com/p/GmrtZCvjRV/

@lengau
Copy link
Collaborator Author

lengau commented Aug 30, 2024

Thanks @lucabello! I tested it with this case and it failed, but I've modified the PR and added a fix that worked for me locally. Could you test it from the edge/pr-1854 channel to ensure it wasn't a fluke?

@lucabello
Copy link

Confirmed it works from your branch (rev 3.2.0.post9+g2460b772). Thanks!

charmcraft/services/image.py Show resolved Hide resolved
@lengau lengau requested a review from tigarmo September 11, 2024 17:34
@lengau lengau added this pull request to the merge queue Sep 12, 2024
Merged via the queue into main with commit 1d2413a Sep 12, 2024
20 checks passed
@lengau lengau deleted the work/1760/images branch September 12, 2024 18:14
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.

Docker images not properly requested from docker API
4 participants