Commit ee5e5746 authored by jan vogelsang's avatar jan vogelsang

Updated definition files

parent ea9384d1
Bootstrap: library
From: library/default/ubuntu
Stage: build
%post
apt update && DEBIAN_FRONTEND=noninteractive apt install git cdo -yq
cd /home/ && git clone https://gitlab.version.fz-juelich.de/vogelsang1/source.git
%runscript
for i in `seq 2 2 $#`; do
j=$((i+1))
eval first=\${$i}
eval second=\${$j}
/home/source/preprocessing.sh /home/source $first $second $1
done
%labels
Author Jan_Vogelsang
Version v1.0
%help
This container preprocesses a data file in the netcdf format for subsequent visualization.
......@@ -5,34 +5,42 @@ Stage: build
%post
apt update && apt install cmake git wget zlib1g-dev build-essential m4 -y
cd /root
cd /var
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"
export CPPFLAGS="-I/var/hdf5-1.10.5/hdf5/include" && export LDFLAGS="-L/var/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
git clone https://gitlab.version.fz-juelich.de/vogelsang1/source.git && chmod +x source/preprocessing.sh
cd .. && rm -rf cdo-1.9.8 && rm -rf netcdf-c-4.7.2
cd / && git clone https://gitlab.version.fz-juelich.de/vogelsang1/source.git && chmod -R a+rx /source
%environment
export LD_LIBRARY_PATH=/usr/local/lib:/root/hdf5-1.10.5/hdf5/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:/var/hdf5-1.10.5/hdf5/lib:$LD_LIBRARY_PATH
%runscript
for i in `seq 2 2 $#`; do
for i in `seq 3 2 $#`; do
j=$((i+1))
/root/source/preprocessing.sh $$i $$j $1
eval first=\${$i}
eval second=\${$j}
/source/preprocessing.sh $first $second $1 $2
done
%labels
Author Jan_Vogelsang
Version v1.0
%help
This container preprocesses a data file in the netcdf format for subsequent visualization.
The preprocessing can use an unlimited number of threads while the exact number has to be given as second argument when running the container. As first argument the longitude to center the dataset around has to be provided.
The third and fourth to (n-1)th and nth arguments have to be a couple of one input and one output path for an existing dataset which will be written to the ouput path and filename after finishing preprocessing. To access datasets it is advised to use the --bind /your/input/path:/mnt parameter when running the container.
Subproject commit 9a3c993327e7a59794dd243103db7e89fe54ad3b
Subproject commit b6a16f68da21f63547a618c90daae65b785fa2e5
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