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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user