-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
60 lines (49 loc) · 1.84 KB
/
Dockerfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Get docker container from mundialis
FROM mundialis/esa-snap:ubuntu
# set locale
ENV LC_ALL=C
# Install stsa
RUN git clone https://github.com/pbrotoisworo/s1-tops-split-analyzer.git
## After certain updates, support for python 3.6 was taken away, but I still need it!
## So I go back to a previous version (December 2021)
WORKDIR ./s1-tops-split-analyzer
RUN git reset --hard 12ea576989cce7cbff5569ece6d17df52a17b0a9
RUN python3.6 -m pip install --upgrade pip
RUN python3.6 -m pip install -e .
WORKDIR ..
## Move local packages to tmp file
COPY setup/requirements.txt /tmp/base_requirements.txt
## Install requirements for python
RUN python3.6 -m pip install --upgrade pip
RUN python3.6 -m pip install --no-cache-dir --upgrade -r /tmp/base_requirements.txt
# Install snaphu
RUN wget --no-check-certificate \
https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/snaphu-v2.0.5.tar.gz \
&& tar -xvf snaphu-v2.0.5.tar.gz \
&& rm snaphu-v2.0.5.tar.gz \
&& mkdir -p /usr/local/man/man1/ \
&& cd ./snaphu-v2.0.5/src \
&& make install \
&& make Clean
# Install miniconda
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN apt-get update
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
# Install xdem
RUN git clone https://github.com/GlacioHack/xdem.git
WORKDIR ./xdem
RUN conda env create -f dev-environment.yml
SHELL ["conda", "run", "-n", "xdem-dev", "/bin/bash", "-c"]
RUN pip install -e .
RUN conda install -y -c conda-forge bmi-topography python-dotenv seaborn pysal
RUN pip install scicomap
RUN conda init bash
WORKDIR ..
## Move SliDEM scripts to /scripts
ADD scripts /scripts