Skip to content

Deployment of new versions

Source code

Source code is located at github.com.

Web application

QA commits will trigger the new version to be deployed on the test environment. This should work using webhooks from github. On the other hand, Master branch commits require a manual intervention in order to deploy the new version to Openshift. Just do:

1. Go to openshift.cern.ch
2. Choose doconverter project
3. Builds, click last build and then rebuild

It should take a few minutes. The deployment can be done on the fly even with load. If there is a lot of documents coming a few will get an error (less than 4 while doing load testing) otherwise it should be transparent.

Windows servers

Follow these steps:

  1. Log into each server with the service account
  2. Open a console
  3. set the virtualenvioronment running workon doconverter
  4. Stop the document running:

(doconverter) C:\doconverter\doconverter\doconverter\engines>python converter_daemon.py --s
Namespace(archive=0, basic_monitoring=False, computer=None, nprocesses=2, remove_stopper=False, sendtaskid=0, stopper=True, timetosleep=2)
[2017-05-15 17:44:50,590 converter_daemon.py:83 - <module>() ] Creates stopper file and exists!
5. Get the new git version: git pull origin master 6. Start the converter:

(doconverter) C:\doconverter\doconverter\doconverter\engines>python converter_daemon.py --r
Namespace(archive=0, basic_monitoring=False, computer=None, nprocesses=2, remove_stopper=True, sendtaskid=0, stopper=False, timetosleep=2)
[2017-05-15 17:46:16,245 converter_daemon.py:92 - <module>() ] remove stopper from file system and exists!

(doconverter) C:\doconverter\doconverter\doconverter\engines>python converter_daemon.py --n 4

Last update: October 4, 2021