From 52991f937a0f75c295d2efd9f090937ecb2d5890 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Fri, 16 Sep 2022 11:00:50 +0200 Subject: [PATCH] rsyncd image --- rsyncd/Dockerfile | 5 +++++ rsyncd/Makefile | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 rsyncd/Dockerfile create mode 100644 rsyncd/Makefile diff --git a/rsyncd/Dockerfile b/rsyncd/Dockerfile new file mode 100644 index 0000000..bd9ef73 --- /dev/null +++ b/rsyncd/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:3.16 + +RUN apk add --no-cache rsync + +CMD ["/usr/bin/rsync", "--daemon", "--no-detach", "--config", "/etc/rsyncd.conf"] diff --git a/rsyncd/Makefile b/rsyncd/Makefile new file mode 100644 index 0000000..3419c97 --- /dev/null +++ b/rsyncd/Makefile @@ -0,0 +1,19 @@ +IMG_NAME=rsyncd +REGISTRY=registry.monotremata.xyz +IMG=$(REGISTRY)/$(IMG_NAME) +PLATFORMS=linux/amd64,linux/arm64 + +.PHONY: build push buildx + +build: Dockerfile + docker build -t $(IMG) . + +push: build + docker image push $(IMG) + +buildx: Dockerfile + docker buildx build \ + --platform $(PLATFORMS) \ + --tag $(IMG) \ + --push \ + .