Files
csaxs_bec/deployment/deploy.sh
2023-07-07 14:39:22 +02:00

25 lines
662 B
Bash
Executable File

# deployment script to be translated to Ansible
BEAMLINE_REPO=gitlab.psi.ch:bec/csaxs-bec.git
# start redis
# docker run --network=host --name redis-bec -d redis
# alternative:
# conda install 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
# install BEC
cd bec
source ./bin/install_bec_dev.sh
cd ../
# start the BEC server
bec-server start --config ./csaxs-bec/deployment/bec-server-config.yaml