Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3BUU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simulation
KM3BUU
Commits
ec762ce0
Commit
ec762ce0
authored
4 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
GiBUU build with root
parent
ec3b0cdb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#13548
passed
4 years ago
Stage: docker
Stage: release
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+34
-3
34 additions, 3 deletions
Dockerfile
km3buu.Singularity
+29
-4
29 additions, 4 deletions
km3buu.Singularity
with
63 additions
and
7 deletions
Dockerfile
+
34
−
3
View file @
ec762ce0
...
...
@@ -2,7 +2,37 @@ FROM debian:stretch
RUN
apt-get update
-qq
&&
\
apt-get upgrade
-qq
-y
RUN
apt-get
install
-qq
-y
gfortran make libbz2-dev wget
RUN
apt-get
install
-qq
-y
gfortran make cmake libbz2-dev wget g++ git
&&
\
apt-get
install
-qq
-y
python3-dev python3-pip python3-tk python3-lxml python3-six
RUN
cd
/opt
&&
\
mkdir
-p
cmake-3.18
&&
wget
-qO-
"https://cmake.org/files/v3.18/cmake-3.18.2-Linux-x86_64.tar.gz"
|
tar
--strip-components
=
1
-xz
-C
cmake-3.18
RUN
cd
/opt
&&
\
wget https://root.cern.ch/download/root_v6.20.04.source.tar.gz
&&
\
tar
xvzf root_v6.20.04.source.tar.gz
RUN
export
PATH
=
/opt/cmake-3.18/bin:
$PATH
&&
\
cd
/opt/root-6.20.04
&&
\
mkdir
-p
obj
&&
\
cd
obj
&&
\
cmake
-DCMAKE_INSTALL_PREFIX
=
/usr/local
-Dpyroot
=
OFF
-Dpyroot_experimental
=
OFF
-Dx11
=
OFF
-Dxft
=
OFF ..
&&
\
make
-j4
&&
\
make
install
RUN
cd
/opt
&&
\
wget http://www.hepforge.org/archive/roottuple/RootTuple-1.0.0.tar.gz
&&
\
tar
-xzvf
RootTuple-1.0.0.tar.gz
&&
\
cd
RootTuple-1.0.0
&&
\
sed
-i
's/SHARED/STATIC/g'
./src/CMakeLists.txt
&&
\
sed
-i
'$d'
./CMakeLists.txt
&&
\
mkdir
build
;
cd
build
&&
\
cmake
-DCMAKE_INSTALL_PREFIX
=
/usr/local ..
&&
\
make
&&
\
make
install
RUN
cd
/opt
&&
\
wget https://gibuu.hepforge.org/downloads?f
=
buuinput2019.tar.gz
&&
\
tar
xvzf downloads?f
=
buuinput2019.tar.gz
&&
\
...
...
@@ -10,8 +40,9 @@ RUN cd /opt && \
tar
xvzf downloads?f
=
release2019.tar.gz
&&
\
ls
-ahl
&&
\
cd
release2019
&&
\
make
-j
withROOT
=
0
&&
\
rm
-rf
/opt/
*
.tar.gz
cp
/opt/RootTuple-1.0.0/build/src/libRootTuple.a ./objects/LIB/lib/libRootTuple.100.a
&&
\
make
-j
withROOT
=
1
&&
\
rm
-rf
/opt/
*
.tar.gz
ENV
CONTAINER_GIBUU_EXEC=/opt/release2019/objects/GiBUU.x
This diff is collapsed.
Click to expand it.
km3buu.Singularity
+
29
−
4
View file @
ec762ce0
...
...
@@ -2,19 +2,44 @@ Bootstrap: docker
From: debian:stretch
%post
apt-get update -qq
apt-get update -qq
apt-get install -qq -y neovim
apt-get install -qq -y gfortran make libbz2-dev
apt-get install -qq -y wget
apt-get install -qq -y wget g++ git
apt-get install -qq -y python3-dev python3-pip python3-tk python3-lxml python3-six
cd /opt && \
mkdir -p cmake-3.18 && wget -qO- "https://cmake.org/files/v3.18/cmake-3.18.2-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C cmake-3.18
cd /opt && \
wget https://root.cern.ch/download/root_v6.20.04.source.tar.gz && \
tar xvzf root_v6.20.04.source.tar.gz && \
export PATH=/opt/cmake-3.18/bin:$PATH && \
cd root-6.20.04 && \
mkdir -p obj; cd obj && \
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -Dpyroot=OFF -Dpyroot_experimental=OFF -Dx11=OFF -Dxft=OFF .. && \
make -j4; make install
cd /opt && \
wget http://www.hepforge.org/archive/roottuple/RootTuple-1.0.0.tar.gz && \
tar xvzf RootTuple-1.0.0.tar.gz && \
cd RootTuple-1.0.0 && \
sed -i 's/SHARED/STATIC/g' ./src/CMakeLists.txt && \
sed -i '$d' ./CMakeLists.txt && \
mkdir build; cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. &&\
make; make install
wget https://gibuu.hepforge.org/downloads?f=buuinput2019.tar.gz && \
tar xvzf downloads?f=buuinput2019.tar.gz && \
wget https://gibuu.hepforge.org/downloads?f=release2019.tar.gz && \
tar xvzf downloads?f=release2019.tar.gz && \
ls -ahl && \
cd release2019 && \
make -j withROOT=0
rm -rf /opt/*.tar.gz
cp /opt/RootTuple-1.0.0/build/src/libRootTuple.a ./objects/LIB/lib/libRootTuple.100.a && \
make -j withROOT=1 && \
rm -rf /opt/*.tar.gz
%environment
export CONTAINER_GIBUU_EXEC=/opt/release2019/objects/GiBUU.x
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment