From 820be8c203a14e7343cfd3a967de6ad4eb8b062e Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 20 Dec 2019 08:37:45 -0800 Subject: [PATCH] [ansible] move docker images, add minio image --- ansible/{ => docker}/ddclient/Dockerfile | 0 ansible/docker/minio/Dockerfile | 13 +++++++++++++ ansible/{ => docker}/syncthing/Dockerfile | 3 +++ 3 files changed, 16 insertions(+) rename ansible/{ => docker}/ddclient/Dockerfile (100%) create mode 100644 ansible/docker/minio/Dockerfile rename ansible/{ => docker}/syncthing/Dockerfile (91%) diff --git a/ansible/ddclient/Dockerfile b/ansible/docker/ddclient/Dockerfile similarity index 100% rename from ansible/ddclient/Dockerfile rename to ansible/docker/ddclient/Dockerfile diff --git a/ansible/docker/minio/Dockerfile b/ansible/docker/minio/Dockerfile new file mode 100644 index 0000000..f310335 --- /dev/null +++ b/ansible/docker/minio/Dockerfile @@ -0,0 +1,13 @@ +FROM armhf/alpine + +RUN apk update && apk upgrade && \ + apk add curl + +RUN curl --location --remote-name https://dl.min.io/server/minio/release/linux-arm/minio && \ + chmod +x minio && \ + mv minio /usr/sbin + +EXPOSE 9000 +VOLUME /data + +ENTRYPOINT [ "minio", "server", "/data" ] diff --git a/ansible/syncthing/Dockerfile b/ansible/docker/syncthing/Dockerfile similarity index 91% rename from ansible/syncthing/Dockerfile rename to ansible/docker/syncthing/Dockerfile index 02ffe50..820cf1d 100644 --- a/ansible/syncthing/Dockerfile +++ b/ansible/docker/syncthing/Dockerfile @@ -8,4 +8,7 @@ RUN curl --location --remote-name https://github.com/syncthing/syncthing/release mv syncthing-linux-arm-v1.3.2/syncthing /usr/sbin && \ mkdir /etc/syncthing +RUN adduser -D syncthing +USER syncthing + ENTRYPOINT [ "syncthing", "-gui-address=0.0.0.0:8384", "-home=/etc/syncthing" ]