ConfigDB
Install ConfigDB
Install docker
for ALMA9
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
sudo systemctl enable --now docker
sudo docker run hello-world
Clone configdb
:
git clone https://gitlab.cern.ch/atlas-itk-pixel-systemtest/itk-demo-sw/itk-demo-configdb.git configdb
cd configdb/example/
./config
sudo docker network create deminet
to start container:
to stop container:
import runkey
:
some commands using curl
:
curl -X 'GET' \
'http://localhost:5999/api/tag/tree?name=example_runkey&stage=true&payload_data=false&depth=-1&view=1&format=false' \
-H 'accept: application/json'
curl -X 'DELETE' \
'http://localhost:5999/api/stage?identifier=example_runkey&stage=true' \
-H 'accept: application/json'
curl -X 'POST' \
'http://localhost:5999/api/stage/commit?keep_ids=false' \
-H 'accept: application/json' -H 'Content-Type: application/json' \
-d '{
"identifier": "example_runkey",
"name": "example_runkey",
"type": "runkey",
"author": "Jonas"
}'
Install configdb
This installs pyconfigdb
version 2.3.4
pip install pyconfigdb --extra-index-url https://gitlab.cern.ch/api/v4/groups/33370/-/packages/pypi/simple
pip install pyconfigdb==3.0.1 --extra-index-url https://gitlab.cern.ch/api/v4/groups/33370/-/packages/pypi/simple
Install uv
Install uv
to install configdb
version 3.12