-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from louisl3grand/master
Dockerfile to run the code in a container
- Loading branch information
Showing
2 changed files
with
64 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Dockerfile adapted from jupyter/scipy-notebook by Louis Legrand | ||
# https://github.com/jupyter/docker-stacks/blob/master/scipy-notebook/Dockerfile | ||
|
||
ARG OWNER=jupyter | ||
ARG BASE_CONTAINER=$OWNER/scipy-notebook | ||
FROM $BASE_CONTAINER | ||
|
||
USER root | ||
|
||
|
||
# We need a fortran compiler for plancklens | ||
RUN apt-get update --yes | ||
RUN apt-get install gfortran --yes | ||
|
||
|
||
# Install plancklens | ||
WORKDIR "${HOME}" | ||
COPY . "${HOME}/plancklens" | ||
WORKDIR "${HOME}/plancklens" | ||
RUN pip install -r requirements.txt | ||
RUN pip install -e . | ||
|
||
# Install lenspyx | ||
WORKDIR "${HOME}" | ||
RUN git clone https://github.com/carronj/lenspyx.git | ||
WORKDIR "${HOME}/lenspyx" | ||
RUN pip install -r requirements.txt | ||
RUN pip install -e . | ||
|
||
WORKDIR "${HOME}" | ||
|
||
|
||
# Setting the plancklens env variable for writing stuff | ||
ENV PLENS="${HOME}/plens_write" |
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