SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
POSIX shell compatibility
userd11643277585
diff --git a/docker/entrypoint.sh b/docker/entrypoint.shindex 05db7a672e..427576bcf0 100755--- a/docker/entrypoint.sh+++ b/docker/entrypoint.sh@@ -1,5 +1,24 @@#!/bin/sh+isArgPassed() {+ arg="$1"+ argWithEqualSign="$1="+ shift+ while [ $# -gt 0 ]; do+ passedArg="$1"+ shift+ case $passedArg in+ $arg)+ return 0+ ;;+ $argWithEqualSign*)+ return 0+ ;;+ esac+ done+ return 1+}+case "$1" in'master')@@ -9,7 +28,7 @@ case "$1" in'volume')ARGS="-dir=/data -max=0"- if [[ $@ == *"-max="* ]]; then+ if isArgPassed "-max" "$@"; thenARGS="-dir=/data"fiexec /usr/bin/weed $@ $ARGS@@ -17,7 +36,7 @@ case "$1" in'server')ARGS="-dir=/data -volume.max=0 -master.volumePreallocate -master.volumeSizeLimitMB=1024"- if [[ $@ == *"-volume.max="* ]]; then+ if isArgPassed "-volume.max" "$@"; thenARGS="-dir=/data -master.volumePreallocate -master.volumeSizeLimitMB=1024"fiexec /usr/bin/weed $@ $ARGS