Difference between revisions of "InContext Server Installation"

From Lingoport Wiki
Jump to: navigation, search
(Checking InContext Server Installation)
Line 1: Line 1:
 
 
= Checking InContext Server Installation =
 
= Checking InContext Server Installation =
The typical G11n system is installed using the '''Lingoport Stack Installer'''.
+
The typical G11n system can be installed using either the '''Lingoport Stack Installer''' or a Docker-based method. Depending on the installation method used, the process to check if the InContext Server is installed will differ.
If that is the case, then the InContext Server should have been '''installed''' at that time. If your system was updated with '''Lingoport Stack Updater''', the InContext Server needs to be installed manually.
 
   
  +
== Checking Installation for Systems Installed with Lingoport Stack Installer ==
To check:
 
  +
If your system was installed using the Lingoport Stack Installer, check the installation with:
  +
<pre>
  +
$sudo systemctl status incontext-server
  +
</pre>
  +
Output should indicate if the service is active. If the service is not found, it needs to be installed manually.
   
  +
== Checking Installation for Docker-based Systems ==
$sudo systemctl status incontext-server
 
  +
For systems intending to use the Docker-based installation, check if the Docker container for the InContext Server is running with:
  +
<pre>
  +
$ sudo docker ps | grep incontext-server
  +
</pre>
  +
If there's no output, the container is not running, indicating the InContext Server needs to be set up or there is an issue that needs to be addressed.
  +
Users in the 'docker' group may optionally omit use of sudo.
   
  +
= Docker-based Installation of InContext Server =
and output:
 
  +
For a new, simplified deployment process, the InContext Server can be installed using Docker. This section outlines the Docker-based installation process.
   
  +
== Requirements ==
● incontext-server.service - InContext Server Service
 
  +
* Docker installed on your system
Loaded: loaded (/etc/systemd/system/incontext-server.service; disabled; vendor preset: disabled)
 
  +
* Configuration details prepared in `install.conf`
Active: inactive (dead)
 
   
  +
