Presentation on theme: "05/11/2001 CPT week Natalia Ratnikova, FNAL 1 Software Distribution in CMS Distribution unitFormContent Version of SCRAM managed project."— Presentation transcript:
05/11/2001 CPT week Natalia Ratnikova, FNAL 1 Software Distribution in CMS Distribution unitFormContent Version of SCRAM managed project SCRAMsources + requirements Applications of the SCRAM managed project DAR binaries Consistent set of versions of products ORCA standalone on CD (CERN)binaries including required external products CMS Software on Hard Disk (FNAL) + sources Version of non- SCRAM project (cmsim, cernlib) Set of tar-files(CERN) and rpm files (INFN) binaries + sources Set of versions of the non-CMS products LHCXX tar-ball with installation scripts (CERN) binaries
05/11/2001 CPT week Natalia Ratnikova, FNAL 2 What is DAR DAR stands for Distribution After Release. This is a CMS software distribution tool which allows to create and install binary distributions of SCRAM managed projects. It may be also considered as a SCRAM extension for the CMS software distribution needs. DAR is not intended to substitute any of existing functionalities of SCRAM. DAR distribution is based on a completely built and validated installation of the SCRAM managed project release available through the scram database. Currently DAR provides applications distribution. It replicates executables from the project bin directory, all required shared libraries and runtime environment. DAR sources consist of bash written framework and Perl module library, including DAR distribution, installation function and interface to SCRAM.
05/11/2001 CPT week Natalia Ratnikova, FNAL 3 How It Works Synopsis: dar - c For example: dar – c $CMS_PATH/Releases/ORCA/ORCA_5_3_2 /scratch/dar_tmp DAR analyses the output from scram runtime –sh command and creates export script for each environment variable that refers to file, directory or a set of directories (PATH-like variables). It also creates a template, which is used to create runtime_env.csh and runtime_env.sh scripts during installation. Unless in test mode, dar executes export scripts and creates a tar-file, including all auxiliary information.
05/11/2001 CPT week Natalia Ratnikova, FNAL 4 How It Works Installation: The installation of the dar created distribution does not imply any special privileges except for the write access in the installation directory. DAR will create directory named version, containing bin/, lib/ and other directories corresponding to the runtime environment and scripts to set environment. The configurable (external) directories have the name of the corresponding environment variable; the directories relative to the release top directory (from the Runtime file) keep their internal directory structure. dar - i version_dar.tar.gz
05/11/2001 CPT week Natalia Ratnikova, FNAL 5 DAR General Features DAR does not require any compilation or installation. All that is needed is a read access to dar (framework) and dar.pm (perl module library) files. You can call dar from any location, just specifying the path to it; the only requirement is that both dar and dar.pm files reside at the same directory. In addition to mandatory –c (create) or –i (install) options dar supports –h (help), -v(version), -t (test); prints out available space in the installation directory; checks libraries to be exported with ldd (optional); saves output from executing export scripts in a log file. This provides additional verifications of the configuration. DAR is platform independent, project independent.
05/11/2001 CPT week Natalia Ratnikova, FNAL 6 Summary Automatic binary distribution of applications in SCRAM managed projects is provided and works. It is extendable, flexible, easy to use and to maintain. Platform and project independent Applications can be used anywhere where the build is not required. It is especially crucial for the mass production, as it insures that the same set of programs is used. It can provide additional checks of configuration and saves time on distribution and installation. The code is designed to be extendible and flexible Dar creates distribution of the basic release as well as private applications from the development space
05/11/2001 CPT week Natalia Ratnikova, FNAL 7 Nearest Plans (dar 1) : Create distributions and provide for public use (license issues need to be clarified). Prepare distribution for the Big MinBias production Implement self-upgrade of DAR versions. Future plans: (dar 2) : Automate binary distribution of the external tools; Export SCRAM managed projects including build system Other suggestions?