Feature #7796
As a I user, I want to enable docker repositories from the Red Hat CDN
Related issues
Associated revisions
Refs #7796 - Shows docker registry names for CDN enablement
hammer repository-set available-repositories --product-id=21 --id=3877
will now show a Registry Name for docker repos.
Fixes #7796 - Enable docker repos from the CDN
This commit provides code to enable/create docker repos from a CDN
manifest.
The way this supposed to work.
1) CDN exposes the real sync URLs for rhel repos under a file called
CONTAINER_REGISTRY_LISTING with the following json format
{
"header": {
"version": "1.0"
},
"payload": {
"registries": [
{ "name": "<repo-name>",
"url": "<url>"
},
{ "name": "<repo-name2>",
"url": "<url>",
"aliases": [ "<other names>" ]
}
]
}
}
These files can be found where the docker container exposes contentUrl
for the content.
2) When the user goes to the repo enablement page and selects a docker
repository content set, she will get to choose any of the registries
picked from the CONTAINER_REGISTRY_LISTING file basically in the format
"#{content.name} - #{registry.name}" for each registry.
3) Once the user chooses to enable a repo, katello grabs the pulp-id and
the url listed in the listings file and creates a docker repository in
pulp. Right now we are leaving the repos unprotected, but at some point
when we have the enforcement code ready we'll probably look into
changing that to protected
History
#1
Updated by David Davis over 7 years ago
- Blocks Tracker #7125: Docker Content Support added
#2
Updated by David Davis over 7 years ago
- translation missing: en.field_story_points set to 5.0
#3
Updated by Partha Aji over 7 years ago
- Assignee set to Partha Aji
#4
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Target version set to 58
- Pull request https://github.com/Katello/katello/pull/4732 added
- Pull request deleted (
)
#5
Updated by Partha Aji over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|06bedb13fdf9da9fa56089227ff637c0b370cf23.
#6
Updated by Eric Helms over 7 years ago
- Legacy Backlogs Release (now unused) set to 14
#7
Updated by Partha Aji over 7 years ago
- Bugzilla link set to 1199289
Fixes #7796 - Added code to enable docker repos
Code to enable docker repos.