Optionally use beacon+secret file to read properties
I propose to reduce the remaining properties from the env this way:
- beacon to read the properties
- +another yml file to read the secrets (from
blissadm/local/daiquiri_private
)
That's very easy to implement.
I also would prefer to use command line argument (--config=
)instead of SIDECAR_CONFIG
but i am fine with it.
Actually
TANGO_HOST="localhost:10000",
BEACON_HOST="localhost:10001",
EWOKS_CONFIG="beacon:///ewoks/config.yml",
ISPYB_DATABASE_URL="localhost:4406/test",
ISPYB_DATABASE_USER="test",
ISPYB_DATABASE_PASSWORD="test",
CELERY_BROKER_QUEUE="default",
CELERY_EWOKS_TASK_QUEUES="tomo-sinogram-reconstruction",
EWOKS_GRAPH_LOCATION="pyrsrc://tomovis.resources/graphs",
MIMAS_SPECIFICATIONS="sidecar.celery.mimas.specifications"
Proposal
Env:
TANGO_HOST="localhost:10000",
BEACON_HOST="localhost:10001",
SIDECAR_CONFIG="beacon:///sidecar/foo.yml,/users/blissadm/local/daiquiri_private/ispyb.yml",
Config from beacon (yml):
ewoks_config: "beacon:///ewoks/config.yml"
data_policy_config: "beacon:///__init__.yml"
celery_broker_queue: "default"
celery_ewoks_task_queues: "tomo-sinogram-reconstruction"
ewoks_graph_location: "pyrsrc://tomovis.resources/graphs"
mimas_specifications: "sidecar.celery.mimas.specifications"
Secret (yml):
ispyb_database_url: "localhost:4406/test"
ispyb_database_user: "test"
ispyb_database_password: "test"
ESRF data policy
Edited by Valentin Valls