]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev*build: Stop using docker-mirror 1961/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 1 Feb 2022 18:36:23 +0000 (13:36 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 1 Feb 2022 18:36:23 +0000 (13:36 -0500)
Non-stream CentOS8 containers no longer work because the BaseOS and AppStream repos moved.  We now use the centos/centos:stream8 container image as our BASEOS_TAG.  Except that container lives on quay.io and not dockerhub.

docker-mirror.front.sepia.ceph.com:5000 can only mirror one registry.  We'll keep it as mirroring dockerhub.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-dev-build/build/build_rpm
ceph-dev-new-build/build/build_rpm
scripts/build_utils.sh

index e07d214ca3acac46b7b9186d7ece48a34a9eed67..269ee13e3935123f6898f2f6dd1f2c3ca1d1e80a 100644 (file)
@@ -100,10 +100,8 @@ if [[ "$CI_CONTAINER" == true && $DISTRO == "centos" ]] ; then
       # exit 1
     fi
 
-    use_internal_container_registry
-
     cd $WORKSPACE/ceph-container
-    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} OSD_FLAVOR=${FLAVOR} CONTAINER_FLAVOR=${BRANCH},${DISTRO},${RELEASE} BASEOS_REGISTRY=${REGISTRY} \
+    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} OSD_FLAVOR=${FLAVOR} CONTAINER_FLAVOR=${BRANCH},${DISTRO},${RELEASE} \
       /bin/bash ./contrib/build-push-ceph-container-imgs.sh
     cd $WORKSPACE
     sudo rm -rf ceph-container
index 740daec02fee98c81c6aa0b0bda1d6d50405ab23..cd9febafe2d205f050c8f7acc506c58872038f60 100644 (file)
@@ -100,10 +100,8 @@ if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" ]] ; then
       # exit 1
     fi
 
-    use_internal_container_registry
-
     cd $WORKSPACE/ceph-container
-    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} OSD_FLAVOR=${FLAVOR} CONTAINER_FLAVOR=${BRANCH},${DISTRO},${RELEASE} BASEOS_REGISTRY=${REGISTRY} \
+    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} OSD_FLAVOR=${FLAVOR} CONTAINER_FLAVOR=${BRANCH},${DISTRO},${RELEASE} \
       /bin/bash ./contrib/build-push-ceph-container-imgs.sh
     cd $WORKSPACE
     sudo rm -rf ceph-container
index a435ecdfe4a78ee5674b7132e75bd072e7845a69..53765a2d86824cc65e149c673b4897f324daea22 100644 (file)
@@ -1555,18 +1555,6 @@ maybe_reset_ci_container() {
     fi
 }
 
-# dockerhub started aggressively rate limiting in November 2020. We can use an internal docker mirror if the builder is in the upstream lab.
-use_internal_container_registry() {
-  if curl -s -k "https://docker-mirror.front.sepia.ceph.com:5000"; then
-    REGISTRY="docker-mirror.front.sepia.ceph.com:5000/library"
-  else
-    if [ -n "${DOCKER_HUB_USERNAME}" ] && [ -n "${DOCKER_HUB_PASSWORD}" ]; then
-      docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}" docker.io
-    fi
-    REGISTRY="docker.io"
-  fi
-}
-
 # NOTE: This function will only work on a Pull Request job!
 docs_pr_only() {
   pushd .