Zetaly Installation - Docker Linux
    • 19 Aug 2024
    • 3 Minutes to read
    • Contributors
    • Dark
      Light

    Zetaly Installation - Docker Linux

    • Dark
      Light

    Article summary

    Introduction

    Zetaly provides a package for offline installation as a .tar.gz file, which contains the following:

    • All the docker images of the modules included in your contract
    • A zetalyinstall.cnf configuration file, which you must edit to define the necessary configuration properties.

    Current Limitations

    All modules are included except ZSI. ZSI must be installed on a Windows/Linux machine following this documentation.

    Only the offline Docker installation is available with this installer.

    The installer removes and replaces all of the configuration files when an upgrade is done. If a specific configuration has been done, you need to do it again after each installation.

    Requirements

    The Zetaly Docker package supports installation on Linux and Openshift ZCX.

    The package must be uploaded directly on the host machine, which must have the following elements :

    • RAM : 16 GB minimum 
    • Storage : 50Go minimum
    • Bash shell for .sh scripts execution
    • tar package
    • Docker
    • User in the user group named "docker" to be able to execute the Docker CLI
    • User can perform sudo command
    • PostgreSQL11 server already installed, can be on another server or in docker (in this case it must be part of the "zetaly" network)
      Attention:
      Setting a volume is highly recommended, so that your data is not lost when the container is stopped or removed.
    • Storage for database : May vary according to your needs, see with your Zetaly commercial representative to get an estimation.
    • Host machine with the frontal port open (usually 443). This can be done by an admin user, using the following command:
      iptables -A INPUT -p tcp --dport 443 -j ACCEPT
    • Connection to the Zetaly Portal must be done using HTTPS with TLS security. SSL certificates must be produced by your IT department to allow connection to Zetaly Portal.

    Installation

    1. Untar the package:
      tar -xf file_name.tar.gz
    2. Edit the configuration file zetalyinstall.cnf to define the necessary configuration properties. For more information, see the Global Configuration Properties article.
    3. If necessary, add additional lines to the configuration file zetalyinstall.cnf to customize your installation. For more information see the Docker Configuration Properties article.
    4. Launch the run.shscript:
      bash run.sh
      The installer creates one directory per module at in the directory defined by the Installation.Directory property. By default the modules are installed within the home directory of the installation user under a zetaly folder. The installer then pushes all the images into the Docker registry, mounts volumes, creates containers, and runs them.
    Note:
    The run.sh script is pre-prepared by Zetaly and typically does not need editing. If you experience installation issues you may need to edit the run.sh script. For more information see the Editing the run.sh Script section in the the Linux Configuration Properties article.

    PostgreSQL Docker Configuration 

    Your PostgreSQL container must be part of the "zetaly" network to allow the Zetaly solution to communicate with it. There are two possible cases : if your PostgreSQL container already exists, or not. 

    Case 1 : PostgreSQL Container Already Exists 

    If your PostgresSQL container aleady exists, do the following:

    1. Create the network by launching the network.shscript:
      bash network.sh
    2. Determine the ID of your PostgreSQL container by entering the following command:
      docker ps --filter "name=postgres" --format "{{.ID}}"
      The PostgreSQL container ID appears (similar to 1bca1935c9a5 for example). 
    3. Connect your PostgreSQL container to the network by entering the following command, where your_id_postgresis the PostgreSQL container ID you obtained in step 2.
      docker network connect zetaly {{your_id_postgres}}

    Case 2 : PostgreSQL Container Does Not Exist 

    If your container for PostgreSQL does not exist, you can directly attach the network when you launch it. To do this, you must enter the following command: 

     docker run --network=zetaly postgres [...]
    

    Docker automatically creates the network "zetaly" if it does not exist, and attaches the PostgreSQL container to it.

    Note:
    In the example command above, you will have other parameters to add such as the port. 
    Zetaly does not provide support for the PostgreSQL docker creation.

    Upgrading an Existing Installation

    Upgrading occurs when you already have an installation and you install a newer version. Rollbacks are not supported by the Zetaly installer. 

    To upgrade your existing installation, do the following:

    1. Edit configuration file zetalyinstall.cnf from the new package to redefine the necessary configuration properties. 
    2. Launch the run.shscript:
      bash run.sh
      The installer creates one directory per module at in the directory defined by the Installation.Directory property. By default the modules are installed within the home directory of the installation user under a zetaly folder. None of your data is modified, unless a specific warning is indicated in the release notes (they are referred as "breaking changes").  

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.