Skip to content

Commit

Permalink
Bug fix in container
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandaisb committed Oct 6, 2023
1 parent 5062a3b commit 564b400
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dockerfiles/Dockerfile.spack-magix3d
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ SHELL ["/bin/bash", "-c"]
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#==========================================
# wget libasound2 libdbus-glib-1-2 used by firefox for documentation
RUN apt update &&\
apt install -y build-essential cmake python3 python3-distutils unzip zip curl git libxt-dev libgl-dev gfortran autoconf pkg-config lsb-release file &&\
apt install -y wget libasound2 libdbus-glib-1-2 &&\
apt clean &&\
rm -rf /var/lib/apt/lists/*
#==========================================
# Installation of firefox for magix3d documentation (wget installed above)
RUN wget -O FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64" &&\
tar xvf FirefoxSetup.tar.bz2 &&\
mv firefox /opt &&\
rm FirefoxSetup.tar.bz2 &&\
ln -s /opt/firefox/firefox /usr/bin/firefox
#==========================================
RUN git clone --depth=1 -b v${SPACK_VERSION} https://github.com/spack/spack.git &&\
git clone --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes.git &&\
cp /spack_recipes/config/packages.yaml /spack/etc/spack/
Expand All @@ -38,7 +47,7 @@ RUN source /spack/share/spack/setup-env.sh &&\
RUN source /spack/share/spack/setup-env.sh &&\
spack env create meshing-env &&\
spack env activate meshing-env &&\
spack add py-pytest &&\
spack add python@3 &&\
spack add magix3d~smooth3d~pythonaddon+doc ^vtk-maillage~opengl2+qt ^qt+opengl &&\
spack install &&\
rm -rf /spack/var/spack/cache/*
Expand Down

0 comments on commit 564b400

Please sign in to comment.