Files
pnoker c71b420248 docs(headers): add the missing agpl headers to deploy and config files
- add the canonical AGPL header to the six agentic application yml files and the two python scripts that lacked one
- add the header to all 79 kustomize, helm, and grafana yaml files, including the k8s driver template which regenerates the 36 driver manifests
- verified: the k8s yaml files parse (multi-document aware), the python scripts compile, and the regenerated drivers differ only by the header
2026-08-25 16:13:47 +08:00

48 lines
1.9 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# Copyright 2016-present the IoT DC3 original author or authors.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
# Builds and pushes the dependency images that the release CI does NOT publish
# (dc3-postgres, dc3-rabbitmq). Kubernetes and Swarm need them in a registry
# reachable by every node.
#
# Usage:
# DC3_IMAGE_REGISTRY=my.registry/dc3 DC3_IMAGE_TAG=2026.6 ./scripts/push-images.sh
# # single-node clusters (kind/k3s/docker-desktop): load into the node instead:
# kind load docker-image pnoker/dc3-postgres:2026.6 pnoker/dc3-rabbitmq:2026.6
#
set -euo pipefail
REGISTRY="${DC3_IMAGE_REGISTRY:-pnoker}"
TAG="${DC3_IMAGE_TAG:-2026.6}"
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../.." && pwd)"
for image in dc3-postgres dc3-rabbitmq; do
docker build -t "${REGISTRY}/${image}:${TAG}" "${ROOT}/dc3/dependencies/${image}"
echo "built ${REGISTRY}/${image}:${TAG}"
done
if [[ "$REGISTRY" == "pnoker" ]]; then
echo "WARNING: pnoker is the public Docker Hub namespace - pushing there requires"
echo "permissions. Push to your own registry instead:"
echo " DC3_IMAGE_REGISTRY=my.registry/dc3 ./scripts/push-images.sh"
else
docker push "${REGISTRY}/dc3-postgres:${TAG}"
docker push "${REGISTRY}/dc3-rabbitmq:${TAG}"
echo "pushed ${REGISTRY}/dc3-postgres:${TAG} and dc3-rabbitmq:${TAG}"
fi