Unverified Commit 2a9a99c0 authored by Nugine's avatar Nugine
Browse files

scripts: mint

parent df32a55f
Loading
Loading
Loading
Loading

scripts/mint.sh

0 → 100755
+6 −0
Original line number Diff line number Diff line
#!/bin/bash
docker run \
    -e "SERVER_ENDPOINT=localhost:8014"   \
    -e "ACCESS_KEY=minioadmin" -e "SECRET_KEY=minioadmin" \
    --network host \
    minio/mint:edge

scripts/s3s-proxy.sh

0 → 100755
+22 −0
Original line number Diff line number Diff line
#!/bin/bash -ex

docker run -p 9000:9000 -p 9001:9001 \
    -e "MINIO_DOMAIN=localhost:9000" \
    -e "MINIO_HTTP_TRACE=1" \
    minio/minio:latest server /data --console-address ":9001" &

sleep 1s

export AWS_ACCESS_KEY_ID=minioadmin
export AWS_SECRET_ACCESS_KEY=minioadmin
export AWS_REGION=us-east-1

if [ -z "$RUST_LOG" ]; then
    export RUST_LOG="s3s_proxy=debug,s3s_aws=debug,s3s=debug"
fi

s3s-proxy \
    --host          localhost               \
    --port          8014                    \
    --domain-name   localhost:8014          \
    --endpoint-url  http://localhost:9000