Installing Plant Applications Universal Client Using Docker
About Installing Plant Applications Universal Client Using Docker
Installing Plant Applications Universal Client using Docker installs both the process and discrete applications. You must perform this method of installation on a Linux machine.
- Host names and server names must always be entered in lowercase.
- IP addresses of only the IPv4 version are supported.
About Preinstallation Requirements
Components Required for Plant Applications Universal Client Installation
The following diagram provides the various components used while installing Plant Applications Universal Client:
System Requirements
Item | Requirement |
---|---|
Processor | Any processor with a clock speed of 3GHz or more and minimum 8-core configuration |
RAM |
64GB
Note: For a test environment, you can use a 32GB RAM. |
Hard drive | 500GB |
RAM allocation for Docker | 45GB |
Operating System | Both the following operating systems:
|
Software Requirements
- The following Docker components on the target Linux machine:
- Docker version 18.06 (community edition)
- Docker Compose
- Docker images from public registries
- Operations Hub UAA on a Windows machine.Note: For instructions, refer to the Operations Hub UAA Installation Guide provided along with the Operations Hub installation package.
- Apache CouchDB 2.3.1 on a Windows machine.
Configure Docker Settings for Linux
To install Plant Applications Universal Client on Linux, you must configure the Docker settings to work with Plant Applications Universal Client.
Before You Begin
- Install Docker version 18.06 community edition. Tip: You can download and install Docker 18.06 from the following URL: https://docs.docker.com/install/
- Install Docker Compose. Tip: You can download and install Docker Compose from the following URL: https://docs.docker.com/compose/install/
Procedure
Results
- The Docker settings are configured.
- Docker Swarm is enabled.
What To Do Next
Download Docker Images
Before You Begin
- Configure Docker Settings for Linux.
- Ensure that Docker is running.
Procedure
docker pull confluentinc/cp-kafka:5.1.2
docker pull confluentinc/cp-zookeeper:5.1.2
docker pull confluentinc/cp-schema-registry:5.1.2
docker pull thomsch98/kafdrop
docker pull haproxy:1.8
docker pull eventuateio/eventuate-tram-cdc-mysql- service:0.21.3.RELEASE
docker pull hyper/docker-registry-web:latest
docker pull registry:2.4.1
docker pull governmentpaas/cf-uaac
Configure Apache CouchDB Settings
Apache CouchDB is a document storage application that stores the documents used in discrete applications. This topic describes how to configure the Apache CouchDB settings so that it works with Plant Applications.
Before You Begin
- Generate or procure SSL security certificates.
- Install Apache CouchDB version 2.3.1.Important: Perform a single node installation.Tip: You can download and install Apache CouchDB version 2.3.1 from the following URL: https://couchdb.apache.org/fauxton-visual-guide/index.html#intro
Procedure
Results
What To Do Next
- Create an administrative user for Apache CouchDB.Tip: Refer to the Apache CouchDB documentation for instructions on how to create an administrative user.
- Create a database named documents. Note: Do not change the database name to other than documents (for example, https://<host name or IP address of Apache CouchDB>:6984/documents).Tip: Refer to the Apache CouchDB documentation for instructions on how to create a database.
Configure Operations Hub UAA
Before You Begin
- Install Operations Hub UAA.Note: For instructions, refer to the Operations Hub UAA Installation Guide provided along with the Operations Hub installation package.
- Ensure that Docker is up and running and that Docker Swarm is enabled.
Procedure
Results
- Run the following command to verify that the stack (in this case, uaaconfig) is deployed:
docker stack ls
- Run the following command to verify that the service (in this case, uaaconfig_uaac) is running:
docker service ls
A list of services that are deployed on Docker appear. In the REPLICAS column:- The value 1/1 indicates that the service is running.
- the value 0/1 indicates that the service is not running. If that happens, verify after some time, or access the service log by running the following command:
docker service logs <name of the service>
(for example,docker service logs uaaconfig_uaac
).
If you want to remove the stack, run the following command: docker stack rm <name of the stack>
What To Do Next
Generate the Binary Files Required to Install Plant Applications Universal Client
To generate the binary files required to install Plant Applications Universal Client on the target Linux machine, you must first run the installer on a Windows machine.
Before You Begin
- You are an Administrator with execute permissions.
- Your system meets the preinstallation requirements.
- You have the following UAA and Apache CouchDB certificates in your system.
- uaa_server.crt
- uaa_server.pem
- uaa_server.key
- couch_server.crt
Important: It is mandatory to maintain the same certificate names.Tip:- To procure uaa_server.crt, uaa_server.pem,uaa_server.key files, perform the following steps:
- Navigate to the following folder on the machine on which Operations Hub UAA is installed: C:\Program Files (x86)\GE_Digital\nginx\conf\cert
- Copy the server.crt, server.pem, and server.key files to a folder on the Windows machine.
- Rename these files by adding uaa_ as the prefix (for example, server.crt to uaa_server.crt).
- To procure couch_server.crt file, perform the following steps:
- Navigate to the following folder on the machine on which Apache CouchDB is installed: <Apache CouchDB installation folder>/certs
- Copy the certificate file to a folder on the Windows machine.
- Rename the file to couch_server.crt.
- To procure the couch_server.crt file, generate a self-signed certificate or use a proprietary certificate.
Procedure
What To Do Next
- Use the binary files and configuration files that you have exported to install Plant Applications Universal Client on the target Linux machine.Note: When you transfer files from the Windows machine to the target Linux machine using a file transfer program, ensure that all the text-based files (for example, .yml, .env, .sh, .cfg, .json, and .txt files) are converted as text files. This is to replace all the carriage returns to line feeds.
Install Plant Applications Universal Client
Before You Begin
Ensure that:
- You are an Administrator with execute permissions.
- Your system meets the preinstallation requirements.
- You have generated the binary files and configuration files required to Install Plant Applications Universal Client and copied the exported files and folders to the Linux machine on which you want to install Plant Applications Universal Client.
- Docker is running.
Procedure
Results
- Run the following command to verify that the stacks (that is, PARegistry, PAServices, and PAContainer) are deployed:
docker stack ls
- Run the following command to verify that all the services in Plant Applications Universal Client are running:
docker service ls
A list of services that are deployed on Docker appear. In the REPLICAS column:- The value 1/1 indicates that the service is running.
- the value 0/1 indicates that the service is not running. If that happens, verify after some time, or access the service log by running the following command:
docker service logs <name of the service>
(for example,docker service logs PAServices_assignmentservice
).
If you want to remove the stack, run the following command: docker stack rm <name of the stack>
What To Do Next
- Access Plant Applications Universal Client using the following URL:
https://<host name>:<port number>
where <host name> and <port number> are the values that you entered while generating the binary files and configuration files required to Install Plant Applications Universal Client. - Configure Plant Applications to Enable Discrete Applications
Configure Plant Applications to Enable Discrete Applications
Only if a production line is route-enabled, you can use it in discrete applications. This topic describes how to route-enable a production line and use it in the discrete applications.
Procedure
- To use a production line in discrete applications, route-enable each production line that you want to use by right-clicking the production line, and selecting Route enabled <name of the production line>. For more information, refer to the About Enabling a Production Line for Using a Route topic in the Plant Applications Administrator Help.
- To import route-enabled production lines from one Plant Applications server to another, perform the following steps: