Jump to: navigation, search
(GWS-applications containers)
Line 1: Line 1:
 
= Deploying GWS in Test Labs =
 
= Deploying GWS in Test Labs =
  
==Docker and docker-compose installation==
+
==Install Docker and docker-compose==
  
# Install Docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
+
# {{#Widget:ExtLink|link=: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1|displaytext=Install Docker}}
# Install Docker-Compose: https://docs.docker.com/compose/install/
+
# {{#Widget:ExtLink|link=https://docs.docker.com/compose/install/|displaytext=Install Docker-Compose}}
  
==GWS microservices v9 installation==
+
==Install GWS micro-services==
  
 
# Copy the '''premise''' directory to all target machines as '''/opt/genesys/gws/premise'''. This would be the application's prefix.
 
# Copy the '''premise''' directory to all target machines as '''/opt/genesys/gws/premise'''. This would be the application's prefix.
# Run the following command at all target machines: <br /><pre># ./bin/preflight.sh</pre>{{NoteFormat|This script disables firewalls and sets SElinux to ''permissive'' mode.}}
+
# Run the following command at all target machines: <pre># ./bin/preflight.sh</pre>{{NoteFormat|This script disables firewalls and sets SElinux to ''permissive'' mode.}}
 
# Run the following command at all target machines:<pre># ./bin/dump-restore.sh restore</pre>
 
# Run the following command at all target machines:<pre># ./bin/dump-restore.sh restore</pre>
  
==GWS-data service containers==
+
==Create GWS-data service Containers==
  
# Create a ''systemd'' unit. <br /><pre>SERVICE_NAME="data" ./bin/register-systemd-unit.sh</pre>
+
# Create a ''systemd'' unit. <pre>SERVICE_NAME="data" ./bin/register-systemd-unit.sh</pre>
# Start the data services. <br /><pre>systemctl start gws-data.service</pre>
+
# Start the data services.<pre>systemctl start gws-data.service</pre>
# Configure Redis <br /><pre>./bin/redis-starter.sh</pre>
+
# Configure Redis.<pre>./bin/redis-starter.sh</pre>
  
==GWS-applications containers==
+
==Create GWS-applications Containers==
  
 
# Create a ''systemd'' unit. <pre>SERVICE_NAME="applications" ./bin/register-systemd-unit.sh</pre>
 
# Create a ''systemd'' unit. <pre>SERVICE_NAME="applications" ./bin/register-systemd-unit.sh</pre>
Line 25: Line 25:
 
# Check the status of applications. <pre>./bin/healthcheck.sh</pre>
 
# Check the status of applications. <pre>./bin/healthcheck.sh</pre>
  
=GWS configuration:=
+
==Configure GWS ==
==Configure Config Server==
+
===Configure Config Server===
https://docs.genesys.com/Documentation/HTCC/latest/Dep/InstallationProcedures
+
Refer to [[Documentation:HTCC:Dep:InstallationProcedures|InstallationProcedures]] for information on configuring GWS.
 +
 
 
==Create genesys-environment==
 
==Create genesys-environment==
 +
{{#ponycomment:Xavier|This is an internal document. Should this information be published to customers?|JIRA}}
 
http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new__Environment
 
http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new__Environment
  
 
==Create contact-center==
 
==Create contact-center==
 +
{{#ponycomment:Xavier|This is an internal document. Should this information be published to customers?|JIRA}}
 
http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new_Contact_Center
 
http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new_Contact_Center
  
 
==Links==
 
==Links==
 +
# Auth API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
 +
# Config API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
 +
# Environment API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
 +
# Provisioning API: http://<GWS_APPLICATIONS_IP>:80/provisioning/v3/*
 +
# Workspace API: http://<GWS_APPLICATIONS_IP>:80/workspace/v3/*
 +
# Provisioning UI: http://<GWS_APPLICATIONS_IP>:80/ui/provisioning/*
 +
# Workspace UI: http://<GWS_APPLICATIONS_IP>:80/ui/wwe/*
 +
# Portainer http://<GWS_APPLICATIONS_IP>:9000, http://<GWS_DATA_IP>:9000, http://<GWS_MONITORING_IP>:9000
  
Auth API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
 
  
Config API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
+
==Minimal Setup ==
 +
{{#ponycomment:Xavier|Should this be included? |JIRA}}
  
Environment API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
+
To run the demo environment on your laptop, please follow these steps:
 
+
# Connect to Genesys VPN to be able to pull GWS-microservices images.
Provisioning API: http://<GWS_APPLICATIONS_IP>:80/provisioning/v3/*
+
# Install Docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
 
+
# Install Docker-Compose: https://docs.docker.com/compose/install/
Workspace API: http://<GWS_APPLICATIONS_IP>:80/workspace/v3/*
+
Add Genesys Docker registry keys to your "/etc/docker/certs.d" directory.
 
+
# Get the "gws-microservices" hg repository.<pre> $ cd gws-microservices/production/premise/docker/docker/minimal<pre><pre>$ docker-compose up</pre>
Provisioning UI: http://<GWS_APPLICATIONS_IP>:80/ui/provisioning/*
+
# Wait a couple of minutes for bootstrap process to finish.
 
+
# Open http://127.0.0.1:9000 to see the Portainer web-interface, select "Local connection".
Workspace UI: http://<GWS_APPLICATIONS_IP>:80/ui/wwe/*
+
# Open http://127.0.0.1/auth/v3/ui/sign-in.html to see the GWS-auth web-interface.
 
 
Portainer http://<GWS_APPLICATIONS_IP>:9000, http://<GWS_DATA_IP>:9000, http://<GWS_MONITORING_IP>:9000
 
 
 
 
 
=A bare minimum docker-compose GWS-microservices setup. For presentation purposes only.=
 
 
 
==To run the demo environment on your laptop, please follow these steps:==
 
 
 
1) Connect to Genesys VPN to be able to pull GWS-microservices images.
 
 
 
2) Install Docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
 
 
 
3) Install Docker-Compose: https://docs.docker.com/compose/install/
 
 
 
4) Add Genesys Docker registry keys to your "/etc/docker/certs.d" directory.
 
 
 
5) Get the "gws-microservices" hg repository.
 
 
 
6) $ cd gws-microservices/production/premise/docker/docker/minimal
 
 
 
