Extend this into a generic 'image publisher', including container images #4
Labels
No labels
AWS
Azure
GCP
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
apps/cloud-image-uploader#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So, I have this ticket to replace the bash scripts we're currently using to publish container images to Fedora's registry and quay.io.
But...looking at this thing...it occurs to me, why have two Python thingies for publishing images to registries? Why not just extend this to also handle container images?
A very rough sketch in my head goes something like:
if/elif/elif...block inhandler.pywith something a bit more heavy-duty which maps image properties to subclasses of some kinda "image handler" classAzureImageclass which calls the existingazure()method then runs the playbook, as currentlyIf we want to keep the 'generic' playbook handling we could have a generic
AnsibleHandlerclass or something whichAzureImagecould inherit from, you know, details details. :P I don't know yet whether ansible is a sensible way to publish container images, but I don't think it is - there's https://docs.ansible.com/ansible/latest/collections/community/docker/index.html , but AFAICS that's very specific to the Docker registry...Before I go any further working on it, WDYT? Does this seem like a reasonable idea or would you rather keep them separate?
CCing @kevin , @siosm , @pbrobinson for reference.
I'm fine with it turning into a bit more generic "push compose images around".
I'm a little nervous about getting too complicated with subclasses and all that, but I think we can figure out what makes the most sense as the interface becomes clear. I also don't think every one needs to do an Ansible playbook, if doing pure Python or shelling out to whatever works best, by all means do it.
I think the right amount of classes just makes things clearer, not more complicated :P long conditionals get painful after a bit. Anyway, I'll try and hack something up and you can see what you think. I meant to work on this today, but the F38 EOL bug warning flood landed so I've been working on those instead, may start work on it later but probably won't be finished for a day or two.
status: jcline merged my refactor (thanks), I am working on adding container functionality on branch https://pagure.io/fork/adamwill/cloud-image-uploader/commits/handle-containers .
https://pagure.io/cloud-image-uploader/pull-request/10 adds container support.
OK, that's merged, I think we can say this is done now.
Metadata Update from @adamwill: