From 827826d7aa81fed170b432f5d1e701898b9242ab Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Wed, 7 Apr 2021 21:37:31 +0200 Subject: [PATCH] Add exciting demo script --- demo.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 demo.sh diff --git a/demo.sh b/demo.sh new file mode 100644 index 0000000..5352040 --- /dev/null +++ b/demo.sh @@ -0,0 +1,27 @@ +# This script is intended to be run by `doitlive`[0], so it deliberately doesn't +# log the commands it's running -- as `doitlive` will display them. You can also +# run this using `bash.sh`, in which case it might be helpful to uncomment the +# `set -x` line below to see what this script is doing. +# +# [0]: https://doitlive.readthedocs.io/ +function abraa(){ + $ABRA_DIR/src/abra $@ +} + +#set -x + +export ABRA_DIR=$(mktemp -d) + +curl https://install.abra.autonomic.zone | bash -s -- --dev + +abra server add demo.autonomic.zone calix 222 + +abra server demo.autonomic.zone init + +abra app new traefik --server demo.autonomic.zone --domain demo.autonomic.zone --app-name traefik_demo + +abra -n app traefik_demo deploy --no-domain-poll + +abra -n app new gitea --server demo.autonomic.zone --domain git.demo.autonomic.zone --app-name gitea_demo --secrets + +abra -n app gitea_demo deploy