(→Configure Config Server) |
(Update with the copy of version: 9.0.0DRAFT) |
||
Line 1: | Line 1: | ||
− | = Deploying | + | = Deploying Web Services and Applications in a Lab environment = |
− | + | The page provides instructions on preparing and deploying Web Services and Applications with Docker. | |
− | + | == Prerequisites == | |
− | + | === Software Requirements === | |
− | == | + | * OS: Any Enterprise Linux distribution version 7 (RHEL-7, CentOS-7) |
+ | * {{#Widget:ExtLink|link=https://docs.docker.com/install|displaytext=Docker}}. Please use the latest stable version. | ||
+ | * {{#Widget:ExtLink|link=https://docs.docker.com/compose/install|displaytext=Docker Compose}}. Please use the latest stable version. | ||
+ | * Access to [http://docker.io/library docker.io/library] | ||
+ | ** If Internet access is not available, the following images should be manually loaded to docker: | ||
+ | *** {{#Widget:ExtLink|link=https://hub.docker.com/_/centos|displaytext=centos:latest}} | ||
+ | *** {{#Widget:ExtLink|link=https://hub.docker.com/_/elasticsearch|displaytext=elasticsearch:6.6.2}} | ||
+ | *** {{#Widget:ExtLink|link=https://hub.docker.com/_/postgres|displaytext=postgres:9.5.12-alpine}} | ||
+ | *** {{#Widget:ExtLink|link=https://hub.docker.com/_/redis|displaytext=redis:4}} | ||
− | + | === Hardware Requirements === | |
− | |||
− | |||
− | + | * CPU: Minimum 2-core CPU | |
+ | * RAM : Minimum 16 GB of RAM | ||
− | + | === Requirements for WWE === | |
− | |||
− | |||
− | + | * OS: Windows 10 | |
+ | * Browsers : Google Chrome 63+, Mozilla Firefox 57+ or Firefox ESR 52+, or Microsoft Edge | ||
− | + | ==Deploying Web Services and Applications== | |
− | |||
− | |||
− | |||
− | + | # Unpack the installation package file (e.g., '''IP_HTCCDev_9000207b1_ENU_dockerlinux.zip''' ) , and navigate to the '''ip''' folder which should contain the following files: | |
− | + | #* '''gws-microservices.tgz''' | |
− | + | #* exported microservices in tar.gz format (e.g., '''gws-platform-configuration_9.0.000.50.tar.gz''') | |
+ | # Unpack the '''gws-microservices.tgz''' archive to '''/opt/genesys/gws''' directory. <br /> | ||
+ | #*<pre>mkdir -p /opt/genesys/gws </pre> | ||
+ | #*<pre>tar xvf gws-microservices.tgz -C /opt/genesys/gws</pre> | ||
+ | # Populate the Docker images (presented in *.tar.gz format) from installation package: <br /> | ||
+ | #*<pre>for i in *.tar.gz; do sudo docker load --input $i; done</pre> | ||
+ | # Edit the following values in the '''/opt/genesys/gws/docker/common-env''' file: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
{| | {| | ||
+ | ! '''Environment Variable''' | ||
+ | ! '''Value''' | ||
+ | ! '''Description''' | ||
|- | |- | ||
− | + | | DOCKER_REPOSITORY | |
− | + | | | |
− | + | | Should be empty if the Web Services and Applications images are loaded manually. | |
− | |||
− | |||
|- | |- | ||
− | | | + | | REDIRECT_URIS |
− | | | + | | <nowiki>\"http://uri1\",\"http://uri2\"</nowiki> |
− | | | + | | |
− | | | + | A comma-separated array of resolvable host names or IP addresses of the Docker host machine. Used as a part of the OAuth authentication flow. |
− | + | {{NoteFormat| To access the lab deployment, it is mandatory to set resolvable hostnames or IP addresses for the Docker host machine. | |
+ | |||
+ | The array should use double quotes and the quotes should be escaped using backslashes. The array should not have any whitespace between items. | ||
+ | }} | ||
|- | |- | ||
− | | | + | | DOCKERHUB_MIRROR |
− | | | + | | |
− | | | + | | Should be empty if the images of the Infrastructure components are loaded manually. |
− | |||
− | |||
|- | |- | ||
− | | | + | | LOCATION |
− | | | + | | <tt>/USW2</tt> |
− | | | + | | The location of Configuration Server. |
− | | | + | {{NoteFormat|The Web Services and Applications Cluster Application object (typically names ''CloudCluster'') in the Configuration Database must be configured with a specified location for each connection to Genesys servers like Configuration Server, Stat Server, T-Server, and so on. This Settings defines which server instance is visible by the Web Services and Applications node based on its position in the Web Services and Applications Cluster. }} |
− | |||
|- | |- | ||
− | | | + | | 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. |
− | |||
− | |||
|} | |} | ||
− | = | + | <ol start="5"> |
− | + | <li>For Elasticsearch, the default operating system limits on '''mmap''' counts is likely to be too low, which may result in out-of-memory exceptions. To mitigate it temporarily: | |
− | + | <pre>sudo sysctl -w vm.max_map_count=262144</pre> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | To set this value permanently, update the '''vm.max_map_count''' setting in '''/etc/sysctl.conf'''. To verify after rebooting, run: | |
− | + | <pre>sudo sysctl vm.max_map_count</pre> | |
− | + | </li> | |
− | + | <li> Navigate to the '''/opt/genesys/gws/docker/wwe''' directory.</li> | |
− | + | <li>Source the '''common-env''' file with environment variables: | |
− | + | <pre>. ../common-env</pre> | |
+ | <li>Invoke<tt> docker-compose</tt>: | ||
+ | <pre>docker-compose up -d</pre> | ||
+ | <li>Wait until <tt>docker-compose</tt> is up and running. It may take up to 10 minutes.</li> | ||
− | == | + | ==Verifying Web Services and Applications Services== |
− | |||
− | |||
− | + | Use the following links to get and verify that expected versions of the Web Services and Applications services are correct: | |
{| | {| | ||
− | ! | + | ! '''Service''' |
− | ! | + | ! '''Verification URLs''' |
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | | Authentication Service |
− | | | + | | <nowiki>http://GWS_APPLICATIONS_IP/auth/v3/version</nowiki> |
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | | Configuration Service |
− | | | + | | <nowiki>http://GWS_APPLICATIONS_IP/configuration/v3/version</nowiki> |
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | | Environment Service |
− | | | + | | <nowiki>http://GWS_APPLICATIONS_IP/environment/v3/version</nowiki> |
− | |||
− | |||
− | |||
|- | |- | ||
+ | | Data Collector Service | ||
+ | | <nowiki>http://GWS_APPLICATIONS_IP/datacollector/v3/version</nowiki> | ||
+ | |- | ||
+ | | Workspace Web Edition | ||
+ | | <nowiki>http://GWS_APPLICATIONS_IP/ui/wwe/index.html</nowiki> | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:V:HTCC:9.0.0]] | [[Category:V:HTCC:9.0.0]] |
Revision as of 02:37, September 4, 2019
Contents
Deploying Web Services and Applications in a Lab environment
The page provides instructions on preparing and deploying Web Services and Applications with Docker.
Prerequisites
Software Requirements
- OS: Any Enterprise Linux distribution version 7 (RHEL-7, CentOS-7)
- Docker. Please use the latest stable version.
- Docker Compose. Please use the latest stable version.
- Access to docker.io/library
- If Internet access is not available, the following images should be manually loaded to docker:
Hardware Requirements
- CPU: Minimum 2-core CPU
- RAM : Minimum 16 GB of RAM
Requirements for WWE
- OS: Windows 10
- Browsers : Google Chrome 63+, Mozilla Firefox 57+ or Firefox ESR 52+, or Microsoft Edge
Deploying Web Services and Applications
- Unpack the installation package file (e.g., IP_HTCCDev_9000207b1_ENU_dockerlinux.zip ) , and navigate to the ip folder which should contain the following files:
- gws-microservices.tgz
- exported microservices in tar.gz format (e.g., gws-platform-configuration_9.0.000.50.tar.gz)
- 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
- Populate the Docker images (presented in *.tar.gz format) from installation package:
for i in *.tar.gz; do sudo docker load --input $i; done
- Edit the following values in the /opt/genesys/gws/docker/common-env file:
Environment Variable | Value | Description |
---|---|---|
DOCKER_REPOSITORY | Should be empty if the Web Services and Applications images are loaded manually. | |
REDIRECT_URIS | \"http://uri1\",\"http://uri2\" |
A comma-separated array of resolvable host names or IP addresses of the Docker host machine. Used as a part of the OAuth authentication flow. Important To access the lab deployment, it is mandatory to set resolvable hostnames or IP addresses for the Docker host machine.
The array should use double quotes and the quotes should be escaped using backslashes. The 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.
Important The Web Services and Applications Cluster Application object (typically names CloudCluster) in the Configuration Database must be configured with a specified location for each connection to Genesys servers like Configuration Server, Stat Server, T-Server, and so on. This Settings defines which server instance is visible by the Web Services and Applications node based on its position in the Web Services and Applications Cluster. |
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. |
- For Elasticsearch, the default operating system limits on mmap counts is likely to be too low, which may result in out-of-memory exceptions. To mitigate it temporarily:
sudo sysctl -w vm.max_map_count=262144
To set this value permanently, update the vm.max_map_count setting in /etc/sysctl.conf. To verify after rebooting, run:
sudo sysctl vm.max_map_count
- Navigate to the /opt/genesys/gws/docker/wwe directory.
- Source the common-env file with environment variables:
. ../common-env
- Invoke docker-compose:
docker-compose up -d
- Wait until docker-compose is up and running. It may take up to 10 minutes.
Verifying Web Services and Applications Services
Use the following links to get and verify that expected versions of the Web Services and Applications services are correct:
Service | Verification URLs |
---|---|
Authentication Service | http://GWS_APPLICATIONS_IP/auth/v3/version |
Configuration Service | http://GWS_APPLICATIONS_IP/configuration/v3/version |
Environment Service | http://GWS_APPLICATIONS_IP/environment/v3/version |
Data Collector Service | http://GWS_APPLICATIONS_IP/datacollector/v3/version |
Workspace Web Edition | http://GWS_APPLICATIONS_IP/ui/wwe/index.html |
Comments or questions about this documentation? Contact us for support!