diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-06-01 15:58:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-01 15:58:44 -0700 |
| commit | ff5b96f0be266b3abbcede387d665865274a67ab (patch) | |
| tree | 1c9e103a421ce26270106d7fa8eca2be895cd41c | |
| parent | e152dc8faeb329613c959de7964fd08f04344245 (diff) | |
| parent | 47d335cf8cbe9bdbb3929281271c34953cba5588 (diff) | |
| download | seaweedfs-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.
| -rwxr-xr-x | docker/entrypoint.sh | 6 |
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 $@ ;; |
