Git Product home page Git Product logo

rucio-db-init's Introduction

rucio-db-init

A standalone initializer for SQL databases used by Rucio.

It requires python3 with pip3 and svn available in $PATH.

This is intended to run using python3. It requires requests, alembic, sqlalchemy, jsonschema, psycopg2-binary and retrying. Run the following command to install the needed dependencies:

pip3 install requests alembic sqlalchemy jsonschema psycopg2-binary retrying

Please note that this script requires one to set up the $RUCIO_HOME environment variable, which is automatically set by the init-rucio-repo.sh script. $RUCIO_HOME must contain an /etc subfolder with rucio.cfg and alembic.ini configuration files inside. The script is preconfigured to use the /etc directory embedded in this repo.

Due to the Rucio configuration structure it is not possible to simply pass two custom files directly.

The init-rucio-repo.sh introduces support for different rucio tags. The default tag is master but different tags can be used via:

    source init_rucio_database.sh <--- automatically converted to master
    source init_rucio_database.sh master
    source init_rucio_database.sh hotfix
    source init_rucio_database.sh next
    source init_rucio_database.sh 1.19.1

Please note that due to Rucio development, tags before 1.19.1 are not supported due to the fact that in Python3 ConfigParser has been renamed to configparser. This script will be extended to handle such option if needed in the future.

rucio-db-init's People

Contributors

gabrielefronze avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.