Skip to content
Snippets Groups Projects
Commit 4240c65f authored by Coda Phillips's avatar Coda Phillips
Browse files

Init

parents
No related branches found
No related tags found
No related merge requests found
FROM centos_gcc
WORKDIR /root/
COPY make_all.sh make_all.sh
COPY download_src.sh download_src.sh
RUN ./make_all.sh
ENV LD_LIBRARY_PATH='/root/hdf5/lib/:/root/netcdf/lib/:/root/hdf4/lib/':$LD_LIBRARY_PATH
#!/bin/bash
docker build -t netcdf_hdf .
#!/bin/bash
set -ex
wget https://support.hdfgroup.org/ftp/HDF/releases/HDF4.2.13/src/hdf-4.2.13.tar.bz2
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.20/src/hdf5-1.8.20.tar.bz2
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.1.tar.gz
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.5.1.tar.gz
#!/bin/bash
yum install -y libjpeg-turbo-static.x86_64 zlib-static.x86_64 subversion glibc-static wget
./download_src.sh
tar xf hdf-4.2.13.tar.bz2
tar xf hdf5-1.8.20.tar.bz2
tar xf netcdf-c-4.7.1.tar.gz && tar xf netcdf-fortran-4.5.1.tar.gz
cd hdf-4.2.13
./configure --enable-static --enable-netcdf=no --prefix=/root/hdf4/
make
make install
cd /root/hdf5-1.8.20/
export PREFIX=/root/hdf5
./configure --enable-static --prefix=/root/hdf5/ --enable-fortran2003 --enable-fortran
make
make install
export PREFIX=/root/netcdf
cd /root/netcdf-c-4.7.1
CFLAGS='-I/root/hdf5/include/' LDFLAGS='-L/root/hdf5/lib/' ./configure --prefix=/root/netcdf/ --enable-static --disable-dap
make
make install
cd /root/netcdf-fortran-4.5.1
LD_LIBRARY_PATH=/root/hdf5/lib/:/root/netcdf/lib/:$LD_LIBRARY_PATH CFLAGS='-I/root/hdf5/include/ -I/root/netcdf/include/' LDFLAGS='-L/root/hdf5/lib/ -L/root/netcdf/lib/' ./configure --prefix=/root/netcdf/ --enable-static
make
make install
cd /root/
mkdir /root/lib/
ln -s /root/hdf4 /root/lib/hdf4_gcc
ln -s /root/hdf5 /root/lib/hdf5_gcc
ln -s /root/netcdf /root/lib/netcdf4_gcc
rm -rf hdf-4.2.13 hdf-4.2.13.tar.bz2 hdf5-1.8.20 install_clavrx_trunk_gfortran.sh netcdf-c-4.7.1 netcdf-c-4.7.1.tar.gz netcdf-fortran-4.5.1 netcdf-fortran-4.5.1.tar.gz hdf5-1.8.20.tar.bz2 anaconda-ks.cfg install.log install.log.syslog
yum remove -y wget subversion
run.sh 0 → 100644
docker run -it --rm netcdf_hdf /bin/bash -l
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment