-
Notifications
You must be signed in to change notification settings - Fork 2
Acquiring an installation package
The installation package required for installing DQMGUI can either be downloaded or built from scratch.
A selection of pre-made installation packages, curated by the CMS DQM-DC team, can be found in the Releases
page.
The releases differ in the versions of the packages that they include (e.g. ROOT version) and the Python version they target.
Each of the releases contains an installation package under Assets
(look for the dqmgui...tar.gz
file). Select the release that you prefer, and download it to a machine which can access GitHub (e.g. your personal machine you're reading this page from!).
In case the available packages in the Releases do not fit your needs (e.g. you want to use a different Python version, or ROOT version), you can create a custom installation package.
Note
If you are planning to build the package on a different machine than the one you will be deploying to, make sure that both machines have the same Python version.
Tip
You could use a virtual machine with the RHEL8
base image on OpenStack to create the installation package.
The following are the requirements for the machine where you're going to create the installation package on.
- Any package that provides the
curl-config
executable must be installed on the system you will run this procedure on (e.g.libcurl4-gnutls-dev
). - The
pigz
package installed. - The
python<your python version>-pip
package installed. E.g. forpython3.8
,python38-pip
must be installed. - Network access to PyPI and GitHub.
- Python >= 3.6 installed (the same version with the target machine where the GUI will be installed in).
git clone https://github.com/cms-DQM/dqmgui_prod_deployment
Or, you could just download it directly from git.
Edit the config.sh
file that you will find in the cloned repository.
Modify whatever versions fit your needs.
Specifically for the Python version, make sure:
- That it's a version that is already installed on your current machine, where you will be creating the installation package,
- That it's the same version with the Python installed in the target machine and
- It's configured in the form
X.Y
(e.g.3.8
) inconfig.sh
.
This step will clone all the required repositories and download all the PyPI packages inside the directory of the cloned repository:
bash download_dependencies.sh
This step will create a single compressed file named dqmgui_installation_package.tar.gz
in the /tmp/dqmgui
directory (by default), which you can then copy to the target machine:
bash build_installation_package.sh