reorg repo
This commit is contained in:
26
.spike/review/notea/run.sh
Normal file
26
.spike/review/notea/run.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#! /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 3001: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
|
||||
Reference in New Issue
Block a user