From c7e339c5a3816f41610550e7d1e6a58b5aaabafd Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sat, 22 May 2021 19:55:23 +0200 Subject: [PATCH] filite --- Makefile | 5 ++++- README.md | 1 + filite/Dockerfile | 22 ++++++++++++++++++++++ filite/Makefile | 10 ++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 filite/Dockerfile create mode 100644 filite/Makefile diff --git a/Makefile b/Makefile index 9779b5c..8c8e510 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -images=agate archivebox ansible backup buku ddclient git-daemon gitolite gitolite-pystagit rss-bridge pleroma sassc syncthing tasks tor transmission vdirsyncer xandikos nfs-server dendrite rainloop monero +images=agate archivebox ansible backup buku ddclient git-daemon gitolite gitolite-pystagit rss-bridge pleroma sassc syncthing tasks tor transmission vdirsyncer xandikos nfs-server dendrite rainloop monero filite .PHONY: all $(images) all: $(images) @@ -70,3 +70,6 @@ rainloop: monero: $(BUILD) + +filite: + $(BUILD) diff --git a/README.md b/README.md index 9cf32fd..d18f4e3 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ useful. * buku: buku and bukuserver * ddclient * dendrite +* filite * git-daemon: for git-daemon and git-http-backend * gitolite-pystagit: well, gitolite + pystagit * gitolite: gitolite + docker, so that I can mount the docker socket inside of diff --git a/filite/Dockerfile b/filite/Dockerfile new file mode 100644 index 0000000..55a8f6b --- /dev/null +++ b/filite/Dockerfile @@ -0,0 +1,22 @@ +FROM alpine:3.13 + +RUN apk add --no-cache --virtual .build-deps cargo && \ + apk add --no-cache libgcc && \ + cargo install filite && \ + apk del .build-deps && \ + mv /root/.cargo/bin/filite /usr/local/bin/filite && \ + rm -r /root/.cargo && \ + addgroup \ + --gid 10001 \ + filite && \ + adduser \ + --uid 10000 \ + --home /var/lib/filite \ + --ingroup filite \ + --disabled-password \ + --shell /sbin/nologin \ + filite + +WORKDIR /var/lib/filite +USER filite +ENTRYPOINT ["/usr/local/bin/filite"] diff --git a/filite/Makefile b/filite/Makefile new file mode 100644 index 0000000..027a6dc --- /dev/null +++ b/filite/Makefile @@ -0,0 +1,10 @@ +USERNAME = rilla +IMG_NAME = filite + +.PHONY: build build-nc + +build: Dockerfile + docker build -t $(USERNAME)/$(IMG_NAME) . + +build-nc: Dockerfile + docker build --no-cache -t $(USERNAME)/$(IMG_NAME) .