Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create a container and start a shell in it:

    • Docker on your own computer:

      Code Block
      languagebash
      docker run --interactive --tty --name imas imas/fc2k
    • uDocker on Gateway:

      Code Block
      languagebash
      ~/.local/bin/udocker create --name=imas imas/fc2k
      ~/.local/bin/udocker run --user root imas pip install 'matplotlib<3'
      ~/.local/bin/udocker run --user root imas pip3 install 'matplotlib<3.1'
      ~/.local/bin/udocker run --user root imas apt-get install -y python-tk python3-tk
      ~/.local/bin/udocker run imas
  • Transfer the Kepler workflow into the container

    • Docker on your own computer:

      Code Block
      scp login.eufus.eu:~g2tomz/public/simple-workflow.xml ./
      docker cp simple-workflow.xml imas:simple-workflow.xml
    • uDocker on Gateway:

      Code Block
      cp ~g2tomz/public/simple-workflow.xml ~/.udocker/containers/imas/ROOT/home/imas/


  • In the container shell, execute:

    Code Block
    languagebash
    cp $IMAS_PREFIX/models/mdsplus/ids_model.characteristics public/imasdb/test/3/0/ids_19998.characteristics
    cp $IMAS_PREFIX/models/mdsplus/ids_model.datafile public/imasdb/test/3/0/ids_19998.datafile
    cp $IMAS_PREFIX/models/mdsplus/ids_model.tree public/imasdb/test/3/0/ids_19998.tree
    kepler -runwf -nogui -user imas /home/imas/simple-workflow.xml
  • Transfer the results to the Gateway:

    • Docker on your own computer:

      Code Block
      languagebash
      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
      languagebash
      cp ~/.udocker/containers/imas/ROOT/home/imas/public/imasdb/test/3/0/ids_10001.* ~/public/imasdb/test/3/0/

...