aboutsummaryrefslogtreecommitdiff
path: root/docker/entrypoint.sh
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-06-01 15:58:44 -0700
committerGitHub <noreply@github.com>2022-06-01 15:58:44 -0700
commitff5b96f0be266b3abbcede387d665865274a67ab (patch)
tree1c9e103a421ce26270106d7fa8eca2be895cd41c /docker/entrypoint.sh
parente152dc8faeb329613c959de7964fd08f04344245 (diff)
parent47d335cf8cbe9bdbb3929281271c34953cba5588 (diff)
downloadseaweedfs-ff5b96f0be266b3abbcede387d665865274a67ab.tar.xz
seaweedfs-ff5b96f0be266b3abbcede387d665865274a67ab.zip
Merge pull request #3135 from kaiwalyajoshi/kjoshi/add-docker-shell-input
feat: Send commands to weed shell from the docker image.
Diffstat (limited to 'docker/entrypoint.sh')
-rwxr-xr-xdocker/entrypoint.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 6818d9581..80a7fe586 100755
--- a/docker/entrypoint.sh
+++ b/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 $@
;;