mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
16 lines
546 B
Bash
Executable file
16 lines
546 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
# requires TF_VAR_cluster_prefix env var to be set
|
|
if [ -z ${TF_VAR_cluster_prefix+x} ]; then
|
|
echo "setting TF_VAR_cluster_prefix";
|
|
export TF_VAR_cluster_prefix="able-$(openssl rand -base64 12 | tr -d /=+ | cut -c -16)"
|
|
echo "TF_VAR_cluster_prefix is set to '$TF_VAR_cluster_prefix'";
|
|
else
|
|
echo "TF_VAR_cluster_prefix is set to '$TF_VAR_cluster_prefix'";
|
|
fi
|
|
|
|
$SCRIPT_DIR/ableSetup.sh
|
|
$SCRIPT_DIR/ableTest.sh
|
|
$SCRIPT_DIR/ableTeardown.sh
|