From 9b69908890ae02f1156992326a3eae6bd07876d1 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Mon, 8 Apr 2024 12:53:07 -0300 Subject: [PATCH] tweaks --- build.sh | 3 +++ setup.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 755276f..bf27db2 100755 --- a/build.sh +++ b/build.sh @@ -32,5 +32,8 @@ ssh root@$IP cat /var/lib/faasd/secrets/basic-auth-password | faas-cli login --p # Setup test function faas-cli store deploy figlet +pass iol-user | faas-cli secret create iol-user +pass iol-pass | faas-cli secret create iol-pass +pass iol-api-secret | faas-cli secret create iol-api-secret echo 'Success!' | faas-cli invoke figlet diff --git a/setup.sh b/setup.sh index 3090dd9..b02b8b2 100755 --- a/setup.sh +++ b/setup.sh @@ -4,8 +4,8 @@ set -e apt update apt upgrade -y apt install -y git - +apt clean -y rm -rf faasd -git clone https://github.com/openfaas/faasd +git clone https://github.com/openfaas/faasd --depth 1 cd faasd ./hack/install.sh