Skip to content

Commit

Permalink
update wget and apt
Browse files Browse the repository at this point in the history
  • Loading branch information
Hhh-hyc committed Sep 27, 2024
1 parent dd2fece commit fcfca38
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions models/fates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,79 @@ ARG IMAGE_VERSION="latest"
# ----------------------------------------------------------------------
FROM pecan/models:${IMAGE_VERSION} as model-binary

# Command from pecan/models image
RUN apt update && apt upgrade -y
RUN apt install -y \
sudo \
build-essential \
python3-dev \
cmake \
gfortran-9 \
zlib1g-dev \
byacc \
libblas-dev \
liblapack-dev \
libxml2-utils \
libxml-libxml-perl \
libgdal-dev \
xmlstarlet \
csh \
diffutils \
rsync

RUN wget -q http://www.mpich.org/static/downloads/3.3.2/mpich-3.3.2.tar.gz && \
tar zxf mpich-3.3.2.tar.gz && \
cd mpich-3.3.2 && \
./configure --prefix=/usr/local && \
make -j 2 install

RUN wget -q https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.0/src/hdf5-1.12.0.tar.gz && \
tar zxf hdf5-1.12.0.tar.gz && \
cd hdf5-1.12.0 && \
./configure --prefix=/usr/local && \
make -j 2 install

## no response!
RUN wget -q ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-c-4.7.4.tar.gz && \
tar zxf netcdf-c-4.7.4.tar.gz && \
cd netcdf-c-4.7.4 && \
./configure --prefix=/usr/local && \
make -j 2 install && \
ldconfig

RUN wget -q ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.5.3.tar.gz && \
tar zxf netcdf-fortran-4.5.3.tar.gz && \
cd netcdf-fortran-4.5.3 && \
./configure --prefix=/usr/local && \
make -j 2 install && \
ldconfig

## get response
RUN wget -q https://parallel-netcdf.github.io/Release/pnetcdf-1.12.1.tar.gz && \
tar zxf pnetcdf-1.12.1.tar.gz && \
cd pnetcdf-1.12.1 && \
./configure MPIF77=/usr/local/bin/mpif77 MPIF90=/usr/local/bin/mpif90 MPICXX=/usr/local/bin/mpicxx MPICC=/usr/local/bin/mpicc && \
make -j 2 install && \
ldconfig

RUN wget -q https://github.com/esmf-org/esmf/archive/refs/tags/ESMF_8_2_0.tar.gz && \
tar zxf ESMF_8_2_0.tar.gz && \
cd esmf-ESMF_8_2_0 && \
export ESMF_DIR='/tmp/sources/esmf-ESMF_8_2_0' && \
export ESMF_INSTALL_PREFIX='/usr/local' && \
export ESMF_LAPACK="netlib" && \
export ESMF_LAPACK_LIBS="-llapack -lblas" && \
export ESMF_LAPACK_LIBPATH="/usr/lib" && \
export ESMF_NETCDF="nc-config" && \
gmake && \
gmake install && \
ldconfig






# Some variables that can be used to set control the docker build
ARG MODEL_VERSION=git

Expand Down

0 comments on commit fcfca38

Please sign in to comment.