Commit fe2f600c authored by jan vogelsang's avatar jan vogelsang

Modified definition file

parent 4c8168b1
......@@ -4,18 +4,33 @@ Stage: build
%post
apt update && apt install python3 cdo python3-cdo git -y
pip install netCDF4 xarray cdo
apt update && apt install cmake git wget zlib1g-dev build-essential m4 -y
cd /root
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5-1.10.5.tar.gz
tar xzf hdf5-1.10.5.tar.gz && rm hdf5-1.10.5.tar.gz && cd hdf5-1.10.5
./configure --enable-threadsafe --enable-unsupported && make && make install
cd .. && wget https://github.com/Unidata/netcdf-c/archive/v4.7.2.tar.gz
tar xzf v4.7.2.tar.gz && rm v4.7.2.tar.gz && cd netcdf-c-4.7.2
export CPPFLAGS="-I/root/hdf5-1.10.5/hdf5/include" && export LDFLAGS="-L/root/hdf5-1.10.5/hdf5/lib"
./configure --disable-dap --enable-netcdf-4
make && make install
cd .. && wget https://code.mpimet.mpg.de/attachments/download/20826/cdo-1.9.8.tar.gz
tar xzf cdo-1.9.8.tar.gz && rm cdo-1.9.8.tar.gz && cd cdo-1.9.8
./configure --with-netcdf=/usr/local && make && make install
cd .. && rm -rf cdo-1.9.8 && rm -rf hdf5-1.10.5 && rm -rf netcdf-c-4.7.2
echo "LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> /etc/profile && source /etc/profile
git clone https://gitlab.version.fz-juelich.de/vogelsang1/source.git && cd source
%runscript
for (( i=2; i<=$#; i+=2 )) do
j=$((i+1))
/root/source/preprocess.sh $$i $$j $1
done
%labels
Author Jan_Vogelsang
Version v1.0
Version v1.0
%help
This container preprocesses a data file in the netcdf format for subsequent visualization.
%runscript
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment