-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use cmake default FindPython, remove old method, introduce Docker con…
…tainer
- Loading branch information
Andrej Dundovic
committed
Jan 12, 2024
1 parent
1629951
commit 0b0743f
Showing
3 changed files
with
54 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright (c) HERMES Development Team. | ||
# Distributed under the terms of the GPLv3. | ||
ARG REGISTRY=quay.io | ||
ARG OWNER=jupyter | ||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook | ||
FROM $BASE_CONTAINER | ||
|
||
LABEL maintainer="HERMES Developers <[email protected]>" | ||
|
||
USER root | ||
|
||
RUN apt-get update --yes && \ | ||
apt-get install --yes --no-install-recommends \ | ||
build-essential \ | ||
cmake \ | ||
doxygen \ | ||
libgsl-dev \ | ||
libfftw3-dev \ | ||
libcfitsio-dev && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
USER ${NB_UID} | ||
|
||
# Install Python 3 packages | ||
RUN mamba install --yes \ | ||
'healpy' && \ | ||
mamba clean --all -f -y && \ | ||
fix-permissions "${CONDA_DIR}" && \ | ||
fix-permissions "/home/${NB_USER}" | ||
|
||
# Install facets package which does not have a `pip` or `conda-forge` package at the moment | ||
WORKDIR /tmp | ||
RUN git clone https://github.com/cosmicrays/hermes.git | ||
WORKDIR /tmp/hermes | ||
RUN conda init | ||
RUN mkdir build && \ | ||
cd build && \ | ||
CMAKE_PREFIX_PATH=${CONDA_DIR} cmake \ | ||
-DPython_EXECUTABLE=${CONDA_DIR}/bin/${PYTHON_VERSION} \ | ||
-DPython_INCLUDE_DIRS=${CONDA_DIR}/include/${PYTHON_VERSION} \ | ||
-DPython_LIBRARIES=${CONDA_DIR}/lib/${PYTHON_VERSION} \ | ||
-DCMAKE_INSTALL_PREFIX=${CONDA_DIR} \ | ||
-DENABLE_TESTING=On .. && \ | ||
make -j && \ | ||
make install && \ | ||
rm -rf /tmp/hermes && \ | ||
fix-permissions "${CONDA_DIR}" && \ | ||
fix-permissions "/home/${NB_USER}" | ||
|
||
USER ${NB_UID} | ||
|
||
WORKDIR "${HOME}" |
This file was deleted.
Oops, something went wrong.