From 756cc439972ee09fe02a3dea8658633b099709a7 Mon Sep 17 00:00:00 2001 From: andersonid Date: Fri, 3 Oct 2025 07:04:58 -0300 Subject: [PATCH] cleanup: remove all Docker Hub references and update to Quay.io - Update deployment.yaml to reference Quay.io instead of Docker Hub - Remove Docker Hub references from README.md - Update build-and-push.sh to show Quay.io registry info - Update release.sh to reference Quay.io repository - Update push-to-internal-registry.sh to use Quay.io image - Clean up all Docker Hub comments and references - Registry is now exclusively Quay.io: quay.io/rh_ee_anobre/resource-governance --- README.md | 8 ++++---- k8s/deployment.yaml | 4 ++-- scripts/build-and-push.sh | 13 +++++++------ scripts/push-to-internal-registry.sh | 2 +- scripts/release.sh | 6 +++--- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ba96ca9..acbb65d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ A comprehensive tool for analyzing user workloads and resource usage in OpenShif - Prometheus (native in OCP) - VPA (optional, for recommendations) - Python 3.11+ -- Podman (preferred) or Docker +- Podman (preferred) - OpenShift CLI (oc) ## πŸ› οΈ Installation @@ -290,13 +290,13 @@ podman build -t resource-governance . podman run -p 8080:8080 resource-governance ``` -### Run with Docker +### Run with Podman (Alternative) ```bash # Build -docker build -t resource-governance . +podman build -t resource-governance . # Run -docker run -p 8080:8080 resource-governance +podman run -p 8080:8080 resource-governance ``` ### Tests diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index aa33a95..0a7ea20 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -25,12 +25,12 @@ spec: spec: serviceAccountName: resource-governance-sa # imagePullSecrets: - # - name: docker-hub-secret + # - name: quay-secret # Only needed for private repositories securityContext: runAsNonRoot: true containers: - name: resource-governance - image: andersonid/resource-governance:latest + image: quay.io/rh_ee_anobre/resource-governance:latest imagePullPolicy: Always ports: - containerPort: 8080 diff --git a/scripts/build-and-push.sh b/scripts/build-and-push.sh index c1d8da9..e185cf2 100755 --- a/scripts/build-and-push.sh +++ b/scripts/build-and-push.sh @@ -13,7 +13,7 @@ NC='\033[0m' # No Color # ConfiguraΓ§Γ΅es IMAGE_NAME="resource-governance" TAG="${1:-latest}" -REGISTRY="${2:-andersonid}" +REGISTRY="${2:-quay.io/rh_ee_anobre}" FULL_IMAGE_NAME="${REGISTRY}/${IMAGE_NAME}:${TAG}" echo -e "${BLUE}πŸš€ Building and Pushing OpenShift Resource Governance Tool${NC}" @@ -49,9 +49,9 @@ else exit 1 fi -# Login no Docker Hub -echo -e "${YELLOW}πŸ” Logging into Docker Hub...${NC}" -podman login docker.io +# Login no Quay.io +echo -e "${YELLOW}πŸ” Logging into Quay.io...${NC}" +podman login -u="rh_ee_anobre+oru" -p="EJNIJD7FPO5IN33ZGQZ4OM8BIB3LICASBVRGOJCX4WP84Y0ZG5SMQLTZ0S6DOZEC" quay.io if [ $? -eq 0 ]; then echo -e "${GREEN}βœ… Login successful!${NC}" @@ -61,7 +61,7 @@ else fi # Push da imagem -echo -e "${YELLOW}πŸ“€ Pushing image to Docker Hub...${NC}" +echo -e "${YELLOW}πŸ“€ Pushing image to Quay.io...${NC}" podman push "${FULL_IMAGE_NAME}" if [ $? -eq 0 ]; then @@ -76,5 +76,6 @@ echo -e "${BLUE}πŸ“Š Image information:${NC}" podman images "${FULL_IMAGE_NAME}" echo -e "${GREEN}πŸŽ‰ Build and push completed successfully!${NC}" -echo -e "${BLUE}🌐 Image available at: https://hub.docker.com/r/${REGISTRY}/${IMAGE_NAME}${NC}" +echo -e "${BLUE}🌐 Image available at: https://quay.io/repository/${REGISTRY#quay.io/}/${IMAGE_NAME}${NC}" echo -e "${BLUE}πŸš€ Ready for deployment!${NC}" +echo -e "${BLUE}πŸ“‹ Registry: Quay.io (public repository)${NC}" diff --git a/scripts/push-to-internal-registry.sh b/scripts/push-to-internal-registry.sh index 52b0632..042ad65 100755 --- a/scripts/push-to-internal-registry.sh +++ b/scripts/push-to-internal-registry.sh @@ -35,7 +35,7 @@ echo -e "${BLUE}πŸ“¦ Registry URL: $REGISTRY_URL${NC}" # Tag da imagem FULL_IMAGE_NAME="$REGISTRY_URL/$NAMESPACE/$IMAGE_NAME:$TAG" echo -e "${YELLOW}🏷️ Criando tag: $FULL_IMAGE_NAME${NC}" -podman tag andersonid/resource-governance:simple $FULL_IMAGE_NAME +podman tag quay.io/rh_ee_anobre/resource-governance:latest $FULL_IMAGE_NAME # Push da imagem echo -e "${YELLOW}πŸ“€ Fazendo push da imagem...${NC}" diff --git a/scripts/release.sh b/scripts/release.sh index 013ab98..23e0f83 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -120,11 +120,11 @@ create_release() { echo "" echo "Useful links:" echo " GitHub: https://github.com/andersonid/openshift-resource-governance/releases/tag/$tag" - echo " Docker Hub: https://hub.docker.com/r/andersonid/resource-governance/tags" + echo " Quay.io: https://quay.io/repository/rh_ee_anobre/resource-governance" echo "" echo "GitHub Actions will automatically:" - echo " 1. Build Docker image" - echo " 2. Push to Docker Hub" + echo " 1. Build container image" + echo " 2. Push to Quay.io" echo " 3. Create GitHub release" echo "" echo "Wait a few minutes and check:"