Skip to content

Installation

Check out the repository

git clone https://gitlab.esrf.fr/ui/daiquiri.git
cd daiquiri

Create a conda environment

conda create -n daiquiri
conda activate daiquiri
conda install --file requirements-conda.txt
pip install -r requirements-pip.txt
pip install --no-deps -e .

Or use an existing one and install the Daiquri dependencies

conda activate current_env
conda install --file requirements-conda.txt
pip install -r requirements-pip.txt
pip install --no-deps -e .

ESRF Specific Installation

At ESRF Bliss is used as the controls system, this needs to be installed into the daiquiri environment. The local bliss installation should be used to be consistent with other beamline operation:

cd ~/local/bliss.git
conda activate daiquiri
conda install --file requirements-conda.txt
pip install --no-deps -e .

Create a local beamline project

Create a local beamline project from the cookiecutter template, the only required information is the beamline, press enter to all other questions. The feature/sensible-defaults branch can be used to create a default app configuration.

pip install -U cookiecutter
cookiecutter https://gitlab.esrf.fr/ui/daiquiri-local  --checkout feature/sensible-defaults
cd daiquiri_idxx
git init

and locally install it

pip install --no-deps -e .

Various parts of the default configuration will need to be edited. See Configuration

Starting the server

Now use the local template script to launch the server. Assuming Daiquiri UI was installed in a sibling directory daiquiri-ui

conda activate myenv
daiquiri-server-idxx --static-folder /path/to/daiquiri-ui/build