SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 15-10-2019 16:59:59

MarekR
Member
Registered: 21-02-2019
Posts: 19

SXIWebServices-2.1 in Docker

Requirements for running the SXIWebServices in Docker:

  1. Install Docker

    • Follow the steps to download docker from this link based on your operating system.

  2. Go to docker settings on your local machine and perform the following:

    • For Windows go to docker settings and on the "Daemon" tab click on the advanced toggle switch and add the following to the json given:

      "insecure-registries": ["xlayer.co.za:5000"]
    • For Linux edit the "daemon.json" file. The default location is "/etc/docker/daemon.json". (If the file cannot be found, create it.) then add the following code:

      {
        "insecure-registries" : ["xlayer.co.za:5000"]
      }
  3. To download the docker image and run it, perform the following:

    • For Windows in an administrator CMD execute the following command:

      docker run -p 8080:8080 -d --name SXIWebService -v C:/SXI/XPress/XmlOut:/opt/SXI/XPress/XmlOut -v C:\SXI\WebServiceLogs:/opt/SXI/WebServiceLogs xlayer.co.za:5000/sxiws:2.1
    • For Linux in a terminal execute the following command:

      sudo docker run -p 8080:8080 -d --name SXIWebService -v /opt/SXI/XPress/XmlOut:/opt/SXI/XPress/XmlOut -v /opt/SXI/WebServiceLogs:/opt/SXI/WebServiceLogs xlayer.co.za:5000/sxiws:2.1
    • A short explanation:
      "-v C:/SXI/XPress/XmlOut:/opt/SXI/XPress/XmlOut -v C:\SXI\WebServiceLogs:/opt/SXI/WebServiceLogs"
      The above argument mounts a directory on your local computer with a directory in the container. The parts highlighted in red point to the directory on your local computer. The parts highlighted in blue point to the directory in the container.
      NB* if any of the directories highlighted in red do not exist you will get an ERROR. Make sure they are pointing to the correct folder path that exists. Remember that the above example is for Windows however the same applies for Linux as well.

After performing these steps Tomcat will be up and running and all SXI web services will be available. You can access them by pointing your browser to "localhost:8080/SXIWebServices-2.1/". The default user of the manager-gui for Tomcat is "sxi" and the password is our standard password.

Last edited by MarekR (18-10-2019 08:30:30)

Offline

Board footer

Powered by FluxBB