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

This commit is contained in:
jenkins.ow committed 2018-09-11 12:37:27 -07:00
1 parent 43ff60cb23
commit bc025d5305
3 files changed
+25 -3

No files matched your search

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