docker filer default to /data/filerdb

This commit is contained in:
Chris Lu 2018-12-26 20:46:07 -08:00
parent cf67cf29a1
commit 3078cb96a9
3 changed files with 17 additions and 3 deletions

View file

@ -1,8 +1,21 @@
# Docker # Docker
## Try it out
```bash
wget https://github.com/chrislusf/seaweedfs/blob/master/docker/docker-compose.yml
docker-compose -f docker-compose.yml up
```
## Development ## Development
``` ```bash
cd $GOPATH/src/github.com/chrislusf/seaweedfs/docker
docker build - < Dockerfile.go_build docker build - < Dockerfile.go_build
docker-compose -f docker-compose.yml up docker-compose -f docker-compose.yml up

View file

@ -29,7 +29,8 @@ case "$1" in
;; ;;
'filer') 'filer')
ARGS="-ip `hostname -i`" exec mkdir /data/filerdb
ARGS="-ip `hostname -i` "
if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then
ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT" ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT"
fi fi

View file

@ -1,3 +1,3 @@
[leveldb] [leveldb]
enabled = true enabled = true
dir = "." dir = "/data/filerdb"