Refresh all TCS related Jobs

There is now a simple page that will allow the jobs to be re-run with default configuration as detailed on https://github.com/Health-Education-England/TIS-SYNC/ (README). The information below is deprecated and it will not be possible soon as the blob store resources will not be migrated to AWS.



// Person Placement Employing Body Job
cd /tmp
mkdir javatools
cd javatools
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jmxterm-1.0.0-uber.jar
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jdk-8-linux-x64.tar.gz
cd ..
docker cp javatools tcs_tcs_1:/tmp
docker exec -it tcs_tcs_1 /bin/bash
cd /tmp/javatools
tar -zxvf jdk-8-linux-x64.tar.gz
rm jdk-8-linux-x64.tar.gz
./jdk1.8.0_202/bin/java -jar jmxterm-1.0.0-uber.jar
open 1
domain tcs.mbean
bean tcs.mbean:name=PersonPlacementEmployingBodyJob
run PersonPlacementEmployingBodyFullSync
run isCurrentlyRunning
exit


// Person Placement Training Body Job
cd /tmp
mkdir javatools
cd javatools
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jmxterm-1.0.0-uber.jar
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jdk-8-linux-x64.tar.gz
cd ..
docker cp javatools tcs_tcs_1:/tmp
docker exec -it tcs_tcs_1 /bin/bash
cd /tmp/javatools
tar -zxvf jdk-8-linux-x64.tar.gz
rm jdk-8-linux-x64.tar.gz
./jdk1.8.0_202/bin/java -jar jmxterm-1.0.0-uber.jar
open 1
domain tcs.mbean
bean tcs.mbean:name=PersonPlacementTrainingBodyTrustJob
run PersonPlacementTrainingBodyFullSync
run isCurrentlyRunning
exit


// Post Employing Body Trust Job
cd /tmp
mkdir javatools
cd javatools
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jmxterm-1.0.0-uber.jar
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jdk-8-linux-x64.tar.gz
cd ..
docker cp javatools tcs_tcs_1:/tmp
docker exec -it tcs_tcs_1 /bin/bash
cd /tmp/javatools
tar -zxvf jdk-8-linux-x64.tar.gz
rm jdk-8-linux-x64.tar.gz
./jdk1.8.0_202/bin/java -jar jmxterm-1.0.0-uber.jar
open 1
domain tcs.mbean
bean tcs.mbean:name=PostEmployingBodyTrustJob
run PostEmployingBodyTrustFullSync
run isCurrentlyRunning
exit


// Post Training Body Trust Job
cd /tmp
mkdir javatools
cd javatools
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jmxterm-1.0.0-uber.jar
wget https://heetisrequiredapps.blob.core.windows.net/javafiles/jdk-8-linux-x64.tar.gz
cd ..
docker cp javatools tcs_tcs_1:/tmp
docker exec -it tcs_tcs_1 /bin/bash
cd /tmp/javatools
tar -zxvf jdk-8-linux-x64.tar.gz
rm jdk-8-linux-x64.tar.gz
./jdk1.8.0_202/bin/java -jar jmxterm-1.0.0-uber.jar
open 1
domain tcs.mbean
bean tcs.mbean:name=PostTrainingBodyTrustJob
run PostTrainingBodyTrustFullSync
run isCurrentlyRunning
exit




tail /var/log/apps/tcs.log -f

When your back at the bash-4.4# prompt you can run the following command to keep an eye on the progress of the sync