forked from cms-opendata-analyses/AOD2NanoAODOutreachTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
argo-workflow.yaml
34 lines (34 loc) · 1001 Bytes
/
argo-workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: nanoaod-argo-
spec:
entrypoint: nanoaod-argo
volumes:
- name: workdir
hostPath:
path: /mnt/data
type: DirectoryOrCreate
templates:
- name: nanoaod-argo
script:
image: cmsopendata/cmssw_5_3_32
command: [sh]
source: |
source /opt/cms/entrypoint.sh
sudo chown $USER /mnt/vol
mkdir workspace
cd workspace
git clone git://github.com/cms-opendata-analyses/AOD2NanoAODOutreachTool AOD2NanoAOD
cd AOD2NanoAOD
scram b -j8
nevents=10000
eventline=$(grep maxEvents configs/data_cfg.py)
sed -i "s/$eventline/process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32($nevents) )/g" configs/data_cfg.py
cmsRun configs/data_cfg.py
cp output.root /mnt/vol/
echo ls -l /mnt/vol
ls -l /mnt/vol
volumeMounts:
- name: workdir
mountPath: /mnt/vol