Newer
Older
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
FROM rockylinux/rockylinux:8
# Setup basic stuff
RUN dnf -y install epel-release
RUN dnf -y install gcc \
gcc-c++ \
wget \
bzip2 \
make \
libjpeg-turbo-devel \
zlib-devel \
libtirpc-devel \
hdf \
hdf-devel \
git
# Build szip
RUN wget https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz; \
tar zxf szip-2.1.tar.gz; \
cd szip-2.1; \
./configure --prefix=/usr/local; \
make && make install; \
cd ..; \
rm -rf /szip-2.1 /szip-2.1.tar.gz
#Build HDF-EOS2
RUN wget ftp://ftp.ssec.wisc.edu/pub/pveglio/HDFEOS/HDF-EOS2.20v1.00.tar.Z; \
tar zxf HDF-EOS2.20v1.00.tar.Z; \
cd hdfeos; \
./configure --prefix=/usr/local/ --enable-install-include CPPFLAGS=-I/usr/include/hdf --with-szip=/usr/local; \
make && make install; \
cd ..; \
rm -rf /hdfeos /HDF-EOS2.20v1.00.tar.Z
# add powertools to be able to install netcdf
RUN dnf config-manager --set-enabled powertools
RUN dnf -y install netcdf-devel
# get micromamba
RUN wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
# create env
RUN micromamba create -yn mvcm python=3.10 -c conda-forge
ARG mambaenv="/root/micromamba/envs/mvcm/bin"
# clone repo and install MVCM, then compile cython
RUN git clone https://citest:glpat-UQmZwC8KhWwtx6PyA7LJ@gitlab.ssec.wisc.edu/pveglio/mvcm.git
WORKDIR mvcm
RUN ${mambaenv}/pip install -e .
RUN ${mambaenv}/python setup.py build_ext --inplace