agate
parent
12f8ce5852
commit
b89904e84f
5
Makefile
5
Makefile
|
@ -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)
|
.PHONY: all $(images)
|
||||||
all: $(images)
|
all: $(images)
|
||||||
|
|
||||||
BUILD = make -C $@
|
BUILD = make -C $@
|
||||||
|
|
||||||
|
agate:
|
||||||
|
$(BUILD)
|
||||||
|
|
||||||
ansible:
|
ansible:
|
||||||
$(BUILD)
|
$(BUILD)
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ useful.
|
||||||
|
|
||||||
(many are self-explanatory)
|
(many are self-explanatory)
|
||||||
|
|
||||||
|
* agate
|
||||||
* ansible
|
* ansible
|
||||||
* backup: simple image used in some of my backup daemons
|
* backup: simple image used in some of my backup daemons
|
||||||
* buku: buku and bukuserver
|
* buku: buku and bukuserver
|
||||||
|
|
|
@ -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"]
|
|
@ -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) .
|
Loading…
Reference in New Issue