diff options
author | Alex <alex@adnab.me> | 2020-12-06 15:27:39 +0100 |
---|---|---|
committer | Alex <alex@adnab.me> | 2020-12-06 15:27:39 +0100 |
commit | 39f45b3058e0d6705bdd94037c0876a2af6d5a74 (patch) | |
tree | 650f71f35e4b091b23c2e5fdf0cd65c3dde06975 /script/dev-env-s3cmd.sh | |
parent | dfbc280c37c6725f58224d2c0d31df9e4a9ff7b4 (diff) | |
parent | e13fd0954395836cd99e7deaeca7d0b7050802ee (diff) | |
download | garage-39f45b3058e0d6705bdd94037c0876a2af6d5a74.tar.gz garage-39f45b3058e0d6705bdd94037c0876a2af6d5a74.zip |
Merge pull request 'Merge the new smoke test to master' (#25) from feature/smoke-script into master
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/25
Diffstat (limited to 'script/dev-env-s3cmd.sh')
-rw-r--r-- | script/dev-env-s3cmd.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/script/dev-env-s3cmd.sh b/script/dev-env-s3cmd.sh new file mode 100644 index 00000000..88d2941f --- /dev/null +++ b/script/dev-env-s3cmd.sh @@ -0,0 +1,19 @@ +#!/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" + +ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f1` +SECRET_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2` + +alias s3grg="s3cmd \ + --host 127.0.0.1:3911 \ + --host-bucket 127.0.0.1:3911 \ + --access_key=$ACCESS_KEY \ + --secret_key=$SECRET_KEY \ + --region=garage \ + --no-ssl" + |