Merge pull request #3135 from kaiwalyajoshi/kjoshi/add-docker-shell-input

feat: Send commands to weed shell from the docker image.
This commit is contained in:
Chris Lu 2022-06-01 15:58:44 -07:00 committed by GitHub
commit ff5b96f0be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,12 @@ case "$1" in
exec /usr/bin/weed -logtostderr=true s3 $ARGS $@
;;
'shell')
ARGS="-cluster=$SHELL_CLUSTER -filer=$SHELL_FILER -filerGroup=$SHELL_FILER_GROUP -master=$SHELL_MASTER -options=$SHELL_OPTIONS"
shift
exec echo "$@" | /usr/bin/weed -logtostderr=true shell $ARGS
;;
*)
exec /usr/bin/weed $@
;;