7) $ docker-compose up
 
 
 
8) Wait a couple of minutes for bootstrap process to finish.
 
 
 
9) Open http://127.0.0.1:9000 to see the Portainer web-interface, select "Local connection".
 
 
 
10) Open http://127.0.0.1/auth/v3/ui/sign-in.html to see the GWS-auth web-interface.
 
  
 
[[Category:V:HTCC:9.0.0DRAFT]]
 
[[Category:V:HTCC:9.0.0DRAFT]]

Revision as of 06:41, April 5, 2019

Deploying GWS in Test Labs

Install Docker and docker-compose

  1. Install Docker
  2. Install Docker-Compose

Install GWS micro-services

  1. Copy the premise directory to all target machines as /opt/genesys/gws/premise. This would be the application's prefix.
  2. Run the following command at all target machines:
    # ./bin/preflight.sh
    Important
    This script disables firewalls and sets SElinux to permissive mode.
  3. Run the following command at all target machines:
    # ./bin/dump-restore.sh restore

Create GWS-data service Containers

  1. Create a systemd unit.
    SERVICE_NAME="data" ./bin/register-systemd-unit.sh
  2. Start the data services.
    systemctl start gws-data.service
  3. Configure Redis.
    ./bin/redis-starter.sh

Create GWS-applications Containers

  1. Create a systemd unit.
    SERVICE_NAME="applications" ./bin/register-systemd-unit.sh
  2. Start the applications services.
    systemctl start gws-applications.service
  3. Create the client.
    ./bin/client-curl-script.sh
  4. Check the status of applications.
    ./bin/healthcheck.sh

Configure GWS

Configure Config Server

Refer to InstallationProcedures for information on configuring GWS.

Create genesys-environment

http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new__Environment

Create contact-center

http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new_Contact_Center

Links

  1. Auth API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
  2. Config API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
  3. Environment API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
  4. Provisioning API: http://<GWS_APPLICATIONS_IP>:80/provisioning/v3/*
  5. Workspace API: http://<GWS_APPLICATIONS_IP>:80/workspace/v3/*
  6. Provisioning UI: http://<GWS_APPLICATIONS_IP>:80/ui/provisioning/*
  7. Workspace UI: http://<GWS_APPLICATIONS_IP>:80/ui/wwe/*
  8. Portainer http://<GWS_APPLICATIONS_IP>:9000, http://<GWS_DATA_IP>:9000, http://<GWS_MONITORING_IP>:9000


Minimal Setup

To run the demo environment on your laptop, please follow these steps:

  1. Connect to Genesys VPN to be able to pull GWS-microservices images.
  2. Install Docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
  3. Install Docker-Compose: https://docs.docker.com/compose/install/
  4. Add Genesys Docker registry keys to your "/etc/docker/certs.d" directory.
  5. Get the "gws-microservices" hg repository.
     $ cd gws-microservices/production/premise/docker/docker/minimal<pre><pre>$ docker-compose up
  6. Wait a couple of minutes for bootstrap process to finish.
  7. Open http://127.0.0.1:9000 to see the Portainer web-interface, select "Local connection".
  8. Open http://127.0.0.1/auth/v3/ui/sign-in.html to see the GWS-auth web-interface.
Comments or questions about this documentation? Contact us for support!