Browse Source

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

feat: Send commands to weed shell from the docker image.
pull/3140/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
ff5b96f0be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docker/entrypoint.sh

6
docker/entrypoint.sh

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

Loading…
Cancel
Save