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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
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 $@ |
|
|
|
;; |
|
|
|