From e9eadfc96847d0f176932ea2d72d0bedf87e0a7b Mon Sep 17 00:00:00 2001 From: Boris Gallet Date: Tue, 22 Oct 2024 16:40:28 +0200 Subject: [PATCH] chg: [zato] upd README --- zato/README.org | 34 ++++++++++++++++++---------------- zato/actions/restart-zato | 10 +++++----- zato/actions/start-zato | 2 +- zato/actions/stop-zato | 2 +- 4 files changed, 25 insertions(+), 23 deletions(-) diff --git a/zato/README.org b/zato/README.org index ff02abd..714f9ba 100644 --- a/zato/README.org +++ b/zato/README.org @@ -1,30 +1,32 @@ # -*- 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 -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 -=smtp-stub= charm to provide information to externally managed =SMTP=. +Warning : if using keycloak the correct keycloak_public_key have to be manually placed in reso #+begin_src yaml -n8n: - options: - sender-email: #the sender email (beware the conf of your SMTP server) -smtp-stub: - options: - host: smtp.myhost.com - port: 465 - connection-security: "ssl/tls" - auth-method: password #IMPORTANT: if not present login password doesn’t work - login: myuser - password: myp4ssw0rd +zato: + docker-compose: + volumes: + - /schemas:/opt/zato/current/extlib/schemas:rw + - /models:/opt/zato/current/extlib/models:rw + - /services:/opt/hot-deploy/services:rw + - /enmasse:/opt/hot-deploy/enmasse:rw + - /resources/keycloak_public_key.pem:/opt/hot-deploy/keycloak_public_key.pem:rw + relations: + web-proxy: + frontend: + domain: zato..coop + #+end_src diff --git a/zato/actions/restart-zato b/zato/actions/restart-zato index a29516f..f6ce866 100755 --- a/zato/actions/restart-zato +++ b/zato/actions/restart-zato @@ -9,17 +9,17 @@ fi . "$CHARM_PATH/lib/common" # 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=" cd /opt/zato/env/qs-1 && ./start-server-fg.sh & " # 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 printf "Error: Failed to execute zato commands in container '%s'.\n" "$CONTAINER_NAME" >&2 - return 1 + exit 1 fi -printf "Zato restarted successfully in container '%s'.\n" "$CONTAINER_NAME" >&2 - +printf "Zato restarted successfully in container '%s'.\n" "$CONTAINER_NAME" >&2 \ No newline at end of file diff --git a/zato/actions/start-zato b/zato/actions/start-zato index 2dc55fd..761ed4f 100755 --- a/zato/actions/start-zato +++ b/zato/actions/start-zato @@ -9,7 +9,7 @@ fi . "$CHARM_PATH/lib/common" # Combined commands to be run as zato user -local zato_commands=" +zato_commands=" cd /opt/zato/env/qs-1 && ./start-server-fg.sh & " diff --git a/zato/actions/stop-zato b/zato/actions/stop-zato index b9a072b..c856a31 100755 --- a/zato/actions/stop-zato +++ b/zato/actions/stop-zato @@ -9,7 +9,7 @@ fi . "$CHARM_PATH/lib/common" # 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 if ! exec_as_zato_in_container "$zato_commands"; then