Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README and .gitignore #17

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
env/
tmp/
log/
*~
#*
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,24 @@ Page with more information [here](https://cms-dqmdc.docs.cern.ch/software/fff_dq
> [!NOTE]
> Once the operation completes, you will receive a report of what machines were updated.

## DQM^2 worflows
## Developing

Openstack allows for great flexibility and access to CMSSW tools.

### `cmssw_deploy`

1. Create an OpenStack machine (currently suggested image: RHEL8).
2. Install `locmap` (see [here](https://linux.web.cern.ch/rhel/locmap/)). You now have CVMFS.
3. Install required tools (`yum install -y git gcc python38`). You might need to `ln -s /usr/bin/python3 ~/bin/python`.
4. Switch to your CERN user (`su <username`).
5. Clone `fff_dqmtools`.
6. `source /cvmfs/cms.cern.ch/cmsset_default.sh # You now have scram`
7. The openstack machine must have the SSH keys you use to authenticate with github (so that `scram` can do whatever needed to clone CMSSW).
8. Configure `git` (`git config --global user.name`, as well as `user.email`).

You should now be ready to run `cmssw_deploy`.

## DQM^2 workflows

### To update DQM^2 DB with client info

Expand All @@ -38,3 +55,4 @@ To be catched with web client:
https://github.com/cms-DQM/fff_dqmtools/blob/a62a1a317e1bc312c704065a43d3bd0aeb5ecc74/applets/fff_web.py#L462
And saved to DB:
https://github.com/cms-DQM/fff_dqmtools/blob/a62a1a317e1bc312c704065a43d3bd0aeb5ecc74/applets/fff_web.py#L148