build: fixed deployment script
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# The version can be a git tag, branch or commit hash.
|
||||
|
||||
# BEC version to use
|
||||
BEC_AUTODEPLOY_VERSION="cli_launch"
|
||||
BEC_AUTODEPLOY_VERSION="master"
|
||||
|
||||
# ophyd_devices version to use
|
||||
OPHYD_DEVICES_AUTODEPLOY_VERSION="master"
|
||||
|
||||
18
deployment/bec-server-config.yaml
Normal file
18
deployment/bec-server-config.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
redis:
|
||||
host: localhost
|
||||
port: 6379
|
||||
mongodb:
|
||||
host: localhost
|
||||
port: 27017
|
||||
scibec:
|
||||
host: http://[::1]
|
||||
port: 3030
|
||||
beamline: "CSAXS"
|
||||
service_config:
|
||||
general:
|
||||
reset_queue_on_cancel: True
|
||||
enforce_ACLs: False
|
||||
file_writer:
|
||||
plugin: default_NeXus_format
|
||||
base_path: ./
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
# deployment script to be translated to Ansible
|
||||
BEAMLINE_REPO=gitlab.psi.ch:bec/csaxs-bec.git
|
||||
|
||||
# NOT NEEDED since the beamline repo will be autodeployed
|
||||
# BEAMLINE_REPO=gitlab.psi.ch:bec/csaxs-bec.git
|
||||
# git clone git@$BEAMLINE_REPO
|
||||
|
||||
module add psi-python38/2020.11
|
||||
|
||||
# start redis
|
||||
# docker run --network=host --name redis-bec -d redis
|
||||
docker run --network=host --name redis-bec -d redis
|
||||
# alternative:
|
||||
# conda install redis; redis-server &
|
||||
# conda install -y redis; redis-server &
|
||||
|
||||
git clone git@$BEAMLINE_REPO
|
||||
|
||||
# get the target versions for ophyd_devices and BEC
|
||||
source ./csaxs-bec/deployment/autodeploy_versions
|
||||
|
||||
git clone -b $OPHYD_DEVICES_AUTODEPLOY_VERSION git@gitlab.psi.ch:bec/ophyd_devices.git
|
||||
git clone -b $BEC_AUTODEPLOY_VERSION git@gitlab.psi.ch:bec/bec.git
|
||||
git clone -b $OPHYD_DEVICES_AUTODEPLOY_VERSION https://gitlab.psi.ch/bec/ophyd_devices.git
|
||||
git clone -b $BEC_AUTODEPLOY_VERSION https://gitlab.psi.ch/bec/bec.git
|
||||
|
||||
# install BEC
|
||||
cd bec
|
||||
|
||||
Reference in New Issue
Block a user