Skip to content
Snippets Groups Projects
Commit 47e8de4f authored by hammonds's avatar hammonds
Browse files

Add new script to set things up with CONDA keeping all services on one

computer
parent bcc84dec
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#
# Script used for deploying DM test environment.
#
# Usage:
#
# $0
#
MY_DIR=`dirname $0` && cd $MY_DIR && MY_DIR=`pwd`
SBIN_DIR=$MY_DIR/sbin
if [ -z "${DM_ROOT_DIR}" ]; then
DM_ROOT_DIR=$MY_DIR/..
fi
DM_ENV_FILE=${DM_ROOT_DIR}/setup.sh
if [ ! -f ${DM_ENV_FILE} ]; then
echo "Environment file ${DM_ENV_FILE} does not exist."
exit 2
fi
. ${DM_ENV_FILE} > /dev/null
export DM_DEPLOY_CONF=$DM_ROOT_DIR/etc/dm.deploy.conf
cd $DM_ROOT_DIR
echo ""
echo "STARTING TEST SYSTEM DEPLOYMENT"
echo ""
echo "***************************"
echo "DEPLOYING CA"
make ca
echo ""
echo "***************************"
echo "DEPLOYING CLEAN DB"
make db
echo ""
echo "***************************"
echo "DEPLOYING DS WEB SERVICE"
make deploy-ds-web-service
echo ""
echo "***************************"
echo "DEPLOYING APS DB WEB SERVICE"
make deploy-aps-db-web-service
echo ""
echo "***************************"
echo "DEPLOYING WEB PORTAL"
make configure-web-portal
make deploy-web-portal
echo ""
echo "***************************"
echo "DEPLOYING DAQ WEB SERVICE"
make deploy-daq-web-service
echo ""
echo "***************************"
echo "DEPLOYING CAT WEB SERVICE"
make deploy-cat-web-service
echo ""
echo "***************************"
echo "DEPLOYING PROC WEB SERVICE"
make deploy-proc-web-service
echo "Setting up remote PROC WEB SERVICE"
make setup-remote-proc-web-service
echo ""
echo "***************************"
echo "Configuring NGINX"
$DM_SUPPORT_DIR/sbin/configure_nginx_mongo_express.sh
echo ""
echo "***************************"
echo "Restarting DAQ Services"
$DM_ROOT_DIR/etc/init.d/dm-daq-services restart
echo ""
echo "***************************"
echo "Checking all Services"
$DM_ROOT_DIR/etc/init.d/dm-db-services status
$DM_ROOT_DIR/etc/init.d/dm-ds-services status
$DM_ROOT_DIR/etc/init.d/dm-daq-services status
echo ""
echo "***************************"
echo ""
echo "TEST SYSTEM DEPLOYMENT DONE"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment