From 993f9d73b1275d59aef2fc9245b504e6196e6c14 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 20 Nov 2020 20:50:43 +0100 Subject: Quicker dev with more scripts --- script/dev-env.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 script/dev-env.sh (limited to 'script/dev-env.sh') diff --git a/script/dev-env.sh b/script/dev-env.sh new file mode 100755 index 00000000..15cb965a --- /dev/null +++ b/script/dev-env.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +SCRIPT_FOLDER="`dirname \"$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:3900 \ + --access_key=$ACCESS_KEY \ + --secret_key=$SECRET_KEY \ + --region=garage \ + --no-ssl" + -- cgit v1.2.3 From 98e20a5898602d7312093246cb32ef39e619bbc5 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 20 Nov 2020 23:50:23 +0100 Subject: Fix dev-env.sh for source; print which garage in dev-cluster.sh --- script/dev-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/dev-env.sh') diff --git a/script/dev-env.sh b/script/dev-env.sh index 15cb965a..7e8ffc50 100755 --- a/script/dev-env.sh +++ b/script/dev-env.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_FOLDER="`dirname \"$0\"`" +SCRIPT_FOLDER="`dirname \"${BASH_SOURCE[0]}\"`" REPO_FOLDER="${SCRIPT_FOLDER}/../" GARAGE_DEBUG="${REPO_FOLDER}/target/debug/" GARAGE_RELEASE="${REPO_FOLDER}/target/release/" -- cgit v1.2.3