ska-tango-images-tango-dsconfig
This image contains json2tango provided by dsconfig. json2tango allows loading
Tango configuration from a json file into a Tango database.
Summary
Release 0.6.3 of ska-tango-images provides the 1.8.3 tag of the ska-tango-images-tango-dsconfig OCI image.
The image uses ska-tango-images-tango-python as a base image and so
provides the same features, in addition to the json2tango utility.
Warning
For compatibility reasons, the working directory for this image is “/” as opposed to “/home/tango”. As the default user is still “tango”, this image does not have the permissions required to write to the working directory.
Included Software
Package |
Version |
|---|---|
PyTango |
10.0.2 |
dsconfig |
1.8.0 |
tango_admin |
1.27 |
cppTango |
10.0.2 |
ZeroMQ |
4.3.5 |
omniORB |
4.3.2 |
opentelemetry-cpp |
1.19.0 |
Usage Example
To produce a JSON dump of the contents of a Tango database running at
TANGO_HOST to the file tango-dump.json:
docker run --rm --env TANGO_HOST=$TANGO_HOST --net=host \
artefact.skao.int/ska-tango-images-tango-dsconfig:1.8.3 \
python -m dsconfig.dump > tango-dump.json
To load the same JSON dump (found in the current directory) back into the Tango database:
docker run --rm --env TANGO_HOST=$TANGO_HOST --net=host -v .:/mnt:z \
artefact.skao.int/ska-tango-images-tango-dsconfig:1.8.3 \
json2tango --write /mnt/tango-dump.json