...
- Below you will find instructions with example commands to run.
- Commands to be run on your local machine will be shown on green backgroundmarked with red color.
- Commands to be run on the Gateway will be shown on white backgroundmarked with green color.
- Commands to be run in the running container will be marked with red blue color.
- The documentation covers usage of both Docker (running on your own computer) and uDocker (running on the Gateway). You do not have to follow both scenarios.
...
- Docker on your own computer:
- Follow instructions at Docker for Windows, or
- Follow instructions at Docker for Mac, or
- Follow instructions at Docker for CentOS, Docker for Debian, Docker for Fedora or Docker for Ubuntu
uDocker on Gateway:
Code Block language bash mkdir -p ~/.local/bin $ITMWORK/dot-udocker ln -s $ITMWORK/dot-udocker ~/.udocker curl https://raw.githubusercontent.com/indigo-dc/udocker/master/udocker.py > ~/.local/bin/udocker chmod u+rx ~/.local/bin/udocker echo "tmpdir='$ITMSCRATCH'" > ~/.udocker/udocker.conf ~/.local/bin/udocker install
Loading Docker image
Docker on your own compujtercomputer:
Code Block theme DJangolanguage bash scp login.eufus.eu:~g2tomz/public/imas-installer-20180921112143.tar.xz ./ xzcat imas-installer-20180921112143.tar.xz | docker load
uDocker on Gateway:
Code Block theme Midnightlanguage bash xzcat ~g2tomz/public/imas-installer-20180921112143.tar.xz | ~/.local/bin/udocker load
...
Create a container and start a shell in it:
Docker on your own computer:
Code Block theme DJangolanguage bash docker run --interactive --tty --name imas imas-installer:20180921112143
uDocker on Gateway:
Code Block language bash ~/.local/bin/udocker create --name=imas imas-installer:20180921112143 ~/.local/bin/udocker run imas
In the container shell, execute:
Code Block language bash module load imas imasdb test python /home/imas/imas-installer/src/$IMAS_VERSION/ual/$UAL_VERSION/examples/dd-v3/python/put_pf.py
Transfer the results to the Gateway:
Docker on your own computer:
Code Block theme DJango language bash docker cp imas:/home/imas/public/imasdb/test/3/0/ids_120001.characteristics /tmp/ docker cp imas:/home/imas/public/imasdb/test/3/0/ids_120001.datafile /tmp/ docker cp imas:/home/imas/public/imasdb/test/3/0/ids_120001.tree /tmp/ scp /tmp/ids_120001.* login.eufus.eu:public/imasdb/test/3/0/
uDocker on Gateway:
Code Block language bash cp ~/.udocker/containers/imas/ROOT/home/imas/public/imasdb/test/3/0/ids_120001.* ~/public/imasdb/test/3/0/
Check correctness of the results, on Gateway:
Code Block language bash idsdump 12 1 pf_active
...
Create a container and start a shell in it:
Docker on your own computer:
themeCode Block DJango language bash docker run --interactive --tty --name imas imas-installer:20180921112143
uDocker on Gateway:
Code Block language bash ~/.local/bin/udocker create --name=imas imas-installer:20180921112143 ~/.local/bin/udocker run imas
In the container shell, execute:
Code Block language bash module load imas kepler module load keplerdir imasdb test export USER=imas kepler -runwf -nogui -user imas /home/imas/simple-workflow.xml
Transfer the results to the Gateway:
Docker on your own computer:
Code Block theme DJangolanguage bash docker cp imas:/home/imas/public/imasdb/test/3/0/ids_10001.characteristics /tmp/ docker cp imas:/home/imas/public/imasdb/test/3/0/ids_10001.datafile /tmp/ docker cp imas:/home/imas/public/imasdb/test/3/0/ids_10001.tree /tmp/ scp /tmp/ids_10001.* login.eufus.eu:public/imasdb/test/3/0/
uDocker on Gateway:
Code Block language bash cp ~/.udocker/containers/imas/ROOT/home/imas/public/imasdb/test/3/0/ids_10001.* ~/public/imasdb/test/3/0/
Check correctness of the results, on Gateway:
Code Block language bash idsdump 1 1 pf_active