Run CAFExample as a volume in docker container

Download latest atlas/analysisbase image

docker pull atlas/analysisbase:latest 

Download CAFExample repository.

git clone --recursive https://NAME@gitlab.cern.ch/atlas-caf/CAFExample.git

mkdir build 

Run docker container atlas/analysisbase:

docker run --rm -it -v $PWD:/analysis -w /analysis atlas/analysisbase 

Build the example project

sudo chown -R atlas .

source ~/release_setup.sh

cd build

cmake ../CAFExample

source ../CAFExample/setup/setupAnalysis.sh

make -j4 

Get access to EOS via kinit

kinit NAME 

Run minimal example

cd ../CAFExample/share

./prepare.py minimal/config/master/prepare-Minimal-Example.cfg

./initialize.py minimal/config/master/initialize-Minimal-Example.cfg

./analyze.py minimal/config/master/analyze-Minimal-Example.cfg

./visualize.py minimal/config/master/visualize-Minimal-Example.cfg

Add CAFExample as layer to docker conatiner

Download CAFExample repository.

git clone --recursive https://NAME@gitlab.cern.ch/atlas-caf/CAFExample.git

mkdir build 

Write Dockerfile ( save as "Dockerfile")

    1FROM atlas/analysisbase
    2
    3ADD . /analysis
    4
    5WORKDIR /analysis/build
    6
    7RUN sudo chown -R atlas/analysis && \
    8
    9       source ~/release_setup.sh && \
   10
   11       cmake ../CAFExample && \
   12
   13       make -j4

Build docker container:

docker build -t=cafexample 

Run new container

docker run --rm -it cafexample 

Run minimal example

kinit NAME

source ~/release_setup.sh

source ../CAFExample/setup/setupAnalysis.sh

cd ../CAFExample/share

./prepare.py minimal/config/master/prepare-Minimal-Example.cfg

./initialize.py minimal/config/master/initialize-Minimal-Example.cfg

./analyze.py minimal/config/master/analyze-Minimal-Example.cfg

./visualize.py minimal/config/master/visualize-Minimal-Example.cfg

-- JonasArminMatuszak - 2019-04-30

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2019-04-30 - JonasArminMatuszak
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback