forked from UCLA-Plasma-Simulation-Group/JupyterPIC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-local
37 lines (31 loc) · 1.06 KB
/
Dockerfile-local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM jupyter/datascience-notebook
MAINTAINER Benjamin J. Winjum <[email protected]>
#With grateful acknowledgements to the Jupyter Project <[email protected]> for Jupyter
#And to the Particle-in-Cell and Kinetic Simulation Software Center for OSIRIS:
USER root
#
# OSIRIS
#
RUN apt-get update && \
apt-get install -yq --no-install-recommends \
libopenmpi-dev \
libhdf5-openmpi-dev \
gfortran \
openmpi-bin \
openmpi-common \
openmpi-doc \
gcc-4.8 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV H5_ROOT /usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib
RUN mkdir /usr/local/osiris
ENV PATH $PATH:/usr/local/osiris
ENV PYTHONPATH $PYTHONPATH:/usr/local/osiris
COPY osiris-1D.e /usr/local/osiris/osiris-1D.e
COPY osiris.py /usr/local/osiris/osiris.py
COPY combine_h5_util_1d.py /usr/local/osiris/combine_h5_util_1d.py
COPY analysis.py /usr/local/osiris/analysis.py
COPY h5_utilities.py /usr/local/osiris/h5_utilities.py
COPY str2keywords.py /usr/local/osiris/str2keywords.py
RUN chmod -R 711 /usr/local/osiris/osiris-1D.e
USER $NB_USER