Skip to content

Commit

Permalink
Hard-code conda path in config since ${CONDA_PREFIX} is not resolved …
Browse files Browse the repository at this point in the history
…from Jupyter...
  • Loading branch information
willend committed Jan 12, 2024
1 parent 78b5615 commit 3fe898b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ RUN cd /opt/install && \
sed -i 's+MCSTAS_BINDIR+'"${MCSTAS_BINDIR}"'+g' McStasScript/configuration.yaml && \
sed -i 's+MCSTAS_COMPDIR+'"${MCSTAS_COMPDIR}"'+g' McStasScript/configuration.yaml && \
sed -i 's+NeXus+NeXus\ -L/opt/conda/lib\ -I/opt/conda/include/nexus+g' ${MCSTAS_TOOLDIR}/Python/mccodelib/mccode_config.json && \
sed -i 's+\$\{CONDA_PREFIX\}+/opt/conda+g' ${MCSTAS_TOOLDIR}/Python/mccodelib/mccode_config.json && \
find /opt/conda/lib -type d -name mcstasscript -exec cp McStasScript/configuration.yaml \{\} \; && \
# Run mcdoc, installed via conda
/opt/conda/bin/mcdoc -i
Expand Down

0 comments on commit 3fe898b

Please sign in to comment.