diff --git a/Dockerfile b/Dockerfile index cf268b4ac7629c13803908eb9e8554c153cee18d..445c21b6d1361ca9655a452b28555e873a76aaa5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM centos_gcc:7 +FROM gitlab.ssec.wisc.edu:5555/cphillips/centos6_gcc_docker WORKDIR /root/ COPY make_all.sh make_all.sh diff --git a/build.sh b/build.sh index 2babd25d6f3e7a8968558faffb461edafac3a1eb..45b3434b14a3c616df706ed0027ee8223db2161f 100755 --- a/build.sh +++ b/build.sh @@ -1,2 +1,3 @@ #!/bin/bash -docker build -t netcdf_hdf:7 . +#docker build -t netcdf_hdf:7 . +docker build -t gitlab.ssec.wisc.edu:5555/cphillips/netcdf_hdf_docker . diff --git a/download_src.sh b/download_src.sh index 1fe9d275279163a2ae4f66f0fb9ef1d675a7b1bd..ed67af2dffd1a551f0447110ccdeb6db82e6df2d 100755 --- a/download_src.sh +++ b/download_src.sh @@ -1,8 +1,8 @@ #!/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 +wget https://hdf-wordpress-1.s3.amazonaws.com/wp-content/uploads/manual/HDF5/HDF5_1_12_3/src/hdf5-1.12.3.tar.gz +wget https://downloads.unidata.ucar.edu/netcdf-c/4.9.2/netcdf-c-4.9.2.tar.gz +wget https://downloads.unidata.ucar.edu/netcdf-fortran/4.6.1/netcdf-fortran-4.6.1.tar.gz diff --git a/make_all.sh b/make_all.sh index ee4cccb80121246556eaeee1305bdbfbecdd5f77..c1c2be3e6aaa78a7db2a20ccdfb7533a31eb2a41 100755 --- a/make_all.sh +++ b/make_all.sh @@ -1,11 +1,13 @@ #!/bin/bash +set -ex + yum install -y libjpeg-turbo-static.x86_64 zlib-static.x86_64 subversion glibc-static wget bison flex ./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 +tar xf hdf5-1.12.3.tar.gz +tar xf netcdf-c-4.9.2.tar.gz +tar xf netcdf-fortran-4.6.1.tar.gz cd /root/hdf-4.2.13 export PREFIX=/root/hdf4 @@ -13,19 +15,19 @@ export PREFIX=/root/hdf4 make make install -cd /root/hdf5-1.8.20/ +cd /root/hdf5-1.12.3/ export PREFIX=/root/hdf5 ./configure --enable-static --prefix=/root/hdf5/ --enable-fortran2003 --enable-fortran make make install -cd /root/netcdf-c-4.7.1 +cd /root/netcdf-c-4.9.2 export PREFIX=/root/netcdf -CFLAGS='-I/root/hdf5/include/' LDFLAGS='-L/root/hdf5/lib/' ./configure --prefix=/root/netcdf/ --enable-static --disable-dap +CFLAGS='-I/root/hdf5/include/' LDFLAGS='-L/root/hdf5/lib/' ./configure --prefix=/root/netcdf/ --enable-static --disable-dap --disable-libxml2 --disable-byterange make make install -cd /root/netcdf-fortran-4.5.1 +cd /root/netcdf-fortran-4.6.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 @@ -36,5 +38,5 @@ 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 +rm -rf hdf-4.2.13 hdf-4.2.13.tar.bz2 hdf5-1.12.3 install_clavrx_trunk_gfortran.sh netcdf-c-4.9.2 netcdf-c-4.9.2.tar.gz netcdf-fortran-4.6.1 netcdf-fortran-4.6.1.tar.gz hdf5-1.12.3.tar.gz anaconda-ks.cfg install.log install.log.syslog yum remove -y wget subversion diff --git a/run.sh b/run.sh index c02fdfc4d763aa8a51a0761ac51a33144d36fc72..28dd55bb6a799e209bffb5b8f9d3c3eee88d03e5 100644 --- a/run.sh +++ b/run.sh @@ -1 +1 @@ -docker run -it --rm netcdf_hdf /bin/bash -l +docker run -it --rm gitlab.ssec.wisc.edu:5555/cphillips/netcdf_hdf_docker /bin/bash -l