aboutsummaryrefslogtreecommitdiff
path: root/docker/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/entrypoint.sh')
-rwxr-xr-xdocker/entrypoint.sh8
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 $@
;;