From 1cb45113db583829f1c094ca47ffb25b8a0de34b Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sat, 9 Oct 2021 21:44:53 +0200 Subject: [PATCH] fix: default linux binary in installer, add context Closes coop-cloud/organising#184 --- scripts/installer/installer | 2 +- scripts/installer/makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/installer/installer b/scripts/installer/installer index 4d97f982..92d7d948 100755 --- a/scripts/installer/installer +++ b/scripts/installer/installer @@ -38,7 +38,7 @@ function install_abra_release { release_url=$(curl -s "$ABRA_RELEASE_URL" | python3 -c "import sys, json; \ payload = json.load(sys.stdin); \ - url = [a['browser_download_url'] for a in payload['assets'] if 'x86_64' in a['name']][0]; \ + url = [a['browser_download_url'] for a in payload['assets'] if 'linux_x86_64' in a['name']][0]; \ print(url)") echo "downloading $ABRA_VERSION x86_64 binary release for abra..." diff --git a/scripts/installer/makefile b/scripts/installer/makefile index aff055bc..53421201 100644 --- a/scripts/installer/makefile +++ b/scripts/installer/makefile @@ -3,5 +3,5 @@ STACK := abra_installer_script default: deploy deploy: - @docker stack rm $(STACK) && \ - docker stack deploy -c compose.yml $(STACK) + @DOCKER_CONTEXT=swarm.autonomic.zone docker stack rm $(STACK) && \ + DOCKER_CONTEXT=swarm.autonomic.zone docker stack deploy -c compose.yml $(STACK)