2022-07-19 14:56:46 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
set -e
|
2024-08-21 21:18:35 +00:00
|
|
|
export OPENFAAS_URL=http://pinky:8082
|
2024-09-03 15:17:02 +00:00
|
|
|
#pass faas.ralsina.me | faas-cli login -u admin --password-stdin
|
2024-08-17 22:28:10 +00:00
|
|
|
|
2024-09-03 15:17:02 +00:00
|
|
|
#pass iol-pass | faas-cli secret create iol-pass
|
|
|
|
#pass iol-user | faas-cli secret create iol-user
|
|
|
|
#pass iol-api-secret | faas-cli secret create iol-api-secret
|
2024-08-17 22:28:10 +00:00
|
|
|
#pass nombres-user | faas-cli secret create nombres-user
|
|
|
|
#pass nombres-pass | faas-cli secret create nombres-pass
|
2024-09-03 15:17:02 +00:00
|
|
|
#faas-cli deploy -f functions.yml $*
|
2024-08-17 22:28:10 +00:00
|
|
|
|
|
|
|
export FAASO_SERVER=http://rocky:8888/admin
|
|
|
|
pass faaso-rocky | faaso login
|
|
|
|
pass nombres-user | faaso secret -a historico user
|
|
|
|
pass nombres-pass | faaso secret -a historico pass
|
2024-09-03 18:20:30 +00:00
|
|
|
echo "192.168.2.115" | faaso secret -a historico dbhost
|
2024-08-17 22:28:10 +00:00
|
|
|
faaso build busqueda
|
|
|
|
faaso scale busqueda 0
|
|
|
|
faaso scale busqueda 1
|
|
|
|
pass nombres-user | faaso secret -a busqueda user
|
|
|
|
pass nombres-pass | faaso secret -a busqueda pass
|
2024-09-03 18:20:30 +00:00
|
|
|
echo "192.168.2.115" | faaso secret -a busqueda dbhost
|
2024-08-17 22:28:10 +00:00
|
|
|
faaso build historico
|
|
|
|
faaso scale historico 0
|
|
|
|
faaso scale historico 1
|
2024-09-03 15:17:02 +00:00
|
|
|
rsync -rav nombres.ralsina.me/* ralsina@rocky:/data/stacks/web/websites/nombres.ralsina.me/
|
2024-08-21 20:54:09 +00:00
|
|
|
|
|
|
|
faaso build tapas
|
|
|
|
faaso scale tapas 0
|
|
|
|
faaso scale tapas 1
|