add filer to docker-compose and entrypoint, build from local Dockerfile

This commit is contained in:
jenkins.ow
2018-09-11 12:36:59 -07:00
parent 43ff60cb23
commit bc025d5305
3 changed files with 25 additions and 3 deletions

View File

@@ -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 $@
;;