Skip to content

Commit

Permalink
Build NeXus in conda env, no mpi / nexus from OS
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Jan 12, 2024
1 parent 252b9b8 commit 693679e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM quay.io/jupyter/base-notebook:latest

USER root

# Add a non-snap Firefox through pinning, add MPI, NeXus and useful desktop utils
# Add a non-snap Firefox through pinning + other useful desktop utils
RUN apt-get -y -qq update \
&& apt-get -y -qq install -y software-properties-common && add-apt-repository ppa:mozillateam/ppa \
&& echo 'Package: *' > /etc/apt/preferences.d/mozilla-firefox \
Expand All @@ -25,9 +25,6 @@ RUN apt-get -y -qq update \
evince \
gnuplot \
octave \
libopenmpi-dev \
libnexus1 \
libnexus-dev \
git \
firefox \
# Remove screenlock
Expand All @@ -51,6 +48,12 @@ RUN cd /opt/install && \
# Include scipp in base env
wget https://scipp.github.io/_downloads/e85d8706af3fe2e161bf9b5ed34bd8ae/scipp.yml && \
mamba env update --quiet --file scipp.yml && \
# Build NeXus using conda
git clone https://github.com/nexusformat/code nexus-code && \
cd nexus-code && \
mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} .. && make && make install && \
cd /opt/install && \
# Configure McStasScript for use with installed McStas
export MCSTAS_BINDIR=`mcrun --showcfg=bindir` && \
export MCSTAS_COMPDIR=`mcrun --showcfg=resourcedir` && \
Expand Down
6 changes: 6 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ dependencies:
- mcstas
- mcpl
- ncrystal
- make
- compilers
- openmpi=4
- nexusformat
- nexpy
- hdf5
- cmake
- pip
- websockify
- pip:
Expand Down

0 comments on commit 693679e

Please sign in to comment.