Project

General

Profile

Actions

Feature #18253

closed

repo search for docker image repos using the results of docker search

Added by Thomas McKay about 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Container
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1268026

Description of problem:

For yum repositories we offer a feature called "repo discovery" which makes it easier to identify and configure repositories if they are coming from one source and are available for different RHEL versions and architectures.

Until we ship docker images in CDN and can just select and enable these repos inside the Docker Images tab under Content -> Red Hat repositories we need to manually configure each invidual container image (repo) we want to sync into Sat6.

Docker search provides all required information to browse and filter the available docker images inside a registry.

This is even more relevant for ISV images inside our federated registry where we use registry.access.redhat.com as an index and provide back the url to the deviating ISV registry in rhcloud:

[root@dherrman ~]# docker search nginx
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
redhat.com registry-nginxinc.rhcloud.com/nginx/rhel7-nginx:1.9.2 Run by the busiest web sites on the Intern... 0
redhat.com registry.access.redhat.com/rhscl_beta/nginx-16-rhel7 Nginx 1.6 server and a reverse proxy server 0

This would make it significantly easier to identify, select and configure (Sat6 repo and product) multiple container image repositories at once and would include ISV images in our federated registry as well.

Version-Release number of selected component (if applicable):

N/A

How reproducible:

N/A

Steps to Reproduce:

N/A

Actual results:

currently repo discovery only works for yum repos

Expected results:

Repo discovery works for docker images if I provide the registry (and maybe additionally a search term since a blind search listing all images seems to not work)

Additional info:

Workaround using hammer CLI:

for RESULT in $(docker search ${SEARCH} | grep -vi INDEX | sed -e 's/^redhat.com:blank:*\(:graph:*\):blank:*.*/\1/')
do # divide between registry and upstream repo name
REGISTRY_URL=$(echo $RESULT | cut d'/' -f1)
REPO_NAME=$(echo $RESULT | cut -d'/' -f2
)
echo "Adding REPO: $REPO_NAME REGISTRY: $REGISTRY_URL "

hammer repository create --name="${REPO_NAME}" \
--product='Container Images' --content-type='docker' \
--url="https://${REGISTRY_URL}" \
--docker-upstream-name="${REPO_NAME}" \
--publish-via-http="true" \
--organization="$ORG"

done


Related issues 1 (0 open1 closed)

Related to Katello - Bug #27485: CVE-2019-14825: Registry credentials are captured in plain text in dynflow task during repository discoveryClosedJustin SherrillActions
Actions #1

Updated by Thomas McKay about 7 years ago

  • Subject changed from repo search for docker image repos using the results of docker search to repo search for docker image repos using the results of docker search
  • Assignee set to Thomas McKay
  • Target version set to 155
Actions #2

Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6564 added
Actions #3

Updated by Justin Sherrill about 7 years ago

  • translation missing: en.field_release set to 114
Actions #4

Updated by The Foreman Bot about 7 years ago

  • translation missing: en.field_release deleted (114)
Actions #5

Updated by Justin Sherrill about 7 years ago

  • Priority changed from High to Normal
  • translation missing: en.field_release set to 114
Actions #6

Updated by The Foreman Bot about 7 years ago

  • translation missing: en.field_release deleted (114)
Actions #7

Updated by Eric Helms about 7 years ago

  • translation missing: en.field_release set to 211
Actions #8

Updated by Thomas McKay about 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #9

Updated by Tomer Brisker over 4 years ago

  • Related to Bug #27485: CVE-2019-14825: Registry credentials are captured in plain text in dynflow task during repository discovery added
Actions

Also available in: Atom PDF