- Use Google Distroless images for all services (Go & Node.js). - Standardize documentation with [PROJECT-NAME].md. - Add .dockerignore and .gitignore to all projects. - Remove docker-compose.yml in favor of docker run instructions. - Fix Go version and dependency issues in observability, repo-integrations, and security-governance. - Add Podman support (fully qualified image names). - Update Dashboard to use Node.js static server for Distroless compatibility.
41 lines
1.3 KiB
Bash
Executable file
41 lines
1.3 KiB
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
REGISTRY="rg.fr-par.scw.cloud/yumi"
|
|
SERVICES=(
|
|
"automation-jobs-core"
|
|
"billing-finance-core"
|
|
"baas-control-plane"
|
|
"crm-core"
|
|
"dashboard"
|
|
"identity-gateway"
|
|
"observability-core"
|
|
"repo-integrations-core"
|
|
"security-governance-core"
|
|
)
|
|
|
|
for SERVICE in "${SERVICES[@]}"; do
|
|
if [ -d "$SERVICE" ]; then
|
|
if [ "$SERVICE" == "automation-jobs-core" ]; then
|
|
echo "🚀 Building automation-jobs-api..."
|
|
podman build -f Dockerfile.api -t "$REGISTRY/automation-jobs-api:latest" ./$SERVICE
|
|
echo "🚀 Pushing automation-jobs-api..."
|
|
podman push "$REGISTRY/automation-jobs-api:latest"
|
|
|
|
echo "🚀 Building automation-jobs-worker..."
|
|
podman build -f Dockerfile.worker -t "$REGISTRY/automation-jobs-worker:latest" ./$SERVICE
|
|
echo "🚀 Pushing automation-jobs-worker..."
|
|
podman push "$REGISTRY/automation-jobs-worker:latest"
|
|
else
|
|
echo "🚀 Building $SERVICE..."
|
|
podman build -t "$REGISTRY/$SERVICE:latest" ./$SERVICE
|
|
|
|
echo "🚀 Pushing $SERVICE..."
|
|
podman push "$REGISTRY/$SERVICE:latest"
|
|
fi
|
|
|
|
echo "✅ Done $SERVICE"
|
|
else
|
|
echo "⚠️ Directory $SERVICE not found!"
|
|
fi
|
|
done
|