---
# System prepended metadata

title: WRFFFFFFFFFFFF

---

# WRFFFFFFFFFFFF
```shell=
FROM centos:7
WORKDIR /
# post
RUN rm -f /var/run/yum.pid && \
    yum -y update && \
    yum -y install make && \
    yum -y install gcc gcc-c++ csh wget time cmake unzip git libstdc++-devel libXScrnSaver m4 && \
    mkdir -p /Build_WRF/src && \
    echo -e "ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-c-4.7.3.tar.gz\nftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.5.2.tar.gz\nhttp://www.zlib.net/fossils/zlib-1.2.11.tar.gz\nftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.37.tar.gz\nhttp://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip" > /url.txt && \
    wget -i /url.txt -P /Build_WRF/src && \
    for f in /Build_WRF/src/*.tar.gz; do tar -xvf "$f" -C /Build_WRF/src; done && \
    unzip /Build_WRF/src/jasper-1.900.1.zip -d /Build_WRF/src 
ENV NPROC=$(nproc) 
# hdf5
RUN cd hdf5-1.8.17 && \
    ./configure --prefix=/usr/local/hdf5-1.8.17 && \
    make -j${NPROC} && \
    make install
# zlib    
RUN cd /Build_WRF/src/zlib-1.2.11 && \ 
    ./configure --prefix=/usr/local   
    make -j${NPROC} && \
    make install && \
# netcdf    
    cd /Build_WRF/src/netcdf-c-4.7.3 && \
    CPPFLAGS='-fPIC' ./configure --prefix=/Build_WRF/LIBRARIES/netcdf --disable-dap
RUN make -j${NPROC} && \
    make install && \
    cd /Build_WRF/src/netcdf-fortran-4.5.2 && \
    CPPFLAGS='-fPIC' CPPFLAGS='-I/Build_WRF/LIBRARIES/netcdf/include' LDFLAGS='-L/Build_WRF/LIBRARIES/netcdf/lib' ./configure --prefix=/Build_WRF/LIBRARIES/netcdf && \
    make -j${NPROC} && \
    make install
ENV PATH=/Build_WRF/LIBRARIES/netcdf/bin:$PATH
ENV NETCDF=/Build_WRF/LIBRARIES/netcdf
RUN CPPFLAGS='-I/usr/local/zlib/include' LDFLAGS='-L/usr/local/zlib/lib' /Build_WRF/src/libpng-1.6.37/configure --prefix=/Build_WRF/LIBRARIES/libpng && \
    /Build_WRF/src/libpng-1.6.37/make && \
    /Build_WRF/src/libpng-1.6.37/make install
ENV LD_LIBRARY_PATH=/Build_WRF/LIBRARIES/libpng/lib:$LD_LIBRARY_PATH
RUN /Build_WRF/src/jasper-1.900.1/configure --prefix=/Build_WRF/LIBRARIES/grib2 && \
    /Build_WRF/src/jasper-1.900.1/make && \
    /Build_WRF/src/jasper-1.900.1/make install
ENV PATH=/Build_WRF/LIBRARIES/jasper/bin:$PATH
ENV LD_LIBRARY_PATH=/Build_WRF/LIBRARIES/jasper/lib64:$LD_LIBRARY_PATH
RUN git clone https://github.com/wrf-model/WRF /Build_WRF/WRF_ISC21
ENV NETCDF=$NETCDF_DIR
ENV WRFIO_NCD_LARGE_FILE_SUPPORT=1
ENV NETCDF_classic=1
RUN /Build_WRF/WRF_ISC21/configure
```
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.1.3.tar.gz