...
- Below you will find instructions with example commands to run.
- Commands to be run on your local machine will be marked with blue colorshown on green background.
- Commands to be run on the Gateway will be marked with green colorshown on white background.
- Commands to be run in the running container will be marked with red 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
...
Docker on your own compujter:
Code Block theme DJango language 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 Midnight language 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 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
...
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/
...
Create a container and start a shell in it:
Docker on your own computer:
Code Block theme 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 DJango language 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/
On the host machine, execute:
Code Block docker cp imas:/home/imaslanguage bash /public/imasdb/test/3/0
/
Check correctness of the results, on Gateway:
Code Block language bash idsdump 1 1 pf_active