Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
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
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
containers
eic_container
Commits
3acb30dd
Commit
3acb30dd
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Install python packages with requirements.txt
parent
b115a77d
No related branches found
No related tags found
1 merge request
!248
Install python packages with requirements.txt
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
containers/jug/dev.Dockerfile
+12
-26
12 additions, 26 deletions
containers/jug/dev.Dockerfile
containers/jug/requirements.txt
+17
-0
17 additions, 0 deletions
containers/jug/requirements.txt
spack.yaml
+2
-0
2 additions, 0 deletions
spack.yaml
with
31 additions
and
26 deletions
containers/jug/dev.Dockerfile
+
12
−
26
View file @
3acb30dd
...
@@ -13,8 +13,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
...
@@ -13,8 +13,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
&&
apt-get
-yqq
update
\
&&
apt-get
-yqq
update
\
&&
apt-get
-yqq
install
--no-install-recommends
\
&&
apt-get
-yqq
install
--no-install-recommends
\
python3
\
python3
\
python3-pip
\
python3-distutils
\
python3-setuptools
\
python-is-python3
\
python-is-python3
\
&&
rm
-rf
/var/lib/apt/lists/
*
&&
rm
-rf
/var/lib/apt/lists/
*
...
@@ -127,7 +126,17 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
...
@@ -127,7 +126,17 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
&&
spack clean
-a
\
&&
spack clean
-a
\
&&
exit
$status
&&
exit
$status
## extra post-spack steps
## Extra post-spack steps:
## - Python packages
COPY
requirements.txt /usr/local/etc/requirements.txt
RUN
--mount
=
type
=
cache,target
=
/var/cache/pip
\
echo
"Installing additional python packages"
\
&&
cd
/opt/spack-environment
&&
spack
env
activate
.
\
&&
pip
install
--trusted-host
pypi.org
\
--trusted-host
files.pythonhosted.org
\
--cache-dir
/var/cache/pip
\
--requirement
/usr/local/etc/requirements.txt
## Including some small fixes:
## Including some small fixes:
## - Somehow PODIO env isn't automatically set,
## - Somehow PODIO env isn't automatically set,
## - and Gaudi likes BINARY_TAG to be set
## - and Gaudi likes BINARY_TAG to be set
...
@@ -144,32 +153,9 @@ RUN cd /opt/spack-environment \
...
@@ -144,32 +153,9 @@ RUN cd /opt/spack-environment \
&&
echo
"export PODIO=
$(
spack location
-i
podio
)
;"
\
&&
echo
"export PODIO=
$(
spack location
-i
podio
)
;"
\
>>
/etc/profile.d/z10_spack_environment.sh
\
>>
/etc/profile.d/z10_spack_environment.sh
\
&&
echo
-n
""
\
&&
echo
-n
""
\
&&
echo
"Installing additional python packages"
\
&&
pip
install
--trusted-host
pypi.org
\
--trusted-host
files.pythonhosted.org
\
--no-cache-dir
\
awkward
\
boto3
\
ipython
\
jupyter
\
jupyterlab
\
lmfit
\
lxml
\
matplotlib
\
pandas
\
pycairo
\
pyunfold
\
pyyaml
\
scipy
\
seaborn
\
stashcp
\
uproot
\
yapf
\
&&
echo
-n
""
\
&&
echo
"Executing cmake patch for dd4hep 16.1"
\
&&
echo
"Executing cmake patch for dd4hep 16.1"
\
&& sed -i "s/FIND_PACKAGE(Python/#&/" /usr/local/cmake/DD4hepBuild.cmake
&& sed -i "s/FIND_PACKAGE(Python/#&/" /usr/local/cmake/DD4hepBuild.cmake
## make sure we have the entrypoints setup correctly
## make sure we have the entrypoints setup correctly
ENTRYPOINT
[]
ENTRYPOINT
[]
CMD
["bash", "--rcfile", "/etc/profile", "-l"]
CMD
["bash", "--rcfile", "/etc/profile", "-l"]
...
...
This diff is collapsed.
Click to expand it.
containers/jug/requirements.txt
0 → 100644
+
17
−
0
View file @
3acb30dd
awkward
boto3
ipython
jupyter
jupyterlab
lmfit
lxml
matplotlib
pandas
pycairo
pyunfold
pyyaml
scipy
seaborn
stashcp
uproot
yapf
This diff is collapsed.
Click to expand it.
spack.yaml
+
2
−
0
View file @
3acb30dd
...
@@ -28,6 +28,8 @@ spack:
...
@@ -28,6 +28,8 @@ spack:
-
python@3.9.6
-
python@3.9.6
-
py-numpy@1.20.1
-
py-numpy@1.20.1
-
py-pip@20.2
-
py-pip@20.2
-
py-setuptools@58.2.0
-
py-wheel@0.36.2
-
qt +opengl
-
qt +opengl
-
root@6.24.06 cxxstd=17
-
root@6.24.06 cxxstd=17
+fftw +fortran +gdml +http +mlp +pythia8
+fftw +fortran +gdml +http +mlp +pythia8
...
...
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