Skip to content
Snippets Groups Projects
Commit dc4034e3 authored by Jonas Eppelt's avatar Jonas Eppelt
Browse files

testing installing geant with conda

parent 901abbee
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
set -e
wrapper=""
if [[ "${RESTARTABLE}" == "yes" ]]; then
wrapper="run-one-constantly"
fi
if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
# launched by JupyterHub, use single-user entrypoint
exec /usr/local/bin/start-singleuser.sh "$@"
elif [[ ! -z "${JUPYTER_ENABLE_LAB}" ]]; then
. /usr/local/bin/start.sh $wrapper jupyter lab "$@"
else
. /usr/local/bin/start.sh $wrapper jupyter notebook "$@"
fi
File deleted
......@@ -27,19 +27,21 @@ RUN apt-get -y update \
&& rm -rf /var/lib/apt/lists/*
### Install Geant4
RUN mkdir geant4-source \
&& SDIR=$(readlink -f geant4-source) \
&& wget -q -O - http://cern.ch/geant4-data/releases/geant4.11.1.1.tar.gz | tar xzf - -C "geant4-source" \
&& mkdir geant4-build && pushd geant4-build \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/geant4 \
-DGEANT4_INSTALL_EXAMPLES=OFF \
-DGEANT4_USE_OPENGL_X11=ON \
-DGEANT4_USE_PYTHON=ON \
-DGEANT4_INSTALL_DATA=OFF \
${SDIR}/geant4.11.1.1.p02 \
&& make -j4 && make install \
&& popd \
&& rm -rf geant4-source geant4-build
RUN conda install -c conda-forge geant4
#RUN mkdir geant4-source \
# && SDIR=$(readlink -f geant4-source) \
# && wget -q -O - http://cern.ch/geant4-data/releases/geant4.11.1.1.tar.gz | tar xzf - -C "geant4-source" \
# && mkdir geant4-build && pushd geant4-build \
# && cmake -DCMAKE_INSTALL_PREFIX=/opt/geant4 \
# -DGEANT4_INSTALL_EXAMPLES=OFF \
# -DGEANT4_USE_OPENGL_X11=ON \
# -DGEANT4_USE_PYTHON=ON \
# -DGEANT4_INSTALL_DATA=OFF \
# ${SDIR}/geant4.11.1.1.p02 \
# && make -j4 && make install \
# && popd \
# && rm -rf geant4-source geant4-build
ENV PYTHONPATH=$PYTHONPATH:/opt/geant4/lib/python3.9/site-packages \
PATH=/opt/geant4/bin:$PATH \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment