Versions Compared

Key

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

Dependencies

Steps

Building the Docker image

...

  • You must place id_rsa file as roles/kepler/files/id_rsa and roles/ual/files/id_rsa
  • The id_rsa file contains private key which allows passwordless login to ssh://git@git.iter.org 

...

Code Block
languagebash

...

git 

...

clone

...

 

...

-

...

b 

...

develop ssh://

...

git@git.iter.

...

org/

...

imex/

...

imas-container.git
cd imas-container/
./01-base
./02-ual    # 

...

will 

...

ask 

...

for SSH private key to access git.iter.org
./03-kepler # as above
./04-fc2k   # as above
  • Each step creates a cached layer
  • First imas/base is created with compilers, libraries, etc.
  • Then imas/ual on top of that with IMAS environment
  • Next imas/kepler with addition of Kepler
  • Finally imas/fc2k with FC2K installation

Saving the image

  • Check image ID with command:

    Code Block
    languagebash
    $ buildah images
    REPOSITORY                       TAG      IMAGE ID       CREATED       SIZE
    localhost/imas/fc2k              latest   ba3ac550589e   7 days ago    2.98 GB
  • Save to Docker daemon:

    Code Block
    buildah push ba3ac550589e docker-daemon:imas/fc2k:latest
  • Save to file:

    Code Block
    docker save imas/fc2k:latest | xz > imas-fc2k-latest.tar.xz

Warning

You could use buildah push <IMAGE-ID> docker-archive:FILE.TAR to export directly to a file. However, uDocker is unable to load such files, therefore it is recommended to export images through Docker daemon as described above.