Steps to deploy DAQ on OSX
Step-by-step guide
- Create a user with the user-name: dmadmin . Note, the password for this user does not matter, we will setup ssh password-less login using ssh keys.
- Open a terminal and login as dmadmin
- su dmadmin
Get the source code:
svn co https:
//subversion.xray.aps.anl.gov/DataManagement/trunk <DM_ROOT_DIR>
- Commend out function call in dm-daq-web-service script
- vi <DM_ROOT_DIR>/etc/init.d/dm-daq-web-service
- comment out line 18 (line number may have changed since this edit)
- #. /etc/rc.d/init.d/functions
- Make the daq
cd <DM_DIST_DIR>
make support-daq
make
dm-deploy-daq-web-service
- This should be it but OSX 10.10.5 (version as of writing this wiki) have openssl version 0.9.8zg. This version does not support TLSv1_2 which is needed. A work around is to install Anaconda python which comes with openssl verions 1.0.1k
- Prepend <anaconda_install_dir>/bin to your PATH environment variable.
- export PATH=<anaconda_install_dir>/bin:$PATH
- export PYTHONPATH=<DM_ROOT_DIR>/lib/python
- Install needed python libraries
- pip install python-ldap watchdog
- Download patched cherrypy package and install it
- cd /tmp
- wget https://subversion.xray.aps.anl.gov/DataManagement/support/src/CherryPy-3.6.0.dm.tar.gz
- tar zxvf CherryPy-3.6.0.dm.tar.gz
- cd CherryPy-3.6.0.dm
- python setup.py build
- python setup.py install
- Kill and restart daq service
- pkill -SIGINT -f dsWebService
- cd <DM_ROOT_DIR>/sbin
- python daqWebService.py &
- Note that when you restart your terminal you will have to
- source <DM_ROOT_DIR>/../etc/dm.setup.sh
- export PATH=<anaconda_install_dir>/bin:$PATH
Related articles