-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_jupyterlab
39 lines (31 loc) · 1.41 KB
/
Dockerfile_jupyterlab
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
38
39
FROM ghcr.io/seisscoped/pysep:ubuntu20.04_jupyterlab
LABEL maintainer="Ian Wang"
RUN apt-get update --yes \
&& apt-get install -yq --no-install-recommends zlib1g-dev gfortran libmpich-dev mpich \
&& docker-clean
RUN cd /home/scoped \
&& git clone https://github.com/adjtomo/adjdocs \
&& git clone --branch devel https://github.com/adjtomo/seisflows \
&& git clone --branch devel https://github.com/adjtomo/pyatoa \
&& git clone --branch devel --depth=1 https://github.com/specfem/specfem2d \
&& git clone --branch devel --depth=1 https://github.com/specfem/specfem3d
RUN cd /home/scoped/pyatoa \
&& conda env update -f environment.yml -n base \
&& docker-clean
RUN cd /home/scoped/seisflows \
&& conda env update -f environment.yml -n base \
&& docker-clean
ADD scripts/clean_specfem2d_repo.sh /home/scoped/clean_specfem2d_repo.sh
ADD scripts/clean_specfem3d_repo.sh /home/scoped/clean_specfem3d_repo.sh
RUN cd /home/scoped/specfem2d \
&& ./configure FC=gfortran CC=gcc CXX=mpicxx MPIFC=mpif90 --with-mpi \
&& make all \
&& bash /home/scoped/clean_specfem2d_repo.sh \
&& rm /home/scoped/clean_specfem2d_repo.sh \
&& docker-clean
RUN cd /home/scoped/specfem3d \
&& ./configure FC=gfortran CC=gcc CXX=mpicxx MPIFC=mpif90 --with-mpi \
&& make all \
&& bash /home/scoped/clean_specfem3d_repo.sh \
&& rm /home/scoped/clean_specfem3d_repo.sh \
&& docker-clean