Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
47e8de4f
Commit
47e8de4f
authored
4 years ago
by
hammonds
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/dm_deploy_test_single.sh
+80
-0
80 additions, 0 deletions
sbin/dm_deploy_test_single.sh
with
80 additions
and
0 deletions
sbin/dm_deploy_test_single.sh
0 → 100755
+
80
−
0
View file @
47e8de4f
#!/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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment