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
This commit is contained in:
2025-10-03 07:04:58 -03:00
parent c81ba36b26
commit 756cc43997
5 changed files with 17 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ A comprehensive tool for analyzing user workloads and resource usage in OpenShif
- Prometheus (native in OCP) - Prometheus (native in OCP)
- VPA (optional, for recommendations) - VPA (optional, for recommendations)
- Python 3.11+ - Python 3.11+
- Podman (preferred) or Docker - Podman (preferred)
- OpenShift CLI (oc) - OpenShift CLI (oc)
## 🛠️ Installation ## 🛠️ Installation
@@ -290,13 +290,13 @@ podman build -t resource-governance .
podman run -p 8080:8080 resource-governance podman run -p 8080:8080 resource-governance
``` ```
### Run with Docker ### Run with Podman (Alternative)
```bash ```bash
# Build # Build
docker build -t resource-governance . podman build -t resource-governance .
# Run # Run
docker run -p 8080:8080 resource-governance podman run -p 8080:8080 resource-governance
``` ```
### Tests ### Tests

View File

@@ -25,12 +25,12 @@ spec:
spec: spec:
serviceAccountName: resource-governance-sa serviceAccountName: resource-governance-sa
# imagePullSecrets: # imagePullSecrets:
# - name: docker-hub-secret # - name: quay-secret # Only needed for private repositories
securityContext: securityContext:
runAsNonRoot: true runAsNonRoot: true
containers: containers:
- name: resource-governance - name: resource-governance
image: andersonid/resource-governance:latest image: quay.io/rh_ee_anobre/resource-governance:latest
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8080 - containerPort: 8080

View File

@@ -13,7 +13,7 @@ NC='\033[0m' # No Color
# Configurações # Configurações
IMAGE_NAME="resource-governance" IMAGE_NAME="resource-governance"
TAG="${1:-latest}" TAG="${1:-latest}"
REGISTRY="${2:-andersonid}" REGISTRY="${2:-quay.io/rh_ee_anobre}"
FULL_IMAGE_NAME="${REGISTRY}/${IMAGE_NAME}:${TAG}" FULL_IMAGE_NAME="${REGISTRY}/${IMAGE_NAME}:${TAG}"
echo -e "${BLUE}🚀 Building and Pushing OpenShift Resource Governance Tool${NC}" echo -e "${BLUE}🚀 Building and Pushing OpenShift Resource Governance Tool${NC}"
@@ -49,9 +49,9 @@ else
exit 1 exit 1
fi fi
# Login no Docker Hub # Login no Quay.io
echo -e "${YELLOW}🔐 Logging into Docker Hub...${NC}" echo -e "${YELLOW}🔐 Logging into Quay.io...${NC}"
podman login docker.io podman login -u="rh_ee_anobre+oru" -p="EJNIJD7FPO5IN33ZGQZ4OM8BIB3LICASBVRGOJCX4WP84Y0ZG5SMQLTZ0S6DOZEC" quay.io
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo -e "${GREEN}✅ Login successful!${NC}" echo -e "${GREEN}✅ Login successful!${NC}"
@@ -61,7 +61,7 @@ else
fi fi
# Push da imagem # 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}" podman push "${FULL_IMAGE_NAME}"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
@@ -76,5 +76,6 @@ echo -e "${BLUE}📊 Image information:${NC}"
podman images "${FULL_IMAGE_NAME}" podman images "${FULL_IMAGE_NAME}"
echo -e "${GREEN}🎉 Build and push completed successfully!${NC}" 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}🚀 Ready for deployment!${NC}"
echo -e "${BLUE}📋 Registry: Quay.io (public repository)${NC}"

View File

@@ -35,7 +35,7 @@ echo -e "${BLUE}📦 Registry URL: $REGISTRY_URL${NC}"
# Tag da imagem # Tag da imagem
FULL_IMAGE_NAME="$REGISTRY_URL/$NAMESPACE/$IMAGE_NAME:$TAG" FULL_IMAGE_NAME="$REGISTRY_URL/$NAMESPACE/$IMAGE_NAME:$TAG"
echo -e "${YELLOW}🏷️ Criando tag: $FULL_IMAGE_NAME${NC}" 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 # Push da imagem
echo -e "${YELLOW}📤 Fazendo push da imagem...${NC}" echo -e "${YELLOW}📤 Fazendo push da imagem...${NC}"

View File

@@ -120,11 +120,11 @@ create_release() {
echo "" echo ""
echo "Useful links:" echo "Useful links:"
echo " GitHub: https://github.com/andersonid/openshift-resource-governance/releases/tag/$tag" 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 ""
echo "GitHub Actions will automatically:" echo "GitHub Actions will automatically:"
echo " 1. Build Docker image" echo " 1. Build container image"
echo " 2. Push to Docker Hub" echo " 2. Push to Quay.io"
echo " 3. Create GitHub release" echo " 3. Create GitHub release"
echo "" echo ""
echo "Wait a few minutes and check:" echo "Wait a few minutes and check:"