notea-de-me/spike/review/run.sh

27 lines
619 B
Bash

#! /bin/bash
killall -9 minio
d=$(mktemp -d)
cleanup() {
killall -9 minio
rm -rf $d
}
trap cleanup EXIT
MINIO_ACCESS_KEY=access_key MINIO_SECRET_KEY=secret_key minio server --address :9000 $d &
sleep 1
mc mb sink/notea
docker run --rm -it \
--name notea \
-p 3000:3000 \
-e STORE_ACCESS_KEY=access_key \
-e STORE_SECRET_KEY=secret_key \
-e STORE_BUCKET=notea \
-e STORE_PREFIX=notea/ \
-e STORE_END_POINT=http://$(ifconfig en0 | grep inet\ | awk '{print $2}'):9000 \
-e STORE_FORCE_PATH_STYLE=true \
-e PASSWORD=notea \
-e DISABLE_PASSWORD=true \
-e COOKIE_SECURE=false \
cinwell/notea