This Docker container provides a lightweight environment to use pyAMI (v5.1.7) for accessing ATLAS metadata through the AMI interface. It supports both certificate-based and login/password-based authentication.
docker build -t pyami-atlas:5.1.7 .docker save -o pyami-atlas-5.1.7.tar pyami-atlas:5.1.7docker load -i pyami-atlas-5.1.7.tardocker run --rm \
-e B64_USER_PROXY="$(base64 path_to_my_proxy_file)" \
pyami-atlas:5.1.7 \
ami cmd GetSessionInfodocker run --rm \
-e AMI_LOGIN="your_login" \
-e AMI_PASSWORD="your_password" \
pyami-atlas:5.1.7 \
ami cmd GetSessionInfodocker run -d --name pyami-session \
-e B64_USER_PROXY="$(base64 path_to_my_proxy_file)" \
pyami-atlas:5.1.7Then execute:
docker exec pyami-session ami cmd GetSessionInfodocker run -d --name pyami-session \
-e AMI_LOGIN="your_login" \
-e AMI_PASSWORD="your_password" \
pyami-atlas:5.1.7Then execute:
docker exec pyami-session ami cmd GetSessionInfodocker run -it \
-e B64_USER_PROXY="$(base64 path_to_my_proxy_file)" \
pyami-atlas:5.1.7docker run -it \
-e AMI_LOGIN="your_login" \
-e AMI_PASSWORD="your_password" \
pyami-atlas:5.1.7| Variable Name | Description |
|---|---|
B64_USER_PROXY |
(optional) Base64-encoded X.509 proxy certificate content. |
AMI_LOGIN |
(optional) AMI login username. |
AMI_PASSWORD |
(optional) AMI login password. |
| Note: |
- If both a proxy certificate (
B64_USER_PROXY) and login credentials are provided, the proxy takes precedence. - In daemon mode, authentication is only performed at container startup.