File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
FROM jupyter/scipy-notebook
2
-
3
2
# where to install source
4
- ENV FIDIMAG_DIR $HOME/work/fidimag
5
-
6
- RUN git clone https://github.com/computationalmodelling/fidimag.git
7
- WORKDIR $FIDIMAG_DIR
8
-
3
+ USER root
4
+ RUN mkdir -p /io
5
+ RUN chown $NB_USER /io
6
+ RUN apt update && apt install -y cmake
7
+ USER $NB_USER
8
+ ENV FIDIMAG_DIR /io
9
+ WORKDIR /io
10
+ RUN git clone https://github.com/rpep/fidimag.git
11
+ WORKDIR /io/fidimag
9
12
# install third party libraries from source
10
13
RUN bash bin/install-fftw.sh
11
- RUN bash bin/install-sundials-2.5 .sh
14
+ RUN bash bin/install-sundials.sh
12
15
13
16
# install pyvtk
14
17
RUN pip install pyvtk
@@ -17,6 +20,7 @@ RUN pip install cython --upgrade
17
20
18
21
# compile fidimag
19
22
RUN python3 setup.py build_ext --inplace
23
+ RUN pip install psutil
20
24
ENV PYTHONPATH=$FIDIMAG_DIR
21
25
ENV LD_LIBRARY_PATH=$FIDIMAG_DIR/local/lib
22
26
WORKDIR $FIDIMAG_DIR/tests
@@ -26,12 +30,7 @@ RUN conda install --quiet --yes icu
26
30
27
31
# check that tests run okay
28
32
RUN conda install --quiet --yes pytest
29
- RUN py.test -v
30
33
31
34
# /io will be mounted from the host system
32
- USER root
33
- RUN mkdir /io
34
- RUN chown -R $NB_USER /io
35
- USER $NB_USER
36
-
37
35
WORKDIR /io
36
+
Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ To use it, you can try this:
16
16
17
17
3 . Start the container using
18
18
19
- docker run -v `pwd`:/io -d - p 30008:8888 fidimag/notebook
19
+ docker run -v `pwd`:/io -p 30008:8888 fidimag/notebook
20
20
21
21
This will start a notebook server. You can see it in your browser at
22
- http://localhost:30008/ on Linux, or http://192.168.99.100:30008/ on Mac (you may
22
+ http://localhost:30008/ on Linux and Mac (you may
23
23
need to change this IP address if your docker VM is at a different address).
24
24
25
+ You will need to
25
26
To run a shell instead of the notebook server, run:
26
27
27
28
docker run -v `pwd`:/io -ti fidimag/notebook bash
You can’t perform that action at this time.
0 commit comments