Revision as of 06:53, August 9, 2019 by Xavier (talk | contribs)
Jump to: navigation, search

GWS Deployment with Docker

The page provides instructions on preparing and deploying GWS with Docker. 

Prerequisites

System Requirements

RAM Requirements

  • Minimum 16 GB of RAM
Deploying GWS
  1. Unpack the IP_HTCCDev_xxx_ENU_dockerlinux.zip file and navigate to the ip folder which should contain following files:
    • gws-microservices.tgz
    • exported microservices in tar.gz format (e.g. gws-platform-configuration_9.0.000.42.tar.gz)
  2. Unpack the gws-microservices.tgz archive to /opt/genesys/gws directory.
    • mkdir -p /opt/genesys/gws 
    • tar xvf gws-microservices.tgz -C /opt/genesys/gws
  3. Populate the Docker images (presented in *.tar.gz format) from installation package: 
    • for i in *.tar.gz; do sudo docker load --input $i; done
  4. Edit the following values in the /opt/genesys/gws/docker/common-env file:
Environment Variable Value Description
DOCKER_REPOSITORY Should be empty if the GWS images are loaded manually.
REDIRECT_URIS \"http://uri1\",\"http://uri2\"

A comma-separated array of resolvable hostnames or IP addresses of the Docker host machine.

Important
The array should use double quotes and the quotes should be escaped using backslashes. Teh array should not have any whitespace between items.
DOCKERHUB_MIRROR Should be empty if the images of the Infrastructure components are loaded manually.
LOCATION /USW2 The location of Configuration Server.
ENVIRONMENT_USERNAME default The username to connect to the Configuration Server.
ENVIRONMENT_APPNAME Cloud The application name to connect to the Configuration Server.
ENVIRONMENT_PASSWORD password The password to connect to the Configuration Server.
ENVIRONMENT_CONFIG_SERVER_PORT 8888 The port number of the primary Configuration Server.
ENVIRONMENT_CONFIG_SERVER_PRIMARY_ADDRESS 127.0.0.1 The IP address of the primary Configuration Server.
ENVIRONMENT_CONFIG_SERVER_TENANT Environment The Configuration Server's tenant name.
CONTACT_CENTER_DOMAIN_NAME on_premise_lab The domain associated with this contact center.
  1. For proper docker-compose invocation creation of following symbolic links may needed:
    ln -s /usr/local/bin/docker-compose docker-compose
    sudo ln -s /usr/libexec/docker/docker-runc-current /usr/bin/docker-runc
  2. For Elasticsearch default operating system limits on mmap counts is likely to be too low, which may result in out of memory exceptions. To mitigate:
    sysctl -w vm.max_map_count=262144
  3. Navigate to the /opt/genesys/gws/docker/wwe directory.
  4. Source common-env file with environment variables:
    . ../common-env
  5. Invoke docker-compose: 
    docker-compose up -d
  6. Wait until docker-compose is up and running. It may take up to 10 minutes.
  7. Verifying GWS Services

    Use the following links to get and verify that expected versions of the GWS services are correct:

    Service Verification URLs
    Auth API http://GWS_APPLICATIONS_IP/auth/v3/version
    Config API http://GWS_APPLICATIONS_IP/config/v3/version
    Environment API http://gws_applications_ip/auth/v3/version
    Workspace API http://GWS_APPLICATIONS_IP/workspace/v3/version
    Workspace UI http://GWS_APPLICATIONS_IP/ui/wwe/index.html
Comments or questions about this documentation? Contact us for support!