-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 941 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 1. Start from the official CMSSW base image
FROM gitlab-registry.cern.ch/cms-cloud/cmssw-docker-opendata/cmssw_10_6_30-slc7_amd64_gcc700
# 2. Set the working directory to the CMSSW release area
WORKDIR /code/CMSSW_10_6_30
# 3. Copy your project source code into the src/ directory
# CORRECTED: This was 'COPY . COPY . src/', now it's just 'COPY . src/'
COPY . src/
# 4. Compile your code. This is a long-running step and will be cached by Kaniko.
# This RUN command changes directory, sets up the CMSSW environment for this specific
# command, and then compiles.
RUN cd /code/CMSSW_10_6_30/src/jetproducer/jetproducer && \
eval "$(scram runtime -sh)" && \
scram b
# 5. Run the analysis. This will be a separate layer. If only the config file
# changes, the compile step above will be cached and only this step will re-run.
RUN scramRun jetproducer_lxplus_7tev_cfg.py
# 6. Set the default command for the container
CMD ["bash"]