From 3078cb96a9b262bcf1d60df507b8b0a616db70f3 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 26 Dec 2018 20:46:07 -0800 Subject: [PATCH] docker filer default to /data/filerdb --- docker/README.md | 15 ++++++++++++++- docker/entrypoint.sh | 3 ++- docker/filer.toml | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docker/README.md b/docker/README.md index 571cdcf14..31d88a3de 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,8 +1,21 @@ # Docker -## Development + +## Try it out + +```bash + +wget https://github.com/chrislusf/seaweedfs/blob/master/docker/docker-compose.yml + +docker-compose -f docker-compose.yml up ``` + +## Development + +```bash +cd $GOPATH/src/github.com/chrislusf/seaweedfs/docker + docker build - < Dockerfile.go_build docker-compose -f docker-compose.yml up diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 6310e3337..7a2b60623 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -29,7 +29,8 @@ case "$1" in ;; 'filer') - ARGS="-ip `hostname -i`" + exec mkdir /data/filerdb + ARGS="-ip `hostname -i` " if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT" fi diff --git a/docker/filer.toml b/docker/filer.toml index 35db3d012..5bf809cd8 100644 --- a/docker/filer.toml +++ b/docker/filer.toml @@ -1,3 +1,3 @@ [leveldb] enabled = true -dir = "." +dir = "/data/filerdb"