== Installation Process ==
If the output says something about the service not found, then it needs to be installed following the [[#Installation_Steps|Installation Steps]] below.
 
  +
# Modify the `install.conf` file with your specific configurations, including Docker Hub credentials (account with read access to the InContext Image will be shared by Lingoport), MySQL root password, and desired server port.
  +
# Execute the `InstallIncontext.sh` script with sudo privileges. This script will:
  +
#* Create necessary Docker network and volumes
  +
#* Pull the Lingoport InContext Server image from Docker Hub
  +
#* Start the InContext Server and MySQL containers with appropriate configurations
   
If the service exists, then proceed to the [[#Running_the_InContext_Server|Running the InContext Server]] below and start the service.
 
   
  +
Verify the installation by checking the Docker container status and accessing the InContext Server through the web browser.
= Installing Manually =
 
== InContext Server Installation Requirements ==
 
The InContext Server requires the following:
 
* Java 8
 
* MySQL 5.5.3+
 
   
  +
== Script Execution ==
Since the Lingoport Suite already requires Java and MySQL, the only additional requirement for the InContext Server is Tomcat. The InContext Server provided by Lingoport installs Tomcat 8.5.x.
 
  +
<pre>
  +
$ sudo ./InstallIncontext.sh
  +
</pre>
   
  +
You may be prompted if there is missing info in the install.conf. Ensure you follow any prompts provided by the script for a successful installation.
== InContext Server Files ==
 
  +
There are three files that comprise the InContext Server. The Lingoport InContext Server automated installation process will put these files in the appropriate location.
 
  +
= Manual Installation =
* incontext-server.war
 
  +
For systems not utilizing Docker or needing a specific setup, manual installation is also available.
* incontext-server.sh
 
  +
* IncontextServerConfig.groovy
 
  +
== InContext Server Installation Requirements ==
  +
* Java 11
  +
* MySQL 8
  +
* Tomcat 9.0.x
  +
  +
== Installation Steps - Docker ==
  +
1. Download and unzip the `IncontextServer-<version>.zip` file.
  +
2. Modify `install.conf` with necessary details.
  +
3. Execute `./install.sh` with sudo privileges.
   
The <b>incontext-server.war</b> is the server itself and must be placed under the <b>tomcat</b>/webapps directory. <br>
 
The <b>incontext-server.sh</b> file is a script for starting/stopping the InContext Server and must be configured and placed in the <b>tomcat</b> directory. <br>
 
The <b>IncontextServerConfig.groovy</b> file is the configuration file for the InContext Server and must be configured and placed in the <b>tomcat</b> directory.
 
   
== Installation Steps ==
+
== Installation Steps - Non-Docker ==
   
 
1. Download and unzip the '''IncontextServer-<version>.zip''' file from our SFTP site.
 
1. Download and unzip the '''IncontextServer-<version>.zip''' file from our SFTP site.
Line 50: Line 69:
 
Incontext Server successfully installed.
 
Incontext Server successfully installed.
   
= Running the InContext Server =
+
== InContext Server Files ==
  +
  +
  +
There are three files that comprise the InContext Server. The Lingoport InContext Server automated installation process will put these files in the appropriate location.
  +
  +
  +
* incontext-server.war
  +
* incontext-server.sh
  +
* IncontextServerConfig.groovy
  +
  +
  +
== Installation Steps - Non-Docker ==
  +
  +
The <b>incontext-server.war</b> is the server itself and must be placed under the <b>tomcat</b>/webapps directory. <br>
  +
  +
  +
The <b>incontext-server.sh</b> file is a script for starting/stopping the InContext Server and must be configured and placed in the <b>tomcat</b> directory. <br>
  +
  +
  +
The <b>IncontextServerConfig.groovy</b> file is the configuration file for the InContext Server and must be configured and placed in the <b>tomcat</b> directory.
  +
  +
  +
  +
= Running the InContext Server - Non-Docker =
   
 
To start the InContext Server:
 
To start the InContext Server:
Line 65: Line 107:
 
To check the status of the InContext Server:
 
To check the status of the InContext Server:
 
$sudo systemctl status incontext-server
 
$sudo systemctl status incontext-server
  +
  +
  +
= Next Steps =
  +
Whether installed via Docker or manually, the next steps involve configuring and using the InContext Server for your localization needs. For more details on post-installation setup and usage, refer to the InContext Server Users Guide.
  +
  +
[[InContext_Capture_Installation | InContext Capture Installation]] provides additional resources for setting up InContext for Translation.
   
 
= Next Steps =
 
= Next Steps =

Revision as of 21:58, 1 March 2024

Checking InContext Server Installation

The typical G11n system can be installed using either the Lingoport Stack Installer or a Docker-based method. Depending on the installation method used, the process to check if the InContext Server is installed will differ.

Checking Installation for Systems Installed with Lingoport Stack Installer

If your system was installed using the Lingoport Stack Installer, check the installation with:

$sudo systemctl status incontext-server

Output should indicate if the service is active. If the service is not found, it needs to be installed manually.

Checking Installation for Docker-based Systems

For systems intending to use the Docker-based installation, check if the Docker container for the InContext Server is running with:

$ sudo docker ps | grep incontext-server

If there's no output, the container is not running, indicating the InContext Server needs to be set up or there is an issue that needs to be addressed. Users in the 'docker' group may optionally omit use of sudo.

Docker-based Installation of InContext Server

For a new, simplified deployment process, the InContext Server can be installed using Docker. This section outlines the Docker-based installation process.

Requirements

  • Docker installed on your system
  • Configuration details prepared in `install.conf`

Installation Process

  1. Modify the `install.conf` file with your specific configurations, including Docker Hub credentials (account with read access to the InContext Image will be shared by Lingoport), MySQL root password, and desired server port.
  2. Execute the `InstallIncontext.sh` script with sudo privileges. This script will:
    • Create necessary Docker network and volumes
    • Pull the Lingoport InContext Server image from Docker Hub
    • Start the InContext Server and MySQL containers with appropriate configurations


Verify the installation by checking the Docker container status and accessing the InContext Server through the web browser.

Script Execution

$ sudo ./InstallIncontext.sh

You may be prompted if there is missing info in the install.conf. Ensure you follow any prompts provided by the script for a successful installation.

Manual Installation

For systems not utilizing Docker or needing a specific setup, manual installation is also available.

InContext Server Installation Requirements

  • Java 11
  • MySQL 8
  • Tomcat 9.0.x

Installation Steps - Docker

1. Download and unzip the `IncontextServer-<version>.zip` file. 2. Modify `install.conf` with necessary details. 3. Execute `./install.sh` with sudo privileges.


Installation Steps - Non-Docker

1. Download and unzip the IncontextServer-<version>.zip file from our SFTP site.

2. Change directory: cd incontext-server

3. Modify install.conf to set the values required by the install. Any information left blank will be prompted by the install script.

  • MYSQL_ROOT_PASS - this is the password that was used or created by the Stack Installer or Stack Updater.
  • INCONTEXT_MYSQL_USER / INCONTEXT_MYSQL_PASS - this is a new MySQL username and password.
  • INSTALL_TOMCAT_HERE='/usr/local/tomcat' - Unless there is reason to change the location, leave it at the default.

4. Run the install script (note you must have sudo privileges): ./install.sh. If it is successful, one should see:

Incontext Server successfully installed.

InContext Server Files

There are three files that comprise the InContext Server. The Lingoport InContext Server automated installation process will put these files in the appropriate location.


  • incontext-server.war
  • incontext-server.sh
  • IncontextServerConfig.groovy


Installation Steps - Non-Docker

− The incontext-server.war is the server itself and must be placed under the tomcat/webapps directory.

− The incontext-server.sh file is a script for starting/stopping the InContext Server and must be configured and placed in the tomcat directory.

− The IncontextServerConfig.groovy file is the configuration file for the InContext Server and must be configured and placed in the tomcat directory.

Running the InContext Server - Non-Docker

To start the InContext Server:

$sudo systemctl start incontext-server

Then browse to: http://yourserverurl:8081/incontext-server

InContextServerLogin.jpg


To stop the InContext Server:

$sudo systemctl stop incontext-server

To check the status of the InContext Server:

$sudo systemctl status incontext-server


Next Steps

Whether installed via Docker or manually, the next steps involve configuring and using the InContext Server for your localization needs. For more details on post-installation setup and usage, refer to the InContext Server Users Guide.

InContext Capture Installation provides additional resources for setting up InContext for Translation.

Next Steps

To continue installing InContext for Translation go to: InContext Capture Installation

For information on how to proceed after installation, please see the: InContext Server Users Guide