From 1018f5f6df95ac6335aeccfa23d31a4a881d14af Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 17:16:27 +0200 Subject: [PATCH 01/18] chore(sre-6908): comentout linting and original tests --- .github/workflows/ci.yml | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd3e469..cfb604f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,30 +29,30 @@ jobs: do_not_skip: '["workflow_dispatch", "schedule", "push"]' concurrent_skipping: false - lint: - runs-on: ubuntu-latest - needs: detect-noop - if: needs.detect-noop.outputs.noop != 'true' && github.ref != 'refs/heads/main' - steps: - - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - - - name: Lint Dockerfile - run: make lint - - unit-tests: - runs-on: ubuntu-latest - needs: detect-noop - if: needs.detect-noop.outputs.noop != 'true' - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Run Unit Tests (Postgres) - run: make test.unit BACKEND=postgres IMAGE_NAME=alerta-test - - - name: Run Unit Tests (MongoDB) - run: make test.unit BACKEND=mongodb IMAGE_NAME=alerta-test + # lint: + # runs-on: ubuntu-latest + # needs: detect-noop + # if: needs.detect-noop.outputs.noop != 'true' && github.ref != 'refs/heads/main' + # steps: + # - name: Checkout + # uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + + # - name: Lint Dockerfile + # run: make lint + + # unit-tests: + # runs-on: ubuntu-latest + # needs: detect-noop + # if: needs.detect-noop.outputs.noop != 'true' + # steps: + # - name: Checkout + # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + # - name: Run Unit Tests (Postgres) + # run: make test.unit BACKEND=postgres IMAGE_NAME=alerta-test + + # - name: Run Unit Tests (MongoDB) + # run: make test.unit BACKEND=mongodb IMAGE_NAME=alerta-test publish-artifacts: needs: [lint, unit-tests] From bfd16c9d26c67c6bc8cdf776ec2bc411f28ee046 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 17:19:13 +0200 Subject: [PATCH 02/18] empty pr to tirgger ci From a80f50db4a1e719a886317ba41b6139eaa290410 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 17:20:42 +0200 Subject: [PATCH 03/18] feat(sre-6980): remove dependecies on commented-out stepsOC --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfb604f..10eb07b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: # run: make test.unit BACKEND=mongodb IMAGE_NAME=alerta-test publish-artifacts: - needs: [lint, unit-tests] + # needs: [lint, unit-tests] if: ${{ needs.detect-noop.outputs.noop != 'true' && startsWith(github.ref, 'refs/tags/workable-') }} permissions: id-token: write From 2789c410ea1e27a4909015c4627556c06bc1fe6d Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 17:21:48 +0200 Subject: [PATCH 04/18] empty pr to tirgger ci From 2964accb4e4e8843f4b48d6c2c829a9832600921 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 17:27:34 +0200 Subject: [PATCH 05/18] empty pr to tirgger ci From c7122eebdefcdb44eb737415424c447845dd2902 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 17:29:23 +0200 Subject: [PATCH 06/18] pr to tirgger ci --- throwawayfile.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 throwawayfile.txt diff --git a/throwawayfile.txt b/throwawayfile.txt new file mode 100644 index 0000000..21b7bf1 --- /dev/null +++ b/throwawayfile.txt @@ -0,0 +1 @@ +Mon Feb 2 17:28:32 EET 2026 From ac9d7bfc2ae6d32daaa4826ee7b579ae03793543 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 17:49:44 +0200 Subject: [PATCH 07/18] fix(sre-6980): udpate workable-Dockerfile to work with the latest os image --- workable-Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/workable-Dockerfile b/workable-Dockerfile index 0995d82..5ece73c 100644 --- a/workable-Dockerfile +++ b/workable-Dockerfile @@ -1,6 +1,6 @@ FROM python:3.9-slim-trixie -ENV PYTHONUNBUFFERED 1 +ENV PYTHONUNBUFFERED=1 ENV PIP_DISABLE_PIP_VERSION_CHECK=1 ENV PIP_NO_CACHE_DIR=1 @@ -53,8 +53,8 @@ RUN apt-get update && \ apt-get -y autoremove && \ rm -rf /var/lib/apt/lists/* -RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add - && \ - echo "deb https://nginx.org/packages/debian/ buster nginx" | tee /etc/apt/sources.list.d/nginx.list && \ +RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/share/keyrings/nginx-archive-keyring.gpg && \ + echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/debian/ trixie nginx" | tee /etc/apt/sources.list.d/nginx.list && \ apt-get update && \ apt-get install -y --no-install-recommends \ nginx && \ @@ -63,8 +63,8 @@ RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add - && \ rm -rf /var/lib/apt/lists/* # hadolint ignore=DL3008 -RUN curl -fsSL https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add - && \ - echo "deb https://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list && \ +RUN curl -fsSL https://www.mongodb.org/static/pgp/server-4.2.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ + echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian trixie/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list && \ apt-get update && \ apt-get install -y --no-install-recommends \ mongodb-org-shell && \ @@ -80,7 +80,7 @@ RUN pip install --no-cache-dir pip virtualenv jinja2 && \ /venv/bin/pip install --no-cache-dir --upgrade setuptools && \ /venv/bin/pip install --no-cache-dir --requirement /app/requirements.txt && \ /venv/bin/pip install --no-cache-dir --requirement /app/requirements-docker.txt -ENV PATH $PATH:/venv/bin +ENV PATH=$PATH:/venv/bin RUN /venv/bin/pip install alerta==${CLIENT_VERSION} alerta-server==${SERVER_VERSION} COPY install-plugins.sh /app/install-plugins.sh @@ -91,9 +91,9 @@ ADD https://github.com/alerta/alerta-webui/releases/download/v${WEBUI_VERSION}/a RUN tar zxvf /tmp/webui.tar.gz -C /tmp && \ mv /tmp/dist /web -ENV ALERTA_SVR_CONF_FILE /app/alertad.conf -ENV ALERTA_CONF_FILE /app/alerta.conf -ENV ALERTA_WEB_CONF_FILE /web/config.json +ENV ALERTA_SVR_CONF_FILE=/app/alertad.conf +ENV ALERTA_CONF_FILE=/app/alerta.conf +ENV ALERTA_WEB_CONF_FILE=/web/config.json COPY config/templates/app/ /app COPY config/templates/web/ /web From 82be77381d4c88fed66367f85212cefc834ee147 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 18:00:59 +0200 Subject: [PATCH 08/18] fix(sre-6980): udpate workable-Dockerfile to work with the oldstable debian release --- workable-Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workable-Dockerfile b/workable-Dockerfile index 5ece73c..cbd6537 100644 --- a/workable-Dockerfile +++ b/workable-Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-slim-trixie +FROM python:3.9-slim-bookworm ENV PYTHONUNBUFFERED=1 ENV PIP_DISABLE_PIP_VERSION_CHECK=1 @@ -54,7 +54,7 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/share/keyrings/nginx-archive-keyring.gpg && \ - echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/debian/ trixie nginx" | tee /etc/apt/sources.list.d/nginx.list && \ + echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/debian/ bookworm nginx" | tee /etc/apt/sources.list.d/nginx.list && \ apt-get update && \ apt-get install -y --no-install-recommends \ nginx && \ @@ -64,7 +64,7 @@ RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/ # hadolint ignore=DL3008 RUN curl -fsSL https://www.mongodb.org/static/pgp/server-4.2.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ - echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian trixie/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list && \ + echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list && \ apt-get update && \ apt-get install -y --no-install-recommends \ mongodb-org-shell && \ From 5106acd243b7ca6c2cf353bcce1302207a0fe106 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 18:13:40 +0200 Subject: [PATCH 09/18] fix(sre-6980): use latest moongodb dependencies --- workable-Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workable-Dockerfile b/workable-Dockerfile index cbd6537..03cd6be 100644 --- a/workable-Dockerfile +++ b/workable-Dockerfile @@ -63,8 +63,8 @@ RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/ rm -rf /var/lib/apt/lists/* # hadolint ignore=DL3008 -RUN curl -fsSL https://www.mongodb.org/static/pgp/server-4.2.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ - echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list && \ +RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ + echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ apt-get update && \ apt-get install -y --no-install-recommends \ mongodb-org-shell && \ From c9a36303c2e272e814240e818eee1923acc557f9 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Mon, 2 Feb 2026 18:25:51 +0200 Subject: [PATCH 10/18] fix(sre-6980): add missing envvars --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10eb07b..55901e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,10 @@ jobs: push: false tags: Workable/alerta-base:${{ steps.container-info.outputs.image-tag }} provenance: false + build-args: | + BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + RELEASE=9.0.4 + VERSION=${{ steps.container-info.outputs.image-tag }} # DISTRIBUTION OF SRE IMAGE - name: Login to sre registry From 5e31bea4c250e24b161858bf20b8d83639727ecb Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Tue, 3 Feb 2026 06:54:00 +0200 Subject: [PATCH 11/18] fix(sre-6980): temporaryly commentout prod image upload (for testing) --- .github/workflows/ci.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55901e9..bc6ff31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,18 +116,18 @@ jobs: ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} docker push ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} - # DISTRIBUTION OF PRODUCTION IMAGE - - name: Login to production registry - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 - with: - registry: us-docker.pkg.dev - username: _json_key - password: ${{ secrets.PRODUCTION_GCR_SA }} - - - name: Push image to production registry - env: - REGISTRY: us-docker.pkg.dev/production-artifacts-0b0d/gcr.io - run: | - docker tag Workable/alerta-base:${{ steps.container-info.outputs.image-tag }} \ - ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} - docker push ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} + # # DISTRIBUTION OF PRODUCTION IMAGE + # - name: Login to production registry + # uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 + # with: + # registry: us-docker.pkg.dev + # username: _json_key + # password: ${{ secrets.PRODUCTION_GCR_SA }} + + # - name: Push image to production registry + # env: + # REGISTRY: us-docker.pkg.dev/production-artifacts-0b0d/gcr.io + # run: | + # docker tag Workable/alerta-base:${{ steps.container-info.outputs.image-tag }} \ + # ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} + # docker push ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} From 97ebb35e30f52c89ce5210c4ae33707b5261a00b Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Tue, 3 Feb 2026 07:36:15 +0200 Subject: [PATCH 12/18] chore(sre-6980): cleanup unused code --- .github/workflows/ci.yml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc6ff31..40d76ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,33 +29,7 @@ jobs: do_not_skip: '["workflow_dispatch", "schedule", "push"]' concurrent_skipping: false - # lint: - # runs-on: ubuntu-latest - # needs: detect-noop - # if: needs.detect-noop.outputs.noop != 'true' && github.ref != 'refs/heads/main' - # steps: - # - name: Checkout - # uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - - # - name: Lint Dockerfile - # run: make lint - - # unit-tests: - # runs-on: ubuntu-latest - # needs: detect-noop - # if: needs.detect-noop.outputs.noop != 'true' - # steps: - # - name: Checkout - # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - # - name: Run Unit Tests (Postgres) - # run: make test.unit BACKEND=postgres IMAGE_NAME=alerta-test - - # - name: Run Unit Tests (MongoDB) - # run: make test.unit BACKEND=mongodb IMAGE_NAME=alerta-test - publish-artifacts: - # needs: [lint, unit-tests] if: ${{ needs.detect-noop.outputs.noop != 'true' && startsWith(github.ref, 'refs/tags/workable-') }} permissions: id-token: write From 7eba783331d242e0f3da166f6034b50a57a62713 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Tue, 3 Feb 2026 07:40:05 +0200 Subject: [PATCH 13/18] chore(sre-6980): temporary changes to troubleshoot image upload --- workable-Dockerfile | 226 ++++++++++++++++++++++---------------------- 1 file changed, 113 insertions(+), 113 deletions(-) diff --git a/workable-Dockerfile b/workable-Dockerfile index 03cd6be..8281ebe 100644 --- a/workable-Dockerfile +++ b/workable-Dockerfile @@ -1,115 +1,115 @@ FROM python:3.9-slim-bookworm -ENV PYTHONUNBUFFERED=1 -ENV PIP_DISABLE_PIP_VERSION_CHECK=1 -ENV PIP_NO_CACHE_DIR=1 - -ARG BUILD_DATE -ARG RELEASE -ARG VERSION - -ENV SERVER_VERSION=${RELEASE} -ENV CLIENT_VERSION=8.5.3 -ENV WEBUI_VERSION=8.7.1 - -ENV NGINX_WORKER_PROCESSES=1 -ENV NGINX_WORKER_CONNECTIONS=1024 - -ENV UWSGI_PROCESSES=5 -ENV UWSGI_LISTEN=100 -ENV UWSGI_BUFFER_SIZE=8192 -ENV UWSGI_MAX_WORKER_LIFETIME=30 -ENV UWSGI_WORKER_LIFETIME_DELTA=3 - -ENV HEARTBEAT_SEVERITY=major -ENV HK_EXPIRED_DELETE_HRS=2 -ENV HK_INFO_DELETE_HRS=12 - -LABEL org.opencontainers.image.description="Alerta API (prod)" \ - org.opencontainers.image.created=$BUILD_DATE \ - org.opencontainers.image.url="https://github.com/alerta/alerta/pkgs/container/alerta-api" \ - org.opencontainers.image.source="https://github.com/alerta/alerta" \ - org.opencontainers.image.version=$RELEASE \ - org.opencontainers.image.revision=$VERSION \ - org.opencontainers.image.licenses=Apache-2.0 - -SHELL ["/bin/bash", "-o", "pipefail", "-c"] - -RUN apt-get update && \ - apt-get upgrade -y && \ - apt-get install -y --no-install-recommends \ - build-essential \ - curl \ - git \ - gnupg2 \ - libldap2-dev \ - libpq-dev \ - libsasl2-dev \ - postgresql-client \ - python3-dev \ - supervisor \ - xmlsec1 && \ - apt-get -y clean && \ - apt-get -y autoremove && \ - rm -rf /var/lib/apt/lists/* - -RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/share/keyrings/nginx-archive-keyring.gpg && \ - echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/debian/ bookworm nginx" | tee /etc/apt/sources.list.d/nginx.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - nginx && \ - apt-get -y clean && \ - apt-get -y autoremove && \ - rm -rf /var/lib/apt/lists/* - -# hadolint ignore=DL3008 -RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ - echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - mongodb-org-shell && \ - apt-get -y clean && \ - apt-get -y autoremove && \ - rm -rf /var/lib/apt/lists/* - -COPY requirements*.txt /app/ - -# hadolint ignore=DL3013 -RUN pip install --no-cache-dir pip virtualenv jinja2 && \ - python3 -m venv /venv && \ - /venv/bin/pip install --no-cache-dir --upgrade setuptools && \ - /venv/bin/pip install --no-cache-dir --requirement /app/requirements.txt && \ - /venv/bin/pip install --no-cache-dir --requirement /app/requirements-docker.txt -ENV PATH=$PATH:/venv/bin - -RUN /venv/bin/pip install alerta==${CLIENT_VERSION} alerta-server==${SERVER_VERSION} -COPY install-plugins.sh /app/install-plugins.sh -COPY plugins.txt /app/plugins.txt -RUN /app/install-plugins.sh - -ADD https://github.com/alerta/alerta-webui/releases/download/v${WEBUI_VERSION}/alerta-webui.tar.gz /tmp/webui.tar.gz -RUN tar zxvf /tmp/webui.tar.gz -C /tmp && \ - mv /tmp/dist /web - -ENV ALERTA_SVR_CONF_FILE=/app/alertad.conf -ENV ALERTA_CONF_FILE=/app/alerta.conf -ENV ALERTA_WEB_CONF_FILE=/web/config.json - -COPY config/templates/app/ /app -COPY config/templates/web/ /web - -RUN ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log - -RUN chgrp -R 0 /app /venv /web && \ - chmod -R g=u /app /venv /web && \ - useradd -u 1001 -g 0 -d /app alerta - -USER 1001 - -COPY docker-entrypoint.sh /usr/local/bin/ - -ENTRYPOINT ["docker-entrypoint.sh"] - -EXPOSE 8080 1717 -CMD ["supervisord", "-c", "/app/supervisord.conf"] +# ENV PYTHONUNBUFFERED=1 +# ENV PIP_DISABLE_PIP_VERSION_CHECK=1 +# ENV PIP_NO_CACHE_DIR=1 + +# ARG BUILD_DATE +# ARG RELEASE +# ARG VERSION + +# ENV SERVER_VERSION=${RELEASE} +# ENV CLIENT_VERSION=8.5.3 +# ENV WEBUI_VERSION=8.7.1 + +# ENV NGINX_WORKER_PROCESSES=1 +# ENV NGINX_WORKER_CONNECTIONS=1024 + +# ENV UWSGI_PROCESSES=5 +# ENV UWSGI_LISTEN=100 +# ENV UWSGI_BUFFER_SIZE=8192 +# ENV UWSGI_MAX_WORKER_LIFETIME=30 +# ENV UWSGI_WORKER_LIFETIME_DELTA=3 + +# ENV HEARTBEAT_SEVERITY=major +# ENV HK_EXPIRED_DELETE_HRS=2 +# ENV HK_INFO_DELETE_HRS=12 + +# LABEL org.opencontainers.image.description="Alerta API (prod)" \ +# org.opencontainers.image.created=$BUILD_DATE \ +# org.opencontainers.image.url="https://github.com/alerta/alerta/pkgs/container/alerta-api" \ +# org.opencontainers.image.source="https://github.com/alerta/alerta" \ +# org.opencontainers.image.version=$RELEASE \ +# org.opencontainers.image.revision=$VERSION \ +# org.opencontainers.image.licenses=Apache-2.0 + +# SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +# RUN apt-get update && \ +# apt-get upgrade -y && \ +# apt-get install -y --no-install-recommends \ +# build-essential \ +# curl \ +# git \ +# gnupg2 \ +# libldap2-dev \ +# libpq-dev \ +# libsasl2-dev \ +# postgresql-client \ +# python3-dev \ +# supervisor \ +# xmlsec1 && \ +# apt-get -y clean && \ +# apt-get -y autoremove && \ +# rm -rf /var/lib/apt/lists/* + +# RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/share/keyrings/nginx-archive-keyring.gpg && \ +# echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/debian/ bookworm nginx" | tee /etc/apt/sources.list.d/nginx.list && \ +# apt-get update && \ +# apt-get install -y --no-install-recommends \ +# nginx && \ +# apt-get -y clean && \ +# apt-get -y autoremove && \ +# rm -rf /var/lib/apt/lists/* + +# # hadolint ignore=DL3008 +# RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ +# echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ +# apt-get update && \ +# apt-get install -y --no-install-recommends \ +# mongodb-org-shell && \ +# apt-get -y clean && \ +# apt-get -y autoremove && \ +# rm -rf /var/lib/apt/lists/* + +# COPY requirements*.txt /app/ + +# # hadolint ignore=DL3013 +# RUN pip install --no-cache-dir pip virtualenv jinja2 && \ +# python3 -m venv /venv && \ +# /venv/bin/pip install --no-cache-dir --upgrade setuptools && \ +# /venv/bin/pip install --no-cache-dir --requirement /app/requirements.txt && \ +# /venv/bin/pip install --no-cache-dir --requirement /app/requirements-docker.txt +# ENV PATH=$PATH:/venv/bin + +# RUN /venv/bin/pip install alerta==${CLIENT_VERSION} alerta-server==${SERVER_VERSION} +# COPY install-plugins.sh /app/install-plugins.sh +# COPY plugins.txt /app/plugins.txt +# RUN /app/install-plugins.sh + +# ADD https://github.com/alerta/alerta-webui/releases/download/v${WEBUI_VERSION}/alerta-webui.tar.gz /tmp/webui.tar.gz +# RUN tar zxvf /tmp/webui.tar.gz -C /tmp && \ +# mv /tmp/dist /web + +# ENV ALERTA_SVR_CONF_FILE=/app/alertad.conf +# ENV ALERTA_CONF_FILE=/app/alerta.conf +# ENV ALERTA_WEB_CONF_FILE=/web/config.json + +# COPY config/templates/app/ /app +# COPY config/templates/web/ /web + +# RUN ln -sf /dev/stdout /var/log/nginx/access.log \ +# && ln -sf /dev/stderr /var/log/nginx/error.log + +# RUN chgrp -R 0 /app /venv /web && \ +# chmod -R g=u /app /venv /web && \ +# useradd -u 1001 -g 0 -d /app alerta + +# USER 1001 + +# COPY docker-entrypoint.sh /usr/local/bin/ + +# ENTRYPOINT ["docker-entrypoint.sh"] + +# EXPOSE 8080 1717 +# CMD ["supervisord", "-c", "/app/supervisord.conf"] From 534b1f45e8b89d7abff99175ae4f845b85e4550e Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Tue, 3 Feb 2026 07:55:49 +0200 Subject: [PATCH 14/18] feat(sre-6980): skip image push if creds are missing --- .github/workflows/ci.yml | 49 ++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40d76ab..5800123 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,13 @@ jobs: VERSION=${{ steps.container-info.outputs.image-tag }} # DISTRIBUTION OF SRE IMAGE + - name: Skip SRE registry push + if: ${{ secrets.SRE_GCR_SA == '' }} + run: | + echo "::warning title=SRE Registry Push Skipped::The SRE_GCR_SA secret is missing. Skipping image push to SRE registry." + - name: Login to sre registry + if: ${{ secrets.SRE_GCR_SA != '' }} uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: registry: us-docker.pkg.dev @@ -67,6 +73,7 @@ jobs: password: ${{ secrets.SRE_GCR_SA }} - name: Push image to sre registry + if: ${{ secrets.SRE_GCR_SA != '' }} env: REGISTRY: us-docker.pkg.dev/sre-artifacts-20e4/gcr.io run: | @@ -75,7 +82,13 @@ jobs: docker push ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} # DISTRIBUTION OF STAGING IMAGE + - name: Skip Staging registry push + if: ${{ secrets.STAGING_GCR_SA == '' }} + run: | + echo "::warning title=Staging Registry Push Skipped::The STAGING_GCR_SA secret is missing. Skipping image push to Staging registry." + - name: Login to staging registry + if: ${{ secrets.STAGING_GCR_SA != '' }} uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: registry: us-docker.pkg.dev @@ -83,6 +96,7 @@ jobs: password: ${{ secrets.STAGING_GCR_SA }} - name: Push image to staging registry + if: ${{ secrets.STAGING_GCR_SA != '' }} env: REGISTRY: us-docker.pkg.dev/staging-artifacts-786a/gcr.io run: | @@ -90,18 +104,25 @@ jobs: ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} docker push ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} - # # DISTRIBUTION OF PRODUCTION IMAGE - # - name: Login to production registry - # uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 - # with: - # registry: us-docker.pkg.dev - # username: _json_key - # password: ${{ secrets.PRODUCTION_GCR_SA }} + # DISTRIBUTION OF PRODUCTION IMAGE + - name: Skip Production registry push + if: ${{ secrets.PRODUCTION_GCR_SA == '' }} + run: | + echo "::warning title=Production Registry Push Skipped::The PRODUCTION_GCR_SA secret is missing. Skipping image push to Production registry." - # - name: Push image to production registry - # env: - # REGISTRY: us-docker.pkg.dev/production-artifacts-0b0d/gcr.io - # run: | - # docker tag Workable/alerta-base:${{ steps.container-info.outputs.image-tag }} \ - # ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} - # docker push ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} + - name: Login to production registry + if: ${{ secrets.PRODUCTION_GCR_SA != '' }} + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 + with: + registry: us-docker.pkg.dev + username: _json_key + password: ${{ secrets.PRODUCTION_GCR_SA }} + + - name: Push image to production registry + if: ${{ secrets.PRODUCTION_GCR_SA != '' }} + env: + REGISTRY: us-docker.pkg.dev/production-artifacts-0b0d/gcr.io + run: | + docker tag Workable/alerta-base:${{ steps.container-info.outputs.image-tag }} \ + ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} + docker push ${{ env.REGISTRY }}/alerta-base:${{ steps.container-info.outputs.image-tag }} From 68ba33bc07a21db08028ef0eb2af5a52dd3bb8f3 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Tue, 3 Feb 2026 08:04:17 +0200 Subject: [PATCH 15/18] feat(sre-6980): skip image push if creds are missing --- .github/workflows/ci.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5800123..a45c2b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,14 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Check secrets availability + id: secrets_check + shell: bash + run: | + echo "has_sre=${{ secrets.SRE_GCR_SA != '' }}" >> $GITHUB_OUTPUT + echo "has_staging=${{ secrets.STAGING_GCR_SA != '' }}" >> $GITHUB_OUTPUT + echo "has_production=${{ secrets.PRODUCTION_GCR_SA != '' }}" >> $GITHUB_OUTPUT + - name: Get image tag id: container-info run: | @@ -60,12 +68,12 @@ jobs: # DISTRIBUTION OF SRE IMAGE - name: Skip SRE registry push - if: ${{ secrets.SRE_GCR_SA == '' }} + if: ${{ steps.secrets_check.outputs.has_sre == 'false' }} run: | echo "::warning title=SRE Registry Push Skipped::The SRE_GCR_SA secret is missing. Skipping image push to SRE registry." - name: Login to sre registry - if: ${{ secrets.SRE_GCR_SA != '' }} + if: ${{ steps.secrets_check.outputs.has_sre == 'true' }} uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: registry: us-docker.pkg.dev @@ -73,7 +81,7 @@ jobs: password: ${{ secrets.SRE_GCR_SA }} - name: Push image to sre registry - if: ${{ secrets.SRE_GCR_SA != '' }} + if: ${{ steps.secrets_check.outputs.has_sre == 'true' }} env: REGISTRY: us-docker.pkg.dev/sre-artifacts-20e4/gcr.io run: | @@ -83,12 +91,12 @@ jobs: # DISTRIBUTION OF STAGING IMAGE - name: Skip Staging registry push - if: ${{ secrets.STAGING_GCR_SA == '' }} + if: ${{ steps.secrets_check.outputs.has_staging == 'false' }} run: | echo "::warning title=Staging Registry Push Skipped::The STAGING_GCR_SA secret is missing. Skipping image push to Staging registry." - name: Login to staging registry - if: ${{ secrets.STAGING_GCR_SA != '' }} + if: ${{ steps.secrets_check.outputs.has_staging == 'true' }} uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: registry: us-docker.pkg.dev @@ -96,7 +104,7 @@ jobs: password: ${{ secrets.STAGING_GCR_SA }} - name: Push image to staging registry - if: ${{ secrets.STAGING_GCR_SA != '' }} + if: ${{ steps.secrets_check.outputs.has_staging == 'true' }} env: REGISTRY: us-docker.pkg.dev/staging-artifacts-786a/gcr.io run: | @@ -106,12 +114,12 @@ jobs: # DISTRIBUTION OF PRODUCTION IMAGE - name: Skip Production registry push - if: ${{ secrets.PRODUCTION_GCR_SA == '' }} + if: ${{ steps.secrets_check.outputs.has_production == 'false' }} run: | echo "::warning title=Production Registry Push Skipped::The PRODUCTION_GCR_SA secret is missing. Skipping image push to Production registry." - name: Login to production registry - if: ${{ secrets.PRODUCTION_GCR_SA != '' }} + if: ${{ steps.secrets_check.outputs.has_production == 'true' }} uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: registry: us-docker.pkg.dev @@ -119,7 +127,7 @@ jobs: password: ${{ secrets.PRODUCTION_GCR_SA }} - name: Push image to production registry - if: ${{ secrets.PRODUCTION_GCR_SA != '' }} + if: ${{ steps.secrets_check.outputs.has_production == 'true' }} env: REGISTRY: us-docker.pkg.dev/production-artifacts-0b0d/gcr.io run: | From 7fd79b40316e47c0fb8ef3ba5ec3056ca50cee3c Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Tue, 3 Feb 2026 08:13:28 +0200 Subject: [PATCH 16/18] Revert "chore(sre-6980): temporary changes to troubleshoot image upload" This reverts commit 7eba783331d242e0f3da166f6034b50a57a62713. --- workable-Dockerfile | 226 ++++++++++++++++++++++---------------------- 1 file changed, 113 insertions(+), 113 deletions(-) diff --git a/workable-Dockerfile b/workable-Dockerfile index 8281ebe..03cd6be 100644 --- a/workable-Dockerfile +++ b/workable-Dockerfile @@ -1,115 +1,115 @@ FROM python:3.9-slim-bookworm -# ENV PYTHONUNBUFFERED=1 -# ENV PIP_DISABLE_PIP_VERSION_CHECK=1 -# ENV PIP_NO_CACHE_DIR=1 - -# ARG BUILD_DATE -# ARG RELEASE -# ARG VERSION - -# ENV SERVER_VERSION=${RELEASE} -# ENV CLIENT_VERSION=8.5.3 -# ENV WEBUI_VERSION=8.7.1 - -# ENV NGINX_WORKER_PROCESSES=1 -# ENV NGINX_WORKER_CONNECTIONS=1024 - -# ENV UWSGI_PROCESSES=5 -# ENV UWSGI_LISTEN=100 -# ENV UWSGI_BUFFER_SIZE=8192 -# ENV UWSGI_MAX_WORKER_LIFETIME=30 -# ENV UWSGI_WORKER_LIFETIME_DELTA=3 - -# ENV HEARTBEAT_SEVERITY=major -# ENV HK_EXPIRED_DELETE_HRS=2 -# ENV HK_INFO_DELETE_HRS=12 - -# LABEL org.opencontainers.image.description="Alerta API (prod)" \ -# org.opencontainers.image.created=$BUILD_DATE \ -# org.opencontainers.image.url="https://github.com/alerta/alerta/pkgs/container/alerta-api" \ -# org.opencontainers.image.source="https://github.com/alerta/alerta" \ -# org.opencontainers.image.version=$RELEASE \ -# org.opencontainers.image.revision=$VERSION \ -# org.opencontainers.image.licenses=Apache-2.0 - -# SHELL ["/bin/bash", "-o", "pipefail", "-c"] - -# RUN apt-get update && \ -# apt-get upgrade -y && \ -# apt-get install -y --no-install-recommends \ -# build-essential \ -# curl \ -# git \ -# gnupg2 \ -# libldap2-dev \ -# libpq-dev \ -# libsasl2-dev \ -# postgresql-client \ -# python3-dev \ -# supervisor \ -# xmlsec1 && \ -# apt-get -y clean && \ -# apt-get -y autoremove && \ -# rm -rf /var/lib/apt/lists/* - -# RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/share/keyrings/nginx-archive-keyring.gpg && \ -# echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/debian/ bookworm nginx" | tee /etc/apt/sources.list.d/nginx.list && \ -# apt-get update && \ -# apt-get install -y --no-install-recommends \ -# nginx && \ -# apt-get -y clean && \ -# apt-get -y autoremove && \ -# rm -rf /var/lib/apt/lists/* - -# # hadolint ignore=DL3008 -# RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ -# echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ -# apt-get update && \ -# apt-get install -y --no-install-recommends \ -# mongodb-org-shell && \ -# apt-get -y clean && \ -# apt-get -y autoremove && \ -# rm -rf /var/lib/apt/lists/* - -# COPY requirements*.txt /app/ - -# # hadolint ignore=DL3013 -# RUN pip install --no-cache-dir pip virtualenv jinja2 && \ -# python3 -m venv /venv && \ -# /venv/bin/pip install --no-cache-dir --upgrade setuptools && \ -# /venv/bin/pip install --no-cache-dir --requirement /app/requirements.txt && \ -# /venv/bin/pip install --no-cache-dir --requirement /app/requirements-docker.txt -# ENV PATH=$PATH:/venv/bin - -# RUN /venv/bin/pip install alerta==${CLIENT_VERSION} alerta-server==${SERVER_VERSION} -# COPY install-plugins.sh /app/install-plugins.sh -# COPY plugins.txt /app/plugins.txt -# RUN /app/install-plugins.sh - -# ADD https://github.com/alerta/alerta-webui/releases/download/v${WEBUI_VERSION}/alerta-webui.tar.gz /tmp/webui.tar.gz -# RUN tar zxvf /tmp/webui.tar.gz -C /tmp && \ -# mv /tmp/dist /web - -# ENV ALERTA_SVR_CONF_FILE=/app/alertad.conf -# ENV ALERTA_CONF_FILE=/app/alerta.conf -# ENV ALERTA_WEB_CONF_FILE=/web/config.json - -# COPY config/templates/app/ /app -# COPY config/templates/web/ /web - -# RUN ln -sf /dev/stdout /var/log/nginx/access.log \ -# && ln -sf /dev/stderr /var/log/nginx/error.log - -# RUN chgrp -R 0 /app /venv /web && \ -# chmod -R g=u /app /venv /web && \ -# useradd -u 1001 -g 0 -d /app alerta - -# USER 1001 - -# COPY docker-entrypoint.sh /usr/local/bin/ - -# ENTRYPOINT ["docker-entrypoint.sh"] - -# EXPOSE 8080 1717 -# CMD ["supervisord", "-c", "/app/supervisord.conf"] +ENV PYTHONUNBUFFERED=1 +ENV PIP_DISABLE_PIP_VERSION_CHECK=1 +ENV PIP_NO_CACHE_DIR=1 + +ARG BUILD_DATE +ARG RELEASE +ARG VERSION + +ENV SERVER_VERSION=${RELEASE} +ENV CLIENT_VERSION=8.5.3 +ENV WEBUI_VERSION=8.7.1 + +ENV NGINX_WORKER_PROCESSES=1 +ENV NGINX_WORKER_CONNECTIONS=1024 + +ENV UWSGI_PROCESSES=5 +ENV UWSGI_LISTEN=100 +ENV UWSGI_BUFFER_SIZE=8192 +ENV UWSGI_MAX_WORKER_LIFETIME=30 +ENV UWSGI_WORKER_LIFETIME_DELTA=3 + +ENV HEARTBEAT_SEVERITY=major +ENV HK_EXPIRED_DELETE_HRS=2 +ENV HK_INFO_DELETE_HRS=12 + +LABEL org.opencontainers.image.description="Alerta API (prod)" \ + org.opencontainers.image.created=$BUILD_DATE \ + org.opencontainers.image.url="https://github.com/alerta/alerta/pkgs/container/alerta-api" \ + org.opencontainers.image.source="https://github.com/alerta/alerta" \ + org.opencontainers.image.version=$RELEASE \ + org.opencontainers.image.revision=$VERSION \ + org.opencontainers.image.licenses=Apache-2.0 + +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y --no-install-recommends \ + build-essential \ + curl \ + git \ + gnupg2 \ + libldap2-dev \ + libpq-dev \ + libsasl2-dev \ + postgresql-client \ + python3-dev \ + supervisor \ + xmlsec1 && \ + apt-get -y clean && \ + apt-get -y autoremove && \ + rm -rf /var/lib/apt/lists/* + +RUN curl -fsSL https://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/share/keyrings/nginx-archive-keyring.gpg && \ + echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/debian/ bookworm nginx" | tee /etc/apt/sources.list.d/nginx.list && \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + nginx && \ + apt-get -y clean && \ + apt-get -y autoremove && \ + rm -rf /var/lib/apt/lists/* + +# hadolint ignore=DL3008 +RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \ + echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + mongodb-org-shell && \ + apt-get -y clean && \ + apt-get -y autoremove && \ + rm -rf /var/lib/apt/lists/* + +COPY requirements*.txt /app/ + +# hadolint ignore=DL3013 +RUN pip install --no-cache-dir pip virtualenv jinja2 && \ + python3 -m venv /venv && \ + /venv/bin/pip install --no-cache-dir --upgrade setuptools && \ + /venv/bin/pip install --no-cache-dir --requirement /app/requirements.txt && \ + /venv/bin/pip install --no-cache-dir --requirement /app/requirements-docker.txt +ENV PATH=$PATH:/venv/bin + +RUN /venv/bin/pip install alerta==${CLIENT_VERSION} alerta-server==${SERVER_VERSION} +COPY install-plugins.sh /app/install-plugins.sh +COPY plugins.txt /app/plugins.txt +RUN /app/install-plugins.sh + +ADD https://github.com/alerta/alerta-webui/releases/download/v${WEBUI_VERSION}/alerta-webui.tar.gz /tmp/webui.tar.gz +RUN tar zxvf /tmp/webui.tar.gz -C /tmp && \ + mv /tmp/dist /web + +ENV ALERTA_SVR_CONF_FILE=/app/alertad.conf +ENV ALERTA_CONF_FILE=/app/alerta.conf +ENV ALERTA_WEB_CONF_FILE=/web/config.json + +COPY config/templates/app/ /app +COPY config/templates/web/ /web + +RUN ln -sf /dev/stdout /var/log/nginx/access.log \ + && ln -sf /dev/stderr /var/log/nginx/error.log + +RUN chgrp -R 0 /app /venv /web && \ + chmod -R g=u /app /venv /web && \ + useradd -u 1001 -g 0 -d /app alerta + +USER 1001 + +COPY docker-entrypoint.sh /usr/local/bin/ + +ENTRYPOINT ["docker-entrypoint.sh"] + +EXPOSE 8080 1717 +CMD ["supervisord", "-c", "/app/supervisord.conf"] From 209767b6f2c26e3cc50e3368c52118dde4f6d478 Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Tue, 3 Feb 2026 17:06:18 +0200 Subject: [PATCH 17/18] fix(sre-6980): update mongo version check commands --- docker-entrypoint.sh | 2 +- workable-Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c77a24e..8c00b2a 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -89,7 +89,7 @@ echo Alerta WebUI ${WEBUI_VERSION} nginx -v echo uwsgi $(uwsgi --version) -mongo --version | grep MongoDB +mongosh --version psql --version python3 --version /venv/bin/pip list diff --git a/workable-Dockerfile b/workable-Dockerfile index 03cd6be..fe86cfa 100644 --- a/workable-Dockerfile +++ b/workable-Dockerfile @@ -67,7 +67,7 @@ RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ apt-get update && \ apt-get install -y --no-install-recommends \ - mongodb-org-shell && \ + mongodb-mongosh && \ apt-get -y clean && \ apt-get -y autoremove && \ rm -rf /var/lib/apt/lists/* From 076473312723da20a95d5b94a2b317588e98489c Mon Sep 17 00:00:00 2001 From: Dimitris Aloupis Date: Wed, 4 Feb 2026 11:58:30 +0200 Subject: [PATCH 18/18] chore(sre-6980): cleanup file after testing --- throwawayfile.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 throwawayfile.txt diff --git a/throwawayfile.txt b/throwawayfile.txt deleted file mode 100644 index 21b7bf1..0000000 --- a/throwawayfile.txt +++ /dev/null @@ -1 +0,0 @@ -Mon Feb 2 17:28:32 EET 2026