Skip to content

Commit d02b2f8

Browse files
committed
(DOCKER) changed dockerfile to use lavavu-osmesa
very simple!
1 parent 2b3f02a commit d02b2f8

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

Dockerfile

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,46 @@ FROM continuumio/miniconda3
22
LABEL maintainer="lachlan.grose@monash.edu"
33
#This docker image has been adapted from the lavavu dockerfile
44
# install things
5-
RUN apt-get update -qq
65

7-
RUN conda install -c conda-forge pip scikit-learn cython numpy pandas scipy pymc3 jupyter -y
6+
RUN apt-get update -qq && \
7+
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
8+
gcc \
9+
libc-dev
10+
11+
RUN conda install -c conda-forge pip scikit-learn cython numpy==1.20.1 pandas scipy pymc3 jupyter pyamg -y
812
RUN pip install lavavu-osmesa
913

1014
ENV NB_USER jovyan
1115
ENV NB_UID 1000
1216
ENV HOME /home/${NB_USER}
1317

18+
RUN adduser --disabled-password \
19+
--gecos "Default user" \
20+
--uid ${NB_UID} \
21+
${NB_USER}
1422
WORKDIR ${HOME}
1523

16-
RUN mkdir shared_volume
17-
run mkdir LoopStructural
24+
USER root
25+
RUN chown -R ${NB_UID} ${HOME}
26+
27+
28+
29+
RUN conda install -c conda-forge jupyterlab nodejs -y
30+
RUN pip install snakeviz
31+
32+
# Add Tini
33+
ENV TINI_VERSION v0.19.0
34+
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
35+
RUN chmod +x /tini
36+
ENTRYPOINT ["/tini", "--"]
37+
38+
USER ${NB_USER}
39+
40+
RUN mkdir notebooks
41+
RUN mkdir LoopStructural
42+
43+
# RUN pip install -e LoopStructural
44+
CMD ["jupyter", "notebook", "--ip='0.0.0.0'", "--NotebookApp.token=''", "--no-browser" ]
45+
46+
EXPOSE 8050
47+
EXPOSE 8080:8090

docker-compose.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ services:
44
structural:
55
build: ./
66
volumes:
7-
- /home/lgrose/dev/python/LoopStructuralApplications/:/home/joyvan/shared_volume loop
8-
- ./:/home/joyvan/LoopStructural
7+
- /home/lgrose/dev/python/LoopStructural/:/home/jovyan/LoopStructural
8+
- /home/lgrose/LoopStructural/:/home/jovyan/notebooks
99
ports:
10-
- 9888:8888
11-
command: tail -F blah
10+
- 8888:8888
11+
- 8050:8050
12+
- 8080-8090:8080-8090
13+
1214

0 commit comments

Comments
 (0)