main
Ricard Illa 2021-02-17 18:06:08 +01:00
parent 12f8ce5852
commit b89904e84f
4 changed files with 36 additions and 1 deletions

View File

@ -1,9 +1,12 @@
images=ansible backup buku ddclient git-daemon gitolite gitolite-pystagit rss-bridge sassc syncthing tasks tor vdirsyncer xandikos
images=agate ansible backup buku ddclient git-daemon gitolite gitolite-pystagit rss-bridge sassc syncthing tasks tor vdirsyncer xandikos
.PHONY: all $(images)
all: $(images)
BUILD = make -C $@
agate:
$(BUILD)
ansible:
$(BUILD)

View File

@ -15,6 +15,7 @@ useful.
(many are self-explanatory)
* agate
* ansible
* backup: simple image used in some of my backup daemons
* buku: buku and bukuserver

21
agate/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM alpine:3.13
RUN apk add --no-cache --virtual .build-deps cargo && \
apk add --no-cache libgcc && \
cargo install agate && \
apk del .build-deps && \
mv /root/.cargo/bin/agate /usr/local/bin/agate && \
addgroup \
--gid 10001 \
agate && \
adduser \
--uid 10000 \
--home /srv \
--ingroup agate \
--disabled-password \
--shell /sbin/nologin \
agate
WORKDIR /srv
USER agate
ENTRYPOINT ["agate"]

10
agate/Makefile Normal file
View File

@ -0,0 +1,10 @@
USERNAME = rilla
IMG_NAME = agate
.PHONY: build build-nc
build: Dockerfile
docker build -t $(USERNAME)/$(IMG_NAME) .
build-nc: Dockerfile
docker build --no-cache -t $(USERNAME)/$(IMG_NAME) .