forked from stvoutsin/taplib
-
Notifications
You must be signed in to change notification settings - Fork 0
Deploying Vollt TAP services for WFAU
stvoutsin edited this page Nov 30, 2023
·
3 revisions
The instructions below assume docker & docker-compose are installed on the machine
Note: The instructions show how to create an instance of the TAP service for the OSA archive. Repeat with the appropriate modifications for the other 3 (VSA/WSA/SSA)
git clone https://github.com/stvoutsin/vollt-docker osa
cd osa
wget https://github.com/wfau/metadata/raw/master/tap-tables/tables-osa.xml
mv tables-osa.xml config/tables.xml
database_access = jdbc
jdbc_url=jdbc:jtds:sqlserver://../TAP_SCHEMA_OSA
jdbc_driver = net.sourceforge.jtds.jdbc.Driver
db_username = ..
db_password = ..
sql_translator = sqlserver
metadata = xml
metadata_file = WEB-INF/tables.xml
file_manager = local
file_root_path = /tmp/results
version: '3'
services:
tomcat:
build:
context: .
dockerfile: Dockerfile
ports:
- "8082:8080"
docker-compose up -d
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
942b4455be17 osa-tomcat "catalina.sh run" 2 days ago Up 2 days 0.0.0.0:8082->8080/tcp, :::8082->8080/tcp osa-tomcat-1
docker-compose down
Currently we have 4 TAP services running on the wfau-vo VM. These are running as docker containers, deployed as described above:
sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f177a438c5bb ssa-tomcat "catalina.sh run" 35 minutes ago Up 35 minutes 0.0.0.0:8083->8080/tcp, :::8083->8080/tcp ssa-tomcat-1
597830b63917 wsa-tomcat "catalina.sh run" 35 minutes ago Up 35 minutes 0.0.0.0:8085->8080/tcp, :::8085->8080/tcp wsa-tomcat-1
5a8e735c84e4 vsa-tomcat "catalina.sh run" 35 minutes ago Up 35 minutes 0.0.0.0:8084->8080/tcp, :::8084->8080/tcp vsa-tomcat-1
942b4455be17 osa-tomcat "catalina.sh run" 2 days ago Up 2 days 0.0.0.0:8082->8080/tcp, :::8082->8080/tcp osa-tomcat-1
We are also monitoring them via a cron job that sends a query to each service once per hour. This is running via the library: https://github.com/stvoutsin/tapvalidator on the VM "Ulov" on the Astrotrop machines
Steps required for TAP service:
- Create VM on Openstack, with port 80 open.
- Deploy TAP services as above
- Setup NGINX proxy to redirect from port 80 to internal port for each of the TAP Services
Steps required for Database:
- Create TAP user, with read/write access (at least write access to the TAP_SCHEMA databases)
- Create a TAP_SCHEMA database for each TAP service (i.e. TAP_SCHEMA_OSA, ..)
- TAP user needs to have access to all the databases listed in the TAP service configuration: