Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
np
nptool
Commits
f7aca892
Commit
f7aca892
authored
5 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* updating docker file
- build/push comment - leaner final file
parent
c9072591
No related branches found
No related tags found
No related merge requests found
Pipeline
#44501
passed
5 years ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile/gitlabci-nptool-ubuntu19.04
+14
-10
14 additions, 10 deletions
Dockerfile/gitlabci-nptool-ubuntu19.04
with
14 additions
and
10 deletions
Dockerfile/gitlabci-nptool-ubuntu19.04
+
14
−
10
View file @
f7aca892
# to build use
# > docker build -t gitlab-registry.in2p3.fr/np/nptool:gitlabci-nptool-ubuntu19.04 -f gitlabci-nptool-ubuntu19.04 .
# to push use
# > docker push gitlab-registry.in2p3.fr/np/nptool:gitlabci-nptool-ubuntu19.04
FROM ubuntu:19.04
# proxy for lpccaen
ENV http_proxy http://caeproxy.in2p3.fr:3128
...
...
@@ -7,24 +11,24 @@ ENV ssl_proxy http://caeproxy.in2p3.fr:3128
RUN apt-get -y update
# general necessities
RUN apt-get install -y cmake ninja-build gcc g++ wget git
RUN apt-get install -y cmake ninja-build gcc g++ wget git
libexpat1-dev libxerces-c-dev libsm-dev libxft2-dev libxpm-dev libxext-dev libtiff-dev libpython-dev python-dev python ; apt-get clean
# getting
root
# getting
the needed file
RUN wget https://root.cern/download/root_v6.18.02.source.tar.gz
RUN tar -xf root_v6.18.02.source.tar.gz -C root --strip-components 1
RUN apt-get install -y libsm-dev libxft2-dev libxpm-dev libxext-dev libtiff-dev libpython-dev python-dev python
RUN wget http://cern.ch/geant4-data/releases/geant4.10.05.p01.tar.gz
# getting root
RUN tar -xf root_v6.18.02.source.tar.gz -C root --strip-components 1 ; rm -f root_v6.18.02.source.tar.gz
RUN mkdir root_build root_install
RUN /bin/bash -c "cd root_build ; cmake -GNinja -DCMAKE_INSTALL_PREFIX=/root_install -Dpython=off /root"
RUN /bin/bash -c "cd root_build ; ninja install;ninja clean"
RUN echo "source root/bin/thisroot.sh" > .bashrc
RUN /bin/bash -c "cd root_build ; ninja install;ninja clean
; cd .. ; rm -rf root_build ; rm -rf root
"
RUN echo "source root
_install
/bin/thisroot.sh" > .bashrc
# getting geant4
RUN wget http://cern.ch/geant4-data/releases/geant4.10.05.p01.tar.gz
RUN mkdir geant4 geant4_build geant4_install
RUN tar -xf geant4.10.05.p01.tar.gz -C geant4 --strip-components 1
RUN apt-get install -y libexpat1-dev libxerces-c-dev
RUN tar -xf geant4.10.05.p01.tar.gz -C geant4 --strip-components 1 ; rm -f geant4.10.05.p01.tar.gz
RUN /bin/bash -c "cd geant4_build ; cmake -GNinja -DCMAKE_INSTALL_PREFIX=/geant4_install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON /geant4"
RUN /bin/bash -c "cd geant4_build ; ninja install;ninja clean"
RUN /bin/bash -c "cd geant4_build ; ninja install;ninja clean
; cd .. ; rm -rf geant4_build ; rm -rf geant4
"
RUN echo "source geant4_install/share/Geant4-10.5.1/geant4make/geant4make.sh" >> .bashrc
# starting bash prompt
...
...
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