From a4e8aa98a0cf0581140a93b6233bc11d4a3f123e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 15 Mar 2019 00:32:42 -0700 Subject: [PATCH] weed server: mkdir first, and set the master ip address fix https://github.com/chrislusf/seaweedfs/issues/885 --- docker/Dockerfile | 3 ++- weed/command/server.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b78f1677a..75efc7ec0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,10 +22,11 @@ EXPOSE 9333 # s3 server http port EXPOSE 8333 +RUN mkdir -p /data/filerdb + VOLUME /data COPY filer.toml /etc/seaweedfs/filer.toml -RUN mkdir /data/filerdb COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/weed/command/server.go b/weed/command/server.go index 32b9f6987..cc63c96e1 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -115,6 +115,7 @@ func runServer(cmd *Command, args []string) bool { } master := *serverIp + ":" + strconv.Itoa(*masterPort) + filerOptions.masters = &master filerOptions.ip = serverIp serverOptions.v.ip = serverIp serverOptions.v.bindIp = serverBindIp