From 947fe4cc97abe1e7d166bb8efb8e01e54e09ae5c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 12 Nov 2021 17:21:49 -0800 Subject: [PATCH] docker: entry point change working directory from root to /data --- docker/Dockerfile | 1 + docker/Dockerfile.gccgo_build | 1 + docker/Dockerfile.go_build | 1 + docker/Dockerfile.go_build_large | 1 + docker/Dockerfile.local | 1 + docker/Dockerfile.rocksdb_large | 2 ++ 6 files changed, 7 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index d2c365c29..68bb6fe49 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -48,6 +48,7 @@ EXPOSE 7333 RUN mkdir -p /data/filerldb2 VOLUME /data +WORKDIR /data COPY filer.toml /etc/seaweedfs/filer.toml COPY entrypoint.sh /entrypoint.sh diff --git a/docker/Dockerfile.gccgo_build b/docker/Dockerfile.gccgo_build index e42a593cb..90cdf352f 100644 --- a/docker/Dockerfile.gccgo_build +++ b/docker/Dockerfile.gccgo_build @@ -37,6 +37,7 @@ EXPOSE 7333 RUN mkdir -p /data/filerldb2 VOLUME /data +WORKDIR /data RUN chmod +x /entrypoint.sh diff --git a/docker/Dockerfile.go_build b/docker/Dockerfile.go_build index 6354fc536..338a8e296 100644 --- a/docker/Dockerfile.go_build +++ b/docker/Dockerfile.go_build @@ -36,6 +36,7 @@ EXPOSE 7333 RUN mkdir -p /data/filerldb2 VOLUME /data +WORKDIR /data RUN chmod +x /entrypoint.sh diff --git a/docker/Dockerfile.go_build_large b/docker/Dockerfile.go_build_large index b5791bf9f..f831c4474 100644 --- a/docker/Dockerfile.go_build_large +++ b/docker/Dockerfile.go_build_large @@ -36,6 +36,7 @@ EXPOSE 7333 RUN mkdir -p /data/filerldb2 VOLUME /data +WORKDIR /data RUN chmod +x /entrypoint.sh diff --git a/docker/Dockerfile.local b/docker/Dockerfile.local index 0a85c56f0..947edffda 100644 --- a/docker/Dockerfile.local +++ b/docker/Dockerfile.local @@ -26,6 +26,7 @@ EXPOSE 7333 RUN mkdir -p /data/filerldb2 VOLUME /data +WORKDIR /data RUN chmod +x /entrypoint.sh diff --git a/docker/Dockerfile.rocksdb_large b/docker/Dockerfile.rocksdb_large index f3bc7eb7d..b5d569f44 100644 --- a/docker/Dockerfile.rocksdb_large +++ b/docker/Dockerfile.rocksdb_large @@ -54,6 +54,8 @@ RUN mkdir -p /data/filerldb2 VOLUME /data +WORKDIR /data + RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]