add watchdog image

This commit is contained in:
Adrien le Maire 2020-08-28 14:48:19 +02:00
parent 58d7a2f9e2
commit a748e1f225
5 changed files with 43 additions and 1 deletions

View File

@ -7,6 +7,26 @@ variables:
DOCKER_BUILDKIT: 1
dev-watchdog:
stage: build
tags:
- docker
script:
- make watchdog-nopush
only:
variables:
- $CI_COMMIT_REF_PROTECTED == "false"
watchdog:
stage: build
tags:
- docker
script:
- make watchdog
only:
variables:
- $CI_COMMIT_REF_PROTECTED == "true"
dev-unifi:
stage: build
tags:

View File

@ -1,5 +1,5 @@
.DEFAULT: all
.PHONY: mc keycloak pgadmin4 unifi
.PHONY: mc keycloak pgadmin4 unifi watchdog
all: mc keycloak pgadmin4 unifi

1
watchdog/.version Normal file
View File

@ -0,0 +1 @@
VERSION=5.15-2

8
watchdog/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM debian:buster-20200803-slim
ARG DEBIAN_FRONTEND=noninteractive
ARG VERSION
RUN apt update -qq && \
apt install -qqy --no-install-recommends watchdog=$VERSION && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/sbin/watchdog", "-F"]

13
watchdog/Makefile Normal file
View File

@ -0,0 +1,13 @@
include watchdog/.version
watchdog-nopush:
docker buildx build --platform linux/amd64 --load \
--build-arg MC_VERSION=$(VERSION) \
--tag alemairebe/watchdog:$(VERSION) watchdog
watchdog:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
--build-arg MC_VERSION=$(VERSION) \
--cache-from=type=registry,ref=alemairebe/watchdog \
--cache-to=type=registry,ref=alemairebe/watchdog \
--tag alemairebe/watchdog:$(VERSION) watchdog