From b59beb66eb2d6b26250de22cff6661786bd53a08 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 15 Feb 2024 05:00:51 +0000 Subject: [PATCH] Add simple quick deploy script (#743) Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/743 Co-authored-by: David Boreham Co-committed-by: David Boreham --- scripts/quick-deploy-test.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/quick-deploy-test.sh diff --git a/scripts/quick-deploy-test.sh b/scripts/quick-deploy-test.sh new file mode 100755 index 00000000..597eb6ac --- /dev/null +++ b/scripts/quick-deploy-test.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# Beginnings of a script to quickly spin up and test a deployment +if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then + set -x +fi +if [[ -n "$1" ]]; then + stack_name=$1 +else + stack_name="test" +fi +spec_file_name="${stack_name}-spec.yml" +deployment_dir_name="${stack_name}-deployment" +rm -f ${spec_file_name} +rm -rf ${deployment_dir_name} +laconic-so --stack ${stack_name} deploy --deploy-to k8s-kind init --output ${spec_file_name} +laconic-so --stack ${stack_name} deploy --deploy-to k8s-kind create --deployment-dir ${deployment_dir_name} --spec-file ${spec_file_name} +#laconic-so deployment --dir ${deployment_dir_name} start +#laconic-so deployment --dir ${deployment_dir_name} ps +#laconic-so deployment --dir ${deployment_dir_name} stop