mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
Alerta 9.1.0 is the latest upstream release, and alerta/alerta-web:9.1.0 still carries the Debian packages of its build day, the compiler toolchain and -dev headers it built its wheels with, and Python packages whose fixes came out after the release. The monitoring stack ran that image unpinned. A purge in a layer on top of the upstream image would leave the files in the lower layers, so the result is flattened into an empty image and the upstream image config is restated. cryptography stays below 47 because pyOpenSSL requires it, and lxml stays on 5.x. Assisted-by: LLM Signed-off-by: Marian Koreniuk <moriarti@cp.if.ua> Co-authored-by: europrinter <yanshinjuku@gmail.com>
49 lines
1.9 KiB
Makefile
49 lines
1.9 KiB
Makefile
NAME=monitoring
|
|
NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../hack/common-envs.mk
|
|
include ../../../hack/package.mk
|
|
|
|
test:
|
|
helm unittest .
|
|
|
|
.PHONY: image image-otelcol-tracing image-alerta
|
|
|
|
# The collector is versioned by its upstream release, pinned in the
|
|
# Containerfile; bump COZYSTACK_REV for a respin on the same release (a new
|
|
# component in builder-config.yaml, a Go toolchain bump).
|
|
OTELCOL_VERSION = $(shell awk -F= '/^ARG VERSION=/{print $$2}' images/otelcol-tracing/Containerfile)
|
|
COZYSTACK_REV = 0
|
|
COMPONENT_VERSION = v$(OTELCOL_VERSION)-cozystack.$(COZYSTACK_REV)
|
|
|
|
# Alerta is versioned by the upstream release it respins, pinned in the
|
|
# Containerfile; bump ALERTA_COZYSTACK_REV for a respin on the same release.
|
|
ALERTA_VERSION = $(shell awk -F= '/^ARG VERSION=/{print $$2}' images/alerta/Containerfile)
|
|
ALERTA_COZYSTACK_REV = 0
|
|
ALERTA_COMPONENT_VERSION = v$(ALERTA_VERSION)-cozystack.$(ALERTA_COZYSTACK_REV)
|
|
|
|
image: image-otelcol-tracing image-alerta
|
|
.NOTPARALLEL: image
|
|
|
|
image-otelcol-tracing:
|
|
docker buildx build images/otelcol-tracing \
|
|
--file images/otelcol-tracing/Containerfile \
|
|
$(call image-tags,otelcol-tracing,$(COMPONENT_VERSION)) \
|
|
$(call cache-args,otelcol-tracing) \
|
|
--metadata-file images/otelcol-tracing.json \
|
|
$(BUILDX_ARGS)
|
|
IMAGE="$(REGISTRY)/otelcol-tracing:$(COMPONENT_VERSION)@$$(yq e '."containerimage.digest"' images/otelcol-tracing.json -o json -r)" \
|
|
yq -i '.tracingCollector.image = strenv(IMAGE)' values.yaml
|
|
rm -f images/otelcol-tracing.json
|
|
|
|
image-alerta:
|
|
docker buildx build images/alerta \
|
|
--file images/alerta/Containerfile \
|
|
$(call image-tags,alerta,$(ALERTA_COMPONENT_VERSION)) \
|
|
$(call cache-args,alerta) \
|
|
--metadata-file images/alerta.json \
|
|
$(BUILDX_ARGS)
|
|
IMAGE="$(REGISTRY)/alerta:$(ALERTA_COMPONENT_VERSION)@$$(yq e '."containerimage.digest"' images/alerta.json -o json -r)" \
|
|
yq -i '.alerta.image = strenv(IMAGE)' values.yaml
|
|
rm -f images/alerta.json
|