-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_MTUQ
46 lines (36 loc) · 1.35 KB
/
Dockerfile_MTUQ
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
40
41
42
43
44
45
46
FROM jupyter/minimal-notebook
LABEL maintainer="Ian Wang"
USER root
RUN apt-get update
RUN apt-get install -y wget ssh less build-essential gfortran gdb vim nano && rm -rf /var/lib/apt/lists/*
USER jovyan
RUN conda config --prepend channels conda-forge \
&& conda install obspy \
&& conda install -c conda-forge pygmt \
&& conda install xarray \
&& conda install cartopy \
&& conda install mpi4py \
&& conda clean -afy
RUN mkdir /home/jovyan/scoped \
&& cd /home/jovyan/scoped \
&& git clone --depth=1 https://github.com/uafgeotools/mtuq.git \
&& cd mtuq \
&& pip install -e . \
&& bash ./data/examples/unpack.bash
RUN cd /home/jovyan/scoped \
&& git clone https://github.com/thurinj/mtuq_workshop_2022.git
RUN cd /home/jovyan/scoped \
&& git clone --depth=1 https://github.com/uafgeotools/pysep.git
RUN cd /home/jovyan/scoped \
&& mkdir -p fk_src \
&& cd fk_src/ \
&& wget https://www.eas.slu.edu/People/LZhu/downloads/fk3.3.tar -O fk3.3.tar \
&& tar -xvf fk3.3.tar \
&& cd fk/ \
&& wget https://www.physics.utoronto.ca/~liuqy/temp/fk-20220331.patch -O fk-20220331.patch \
&& patch < fk-20220331.patch \
&& make \
&& mkdir bin \
&& cp fk syn st_fk trav sachd fk2mt fk.pl bin/
ENV PATH="/home/jovyan/scoped/fk_src/fk/bin:${PATH}"
ARG PATH="/home/jovyan/scoped/fk_src/fk/bin:${PATH}"