mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
add watchdog image
This commit is contained in:
parent
58d7a2f9e2
commit
a748e1f225
@ -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:
|
||||
|
2
Makefile
2
Makefile
@ -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
1
watchdog/.version
Normal file
@ -0,0 +1 @@
|
||||
VERSION=5.15-2
|
8
watchdog/Dockerfile
Normal file
8
watchdog/Dockerfile
Normal 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
13
watchdog/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user