Skip to content

Commit

Permalink
Merge pull request #133 from jelmer/docker
Browse files Browse the repository at this point in the history
Update docker image
  • Loading branch information
jelmer authored Feb 28, 2025
2 parents f90a3ab + 5e55e09 commit 7fb9f2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM docker.io/debian:sid-slim
LABEL maintainer="[email protected]"

RUN apt -y update && apt --no-install-recommends -y install prometheus-alertmanager python3-pip
RUN apt -y update && apt --no-install-recommends -y dist-upgrade
RUN apt -y update && apt --no-install-recommends -y install prometheus-alertmanager python3-pip python3-slixmpp python3-aiohttp python3-pytz python3-yaml python3-aiohttp-openmetrics python3-jinja2 python3-bs4

COPY . .
RUN pip3 install --break-system-packages .
Expand Down
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PYTHON = python3
PYTHON ?= python3
DOCKER ?= docker

all: check ruff

Expand All @@ -14,6 +15,6 @@ typing:
.PHONY: all ruff check

docker:
buildah build -t docker.io/jvernooij/prometheus-xmpp-alerts -t ghcr.io/jelmer/prometheus-xmpp-alerts .
buildah push docker.io/jvernooij/prometheus-xmpp-alerts
buildah push ghcr.io/jelmer/prometheus-xmpp-alerts
$(DOCKER) build -t docker.io/jvernooij/prometheus-xmpp-alerts -t ghcr.io/jelmer/prometheus-xmpp-alerts .
$(DOCKER) push docker.io/jvernooij/prometheus-xmpp-alerts
$(DOCKER) push ghcr.io/jelmer/prometheus-xmpp-alerts

0 comments on commit 7fb9f2f

Please sign in to comment.