From 13715fb85174ee0a973744c2b32433829d401573 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 27 Dec 2018 15:15:33 -0800 Subject: [PATCH] adjust docker builds --- docker/Dockerfile | 1 + docker/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6b6a9d47a..e7cddd72a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,5 +25,6 @@ VOLUME /data COPY filer.toml /etc/seaweedfs/filer.toml COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +RUN mkdir -p /data/filerdb ENTRYPOINT ["/entrypoint.sh"] diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 1c47c57f2..660e51766 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -33,7 +33,7 @@ case "$1" in if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT" fi - exec /bin/mkdir -p /data/filerdb; /usr/bin/weed $@ $ARGS + exec /usr/bin/weed $@ $ARGS ;; 's3')