Browse Source

docker filer default to /data/filerdb

pull/809/head
Chris Lu 6 years ago
parent
commit
3078cb96a9
  1. 15
      docker/README.md
  2. 1
      docker/entrypoint.sh
  3. 2
      docker/filer.toml

15
docker/README.md

@ -1,8 +1,21 @@
# Docker # 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 build - < Dockerfile.go_build
docker-compose -f docker-compose.yml up docker-compose -f docker-compose.yml up

1
docker/entrypoint.sh

@ -29,6 +29,7 @@ case "$1" in
;; ;;
'filer') 'filer')
exec mkdir /data/filerdb
ARGS="-ip `hostname -i` " 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"

2
docker/filer.toml

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