aboutsummaryrefslogtreecommitdiff
path: root/script/dev-env-s3cmd.sh
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-10 20:12:56 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-10 20:12:56 +0100
commite8c12072cefa37d9aec023fd6087b2d190ee3e4c (patch)
tree88b15bfe703d2454d99550010ad04934513d25a4 /script/dev-env-s3cmd.sh
parent51d0c14e440f00f24dbed6c3bce915a183a2bb65 (diff)
parent022b386a5085cad79d649a82846c41cad730920b (diff)
downloadgarage-e8c12072cefa37d9aec023fd6087b2d190ee3e4c.tar.gz
garage-e8c12072cefa37d9aec023fd6087b2d190ee3e4c.zip
Merge branch 'master' into feature/website
Diffstat (limited to 'script/dev-env-s3cmd.sh')
-rw-r--r--script/dev-env-s3cmd.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/script/dev-env-s3cmd.sh b/script/dev-env-s3cmd.sh
new file mode 100644
index 00000000..15f08e2e
--- /dev/null
+++ b/script/dev-env-s3cmd.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+SCRIPT_FOLDER="`dirname \"${BASH_SOURCE[0]}\"`"
+REPO_FOLDER="${SCRIPT_FOLDER}/../"
+GARAGE_DEBUG="${REPO_FOLDER}/target/debug/"
+GARAGE_RELEASE="${REPO_FOLDER}/target/release/"
+PATH="${GARAGE_DEBUG}:${GARAGE_RELEASE}:$PATH"
+
+export AWS_ACCESS_KEY_ID=`cat /tmp/garage.s3 |cut -d' ' -f1`
+export AWS_SECRET_ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2`
+export AWS_DEFAULT_REGION='garage'
+
+alias s3grg="aws s3 \
+ --endpoint-url http://127.0.0.1:3911"