diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-12-16 15:40:52 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-12-16 15:40:52 -0800 |
| commit | 3e899bfc68af335d4b9129622080f9dcbd16308a (patch) | |
| tree | 76413c2289de00305aa16883a9ddc830fe11c4e1 /docker/entrypoint.sh | |
| parent | 66d04cb83f030a6b4739ebc063f3514a5f505e00 (diff) | |
| download | seaweedfs-3e899bfc68af335d4b9129622080f9dcbd16308a.tar.xz seaweedfs-3e899bfc68af335d4b9129622080f9dcbd16308a.zip | |
add s3 for docker
Diffstat (limited to 'docker/entrypoint.sh')
| -rwxr-xr-x | docker/entrypoint.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 6fd97ad9b..f820adfac 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -36,6 +36,14 @@ case "$1" in exec /usr/bin/weed $@ $ARGS ;; + 's3') + ARGS="-domainName \"$S3_DOMAIN_NAME\" -key.file \"$S3_KEY_FILE\" -cert.file \"$S3_CERT_FILE\"" + if [ -n "$FILER_PORT_8888_TCP_ADDR" ] ; then + ARGS="$ARGS -filer=$FILER_PORT_8888_TCP_ADDR:$FILER_PORT_8888_TCP_PORT" + fi + exec /usr/bin/weed $@ $ARGS + ;; + *) exec /usr/bin/weed $@ ;; |
