Rucio - Scientific Data Management (Server & Auth Container, For Public Use)
500K+
Rucio is a software framework that provides functionality to organize, manage, and access large volumes of scientific data using customisable policies. The data can be spread across globally distributed locations and across heterogeneous data centers, uniting different storage and network technologies as a single federated entity. Rucio offers advanced features such as distributed data recovery or adaptive replication, and is highly scalable, modular, and extensible. Rucio has been originally developed to meet the requirements of the high-energy physics experiment ATLAS, and is continuously extended to support LHC experiments and other diverse scientific communities.
General information and latest documentation about Rucio can be found at readthedocs or on our webpage.
For information on how to contribute to Rucio, please refer and follow our CONTRIBUTING guidelines.
This image provides the Rucio server both with and without SSL. It supports MySQL, PostgreSQL, Oracle and SQLite as database backends.
A simple server without SSL can be started like this:
docker run \
--name=rucio-server \
-p 80:80 \
rucio/rucio-server
This will start up a simple server using sqlite based on an automatically generated configuration. You can check if the server is running with curl http://localhost/ping
This should return the Rucio version used in the container. Any other curl requests will not work as the database backend is not initialized as this image is meant to be used with an already bootstraped database backend. I.e., that the container has to be configured to point to the correct database. There are two ways to manange the Rucio configuration: using environment variables or by mounting a full rucio.cfg.
If you want to set the connection string for the database it can be done using the RUCIO_CFG_DATABASE_DEFAULT environment variable, e.g., to start a container connecting to a MySQL DB running at mysql.db you could use something like this:
docker run \
--name=rucio-server \
-e RUCIO_CFG_DATABASE_DEFAULT="mysql://rucio:[email protected]/rucio" \
-p 80:80 \
rucio/rucio-server
The are much more configuration parameters available that will be listed at the end of this readme.
Another way to configure Rucio is to directly mount a complete rucio.cfg into the container. This will then be used instead of the auto-generated one, e.g., if you have a rucio.cfg ready on your host system under /tmp/rucio.cfg you could start a container like this:
docker run \
--name=rucio-server \
-v /tmp/rucio.cfg:/opt/rucio/etc/rucio.cfg \
-p 80:80 \
rucio/rucio-server
The rucio.cfg is used to configure the database backend.
If you want to enable SSL you would need to set the RUCIO_ENABLE_SSL variable and also need to include the host certificate, key and the the CA certificate as volumes. E.g.,:
docker run \
--name=rucio-server \
-v /tmp/ca.pem:/etc/grid-security/ca.pem \
-v /tmp/hostcert.pem:/etc/grid-security/hostcert.pem \
-v /tmp/hostkey.pem:/etc/grid-security/hostkey.pem \
-v /tmp/rucio.cfg:/opt/rucio/etc/rucio.cfg \
-p 443:443 \
-e RUCIO_ENABLE_SSL=True \
rucio/rucio-server
By default the output of the Apache web server is written directly to stdout and stderr. If you would rather direct them into separate files it can be done using the RUCIO_ENABLE_LOGS variable. The storage folder of the logs can be used as a volume:
docker run \
--name=rucio-server \
-v /tmp/rucio.cfg:/opt/rucio/etc/rucio.cfg \
-v /tmp/logs:/var/log/httpd \
-p 80:80 \
-e RUCIO_ENABLE_LOGFILE=True \
rucio/rucio-server
As shown in the examples above the rucio-server image can be configured using environment variables that are passed with docker run. Below is a list of all available variables and their behaviour:
RUCIO_SERVER_TYPEIt is used to configure the available endpoints and there are four values: api, auth, trace and all. The default value is api.
RUCIO_ENABLE_SSLBy default the rucio server runs without SSL on port 80. If you want to enable SSL set this variable to True. If you enable SSL you will also have to provide the host certificate and key and the certificate authority file. The server will look for hostcert.pem, hostkey.pem and ca.pem under /etc/grid-security so you will have to mount them as volumes. Furthermore you will also have to expose port 443.
RUCIO_CA_PATHIf you are using SSL and want use SSLCACertificatePath and SSLCARevocationPath you can do so by specifying the path in this variable.
RUCIO_CA_REVOCATION_CHECKThis variable is used to set SSLCARevocationCheck. The default value is "chain".
RUCIO_DEFINE_ALIASESBy default the web server is configured with all common rest endpoints except the authentication endpoint. If you want to specify your own set of aliases you can set this variable to True. The web server then expects an alias file under /opt/rucio/etc/aliases.conf
RUCIO_ENABLE_LOGFILEBy default the log output of the web server is written to stdout and stderr. If you set this variable to True the output will be written to access_log and error_log under /var/log/httpd.
RUCIO_LOG_LEVELThe default log level is info. You can change it using this variable.
RUCIO_LOG_FORMATThe default rucio log format is %h\t%t\t%{X-Rucio-Forwarded-For}i\t%T\t%D\t\"%{X-Rucio-Auth-Token}i\"\t%{X-Rucio-RequestId}i\t%{X-Rucio-Client-Ref}i\t\"%r\"\t%>s\t%b
You can set your own format using this variable.
RUCIO_HOSTNAMEThis variable sets the server name in the apache config.
RUCIO_HTTPD_ENCODED_SLASHESThis variable sets AllowEncodedSlashes in the apache config, which allows URLs which contain encoded path separators (%2F for / and additionally %5C for \ on accordant systems) to be used in the path info.
RUCIO_SERVER_ADMINThis variable sets the server admin in the apache config.
RUCIO_WSGI_DAEMON_PROCESSESThis variable sets the number of WSGI daemon processes. The default it 4.
RUCIO_WSGI_DAEMON_THREADSThis variable sets the number of threads in every WSGI daemon process. The default is 4.
RUCIO_HTTPD_MPM_MODEThis variable sets the MPM mode. The default is "event".
RUCIO_CFG configuration parameters:Environment variables can be used to set values for the auto-generated rucio.cfg. The names are derived from the actual names in the configuration file prefixed by RUCIO_CFG, e.g., the default value in the database section becomes RUCIO_CFG_DATABASE_DEFAULT.
The available environment variables are:
RUCIO_CFG_COMMON_LOGDIRRUCIO_CFG_COMMON_LOGLEVELRUCIO_CFG_COMMON_MAILTEMPLATEDIRRUCIO_CFG_COMMON_MULTI_VORUCIO_CFG_CREDENTIALS_GCSRUCIO_CFG_CREDENTIALS_SIGNATURE_LIFETIMERUCIO_CFG_DATABASE_DEFAULTRUCIO_CFG_DATABASE_ECHORUCIO_CFG_DATABASE_MAX_OVERFLOWRUCIO_CFG_DATABASE_POOL_RECYCLERUCIO_CFG_DATABASE_POOL_RESET_ON_RETURNRUCIO_CFG_DATABASE_POOL_SIZERUCIO_CFG_DATABASE_POOL_TIMEOUTRUCIO_CFG_DATABASE_POWUSERACCOUNTRUCIO_CFG_DATABASE_POWUSERPASSWORDRUCIO_CFG_DATABASE_SCHEMARUCIO_CFG_MONITOR_CARBON_PORTRUCIO_CFG_MONITOR_CARBON_SERVERRUCIO_CFG_MONITOR_USER_SCOPERUCIO_CFG_NONGRID_TRACE_BROKERSRUCIO_CFG_NONGRID_TRACE_PASSWORDRUCIO_CFG_NONGRID_TRACE_PORTRUCIO_CFG_NONGRID_TRACE_TOPICRUCIO_CFG_NONGRID_TRACE_TRACEDIRRUCIO_CFG_NONGRID_TRACE_USERNAMERUCIO_CFG_OIDC_ADMIN_ISSUERRUCIO_CFG_OIDC_EXPECTED_AUDIENCERUCIO_CFG_OIDC_IDPSECRETSRUCIO_CFG_POLICY_LFN2PFN_ALGORITHM_DEFAULTRUCIO_CFG_POLICY_LFN2PFN_MODULERUCIO_CFG_POLICY_PACKAGERUCIO_CFG_POLICY_PERMISSIONRUCIO_CFG_POLICY_SCHEMARUCIO_CFG_POLICY_SUPPORTRUCIO_CFG_POLICY_SUPPORT_RUCIORUCIO_CFG_TRACE_BROKERSRUCIO_CFG_TRACE_PASSWORDRUCIO_CFG_TRACE_PORTRUCIO_CFG_TRACE_TOPICRUCIO_CFG_TRACE_TRACEDIRRUCIO_CFG_TRACE_USERNAMERUCIO_CFG_WEBUI_AUTH_ISSUERRUCIO_CFG_WEBUI_AUTH_TYPERUCIO_CFG_WEBUI_USERCERTIf you are looking for support, please contact our mailing list [email protected] or join us on our slack support channel.
Content type
Image
Digest
sha256:e3101c0a0…
Size
338.9 MB
Last updated
14 days ago
docker pull rucio/rucio-serverPulls:
2,234
Last week