aboutsummaryrefslogtreecommitdiff
path: root/script/dev-cluster.sh
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-04-28 11:35:10 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-05-02 14:59:58 +0200
commitef4d6e782a67bd422489d643e8807eaf7fb853c4 (patch)
treeafb0e2c60837e52e808002fc643a2c87ed2c4c93 /script/dev-cluster.sh
parenta981244f11af13f3dcebb9f399ab18d7e484014f (diff)
downloadgarage-ef4d6e782a67bd422489d643e8807eaf7fb853c4.tar.gz
garage-ef4d6e782a67bd422489d643e8807eaf7fb853c4.zip
Add minio & rclone to our functional teststest/more-clients
It is now possible to configure which clients you do not want to test with the env variable SKIP_XXX=1, XXX being the client name. eg. SKIP_S3CMD=1 ./script/test-smoke.sh
Diffstat (limited to 'script/dev-cluster.sh')
-rwxr-xr-xscript/dev-cluster.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/script/dev-cluster.sh b/script/dev-cluster.sh
index addbf4b4..96147ca0 100755
--- a/script/dev-cluster.sh
+++ b/script/dev-cluster.sh
@@ -47,6 +47,21 @@ EOF
echo -en "$LABEL configuration written to $CONF_PATH\n"
+if [ -z "$SKIP_HTTPS" ]; then
+ echo -en "$LABEL Starting dummy HTTPS reverse proxy\n"
+ mkdir -p /tmp/garagessl
+ openssl req \
+ -new \
+ -x509 \
+ -keyout /tmp/garagessl/test.key \
+ -out /tmp/garagessl/test.crt \
+ -nodes \
+ -subj "/C=XX/ST=XX/L=XX/O=XX/OU=XX/CN=localhost/emailAddress=X@X.XX" \
+ -addext "subjectAltName = DNS:localhost, IP:127.0.0.1"
+ cat /tmp/garagessl/test.key /tmp/garagessl/test.crt > /tmp/garagessl/test.pem
+ socat openssl-listen:4443,reuseaddr,fork,cert=/tmp/garagessl/test.pem,verify=0 tcp4-connect:localhost:3911 &
+fi
+
(garage server -c /tmp/config.$count.toml 2>&1|while read r; do echo -en "$LABEL $r\n"; done) &
done