CTS2-LE Installation and Deployment: Unterschied zwischen den Versionen
Krebs (Diskussion | Beiträge) |
Krebs (Diskussion | Beiträge) K |
||
| Zeile 3: | Zeile 3: | ||
= Delivered artifacts = | = Delivered artifacts = | ||
You will be receiving 3 artifacts that allow for a fast and clean installation of CTS2-LE. | You will be receiving 3 artifacts that allow for a fast and clean installation of CTS2-LE. | ||
| − | + | # a web application archive ('''WebCts2LE.war''') which will be deployed in a servlet container | |
| − | + | # a start-up directory which holds the licensed terminologies | |
| − | + | # a script ('''WebCts2LEStarter''') for loading the store content | |
= General settings = | = General settings = | ||
| Zeile 27: | Zeile 27: | ||
Since the resource root is one of the building blocks of CTS2-LE, no arbitrary manipulation of the files within the directory should be done. Only apply changes to the files which are described in this section. | Since the resource root is one of the building blocks of CTS2-LE, no arbitrary manipulation of the files within the directory should be done. Only apply changes to the files which are described in this section. | ||
</div> | </div> | ||
| + | |||
| + | Extract the delivered start-up directory to the defined destination and set access rights recursively. | ||
| + | sudo chmod -R 777 $CTS2LE_RESOURCE_ROOT | ||
| + | |||
| + | = Deployment = | ||
| + | The delivered script '''WebCts2LEStarter.sh''' serves 2 use cases: | ||
| + | # it automatically deploys the war-file | ||
| + | # it faciliates the process of loading custom terminologies | ||
| + | |||
| + | Before starting the script, check the value of the tomcat version and tomcat home-directory. | ||
| + | NAME=tomcat7 | ||
| + | CATALINA_BASE=/var/lib/$NAME | ||
| + | |||
| + | Finally, start the script by appending the war-file as an argument. | ||
| + | ./WebCts2LEStarter.sh WebCts2LE.war | ||
| + | |||
| + | |||
| + | = Troubleshooting = | ||
| + | * Do not run the starter script with root privileges. | ||
Version vom 9. Juni 2015, 14:47 Uhr
This section describes how to install and deploy a CTS2-LE server instance along with the navigator front-end. It has to be ensured that the system fulfils the defined prerequisites. The following steps are aligned to the recommended system environment and hence offer commands on the basis of an Ubuntu-like OS.
Inhaltsverzeichnis
Delivered artifacts
You will be receiving 3 artifacts that allow for a fast and clean installation of CTS2-LE.
- a web application archive (WebCts2LE.war) which will be deployed in a servlet container
- a start-up directory which holds the licensed terminologies
- a script (WebCts2LEStarter) for loading the store content
General settings
Configure roles and users
Since the web application can be managed by means of the tomcat manager interface, it is useful to configure a role and a user. In /var/lib/tomcat7/conf/tomcat-users.xml add a role manager-gui and assign it to a user in the following manner:
<role rolename="manager-gui"/>
<user username="user" password="password" roles="manager-gui"/>
Increasing Java heap space
Experience has shown that increasing the heap space for tomcat positively influences the servers efficiency. Therefore, it is recommended to permanently set the environment variable CATALINA_OPTS.
CATALINA_OPTS="-Xms512m -Xmx900m"
Setting the resource root
Select a directory where the terminology store will be located. The directory has to be specified by setting an environment variable called CTS2LE_RESOURCE_ROOT.
Since the resource root is one of the building blocks of CTS2-LE, no arbitrary manipulation of the files within the directory should be done. Only apply changes to the files which are described in this section.
Extract the delivered start-up directory to the defined destination and set access rights recursively.
sudo chmod -R 777 $CTS2LE_RESOURCE_ROOT
Deployment
The delivered script WebCts2LEStarter.sh serves 2 use cases:
- it automatically deploys the war-file
- it faciliates the process of loading custom terminologies
Before starting the script, check the value of the tomcat version and tomcat home-directory.
NAME=tomcat7 CATALINA_BASE=/var/lib/$NAME
Finally, start the script by appending the war-file as an argument.
./WebCts2LEStarter.sh WebCts2LE.war
Troubleshooting
- Do not run the starter script with root privileges.