diff options
| author | jenkins.ow <jenkins@outwardinc.com> | 2018-09-11 12:36:59 -0700 |
|---|---|---|
| committer | jenkins.ow <jenkins@outwardinc.com> | 2018-09-11 12:37:27 -0700 |
| commit | bc025d53055066d20ee6cf02ff4d7a30527831fe (patch) | |
| tree | 10631a8e6bcebf538086df47857bdccaa32935a8 /docker/entrypoint.sh | |
| parent | 43ff60cb23938ee36aa2fecbaba02c5040184ef5 (diff) | |
| download | seaweedfs-bc025d53055066d20ee6cf02ff4d7a30527831fe.tar.xz seaweedfs-bc025d53055066d20ee6cf02ff4d7a30527831fe.zip | |
add filer to docker-compose and entrypoint, build from local Dockerfile
Diffstat (limited to 'docker/entrypoint.sh')
| -rwxr-xr-x | docker/entrypoint.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 34ab61148..6fd97ad9b 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -28,6 +28,14 @@ case "$1" in exec /usr/bin/weed $@ $ARGS ;; + 'filer') + 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 + exec /usr/bin/weed $@ $ARGS + ;; + *) exec /usr/bin/weed $@ ;; |
