chg: [zato] upd README

This commit is contained in:
Boris Gallet
2024-10-22 16:40:28 +02:00
parent 06c91d245f
commit e9eadfc968
4 changed files with 25 additions and 23 deletions

View File

@@ -1,30 +1,32 @@
# -*- ispell-local-dictionary: "english" -*- # -*- ispell-local-dictionary: "english" -*-
* Info * Info
From: https://docs.n8n.io/hosting/installation/docker/#starting-n8n From Zato 3.2 : https://zato.io/en/docs/3.2/tutorial/01.html
* Usage * Usage
Config info: https://support.rallly.co/self-hosting/configuration-options Lauching with web-proxy need to have a frontend connected
Deployments of services : they should be mounted as volume for the docker
Requires a =smtp-server= provider to be functional, you can use Warning : if using keycloak the correct keycloak_public_key have to be manually placed in reso
=smtp-stub= charm to provide information to externally managed =SMTP=.
#+begin_src yaml #+begin_src yaml
n8n:
options:
sender-email: #the sender email (beware the conf of your SMTP server)
smtp-stub: zato:
options: docker-compose:
host: smtp.myhost.com volumes:
port: 465 - <PROJECT_FOLDER>/schemas:/opt/zato/current/extlib/schemas:rw
connection-security: "ssl/tls" - <PROJECT_FOLDER>/models:/opt/zato/current/extlib/models:rw
auth-method: password #IMPORTANT: if not present login password doesnt work - <PROJECT_FOLDER>/services:/opt/hot-deploy/services:rw
login: myuser - <PROJECT_FOLDER>/enmasse:/opt/hot-deploy/enmasse:rw
password: myp4ssw0rd - <PROJECT_FOLDER>/resources/keycloak_public_key.pem:/opt/hot-deploy/keycloak_public_key.pem:rw
relations:
web-proxy:
frontend:
domain: zato.<mondomain>.coop
#+end_src #+end_src

View File

@@ -9,17 +9,17 @@ fi
. "$CHARM_PATH/lib/common" . "$CHARM_PATH/lib/common"
# Combined commands to be run as zato user # Combined commands to be run as zato user
local zato_commands=" zato_commands="
/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/ &&
cd /opt/zato/env/qs-1 && cd /opt/zato/env/qs-1 &&
./start-server-fg.sh & ./start-server-fg.sh &
" "
# Execute commands as zato user # Execute commands as zato user
exec_as_zato_in_container "/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/"
sleep 3
if ! exec_as_zato_in_container "$zato_commands"; then if ! exec_as_zato_in_container "$zato_commands"; then
printf "Error: Failed to execute zato commands in container '%s'.\n" "$CONTAINER_NAME" >&2 printf "Error: Failed to execute zato commands in container '%s'.\n" "$CONTAINER_NAME" >&2
return 1 exit 1
fi fi
printf "Zato restarted successfully in container '%s'.\n" "$CONTAINER_NAME" >&2 printf "Zato restarted successfully in container '%s'.\n" "$CONTAINER_NAME" >&2

View File

@@ -9,7 +9,7 @@ fi
. "$CHARM_PATH/lib/common" . "$CHARM_PATH/lib/common"
# Combined commands to be run as zato user # Combined commands to be run as zato user
local zato_commands=" zato_commands="
cd /opt/zato/env/qs-1 && cd /opt/zato/env/qs-1 &&
./start-server-fg.sh & ./start-server-fg.sh &
" "

View File

@@ -9,7 +9,7 @@ fi
. "$CHARM_PATH/lib/common" . "$CHARM_PATH/lib/common"
# Combined commands to be run as zato user # Combined commands to be run as zato user
local zato_commands="/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/" zato_commands="/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/"
# Execute commands as zato user # Execute commands as zato user
if ! exec_as_zato_in_container "$zato_commands"; then if ! exec_as_zato_in_container "$zato_commands"; then