Description of problem: registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-6 contains /etc/yum.repos.d/jboss-rhel-ose.repo file which causes errors during builds using this image as a base image. The issue seems to be that the repo is using the following baseurl: baseurl=http://pulp.dist.prod.ext.phx2.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ose/3.6/os/ Version-Release number of selected component (if applicable): openjdk18-openshift:1.2-6 How reproducible: Always Steps to Reproduce: 1. docker run --rm -it -u 0 registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-6 /bin/bash 2. ls -la /etc/yum.repos.d/ 3. cat /etc/yum.repos.d/jboss-rhel-ose.repo Actual results: [root@37b24d049ab3 ~]# ls -la /etc/yum.repos.d/ total 16 drwxr-xr-x. 2 root root 52 Nov 7 15:27 . drwxr-xr-x. 55 root root 4096 Feb 5 13:11 .. -rw-r--r--. 1 root root 233 Oct 9 10:47 jboss-rhel-ose.repo -rw-r--r--. 1 root root 358 Sep 28 17:39 redhat.repo [root@37b24d049ab3 ~]# cat /etc/yum.repos.d/jboss-rhel-ose.repo [jboss-rhel-ose] name=Red Hat RHEL7 OSE 3.6 repo baseurl=http://pulp.dist.prod.ext.phx2.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ose/3.6/os/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Expected results: The file /etc/yum.repos.d/jboss-rhel-ose.repo should not be there. Additional info:
It looks like this might already be covered by the updated image released yesterday (openjdk18-openshift:1.2-7) which no longer includes the file "/etc/yum.repos.d/jboss-rhel-ose.repo". # time docker run --rm -it -u 0 registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-7 /bin/bash Unable to find image 'registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-7' locally Trying to pull repository registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift ... 1.2-7: Pulling from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift 9cadd93b16ff: Already exists 4aa565ad8b7a: Already exists 343ba5353b91: Pull complete ed5233aa6fdd: Pull complete 015798517008: Pull complete Digest: sha256:79265156869e437daf0b7906ac5daad85a45d4186ecfab77aab7fef58b96caed [root@ba0a4c7fc79f ~]# ls -la /etc/yum.repos.d/ total 12 drwxr-xr-x. 2 root root 25 Jan 16 16:08 . drwxr-xr-x. 55 root root 4096 Feb 6 09:34 .. -rw-r--r--. 1 root root 358 Nov 21 16:44 redhat.repo
This was an issue with the build tool not removing the custom repos from the image during the build. This has been fixed in subsequent releases (builds).
@maschmid, could you please help to verify this bug? thanks!
Latest image in registry (i.e. 1.2-7) already fixes the issue. Marking this issue verified.