diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-05-22 10:37:04 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-05-22 10:37:04 -0700 |
| commit | ab4c9ac22104b1bf0df53f2c8b46d80e3f143665 (patch) | |
| tree | 19a4eaf958df7f8ec7aae10c3a5be1a9bfec2878 | |
| parent | 1e64dbcb98523530a340abbd35c3d641242b2683 (diff) | |
| download | seaweedfs-ab4c9ac22104b1bf0df53f2c8b46d80e3f143665.tar.xz seaweedfs-ab4c9ac22104b1bf0df53f2c8b46d80e3f143665.zip | |
allow optionally change volume max count
| -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 b9202d4d3..05db7a672 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -9,11 +9,17 @@ case "$1" in 'volume') ARGS="-dir=/data -max=0" + if [[ $@ == *"-max="* ]]; then + ARGS="-dir=/data" + fi exec /usr/bin/weed $@ $ARGS ;; 'server') ARGS="-dir=/data -volume.max=0 -master.volumePreallocate -master.volumeSizeLimitMB=1024" + if [[ $@ == *"-volume.max="* ]]; then + ARGS="-dir=/data -master.volumePreallocate -master.volumeSizeLimitMB=1024" + fi exec /usr/bin/weed $@ $ARGS ;; |
