build: fixed deployment script

This commit is contained in:
2023-07-10 10:30:59 +02:00
parent 01248d90c9
commit 2335e2ccc1
3 changed files with 29 additions and 7 deletions

View File

@@ -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"

View 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: ./

View File

@@ -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