Commit 99468970 authored by GILLES Sebastien's avatar GILLES Sebastien

#859 Improve README concerning creation of Docker images.

parent a46eeb00
......@@ -9,16 +9,22 @@ As the purpose is to provide a functioning MoReFEM at a minimal storge cost, onl
# Generation of the images
The Dockerfile in _Docker/Dockerfile_ is used to generate the image with dedicated args.
The Dockerfile in _Docker/Dockerfile_ is used to generate the image with dedicated args. Let's assume you have define a variable MOREFEM_TAG with a value such as vXX.YY (for instance v19.48):
For instance (when run from the root of the project):
````
DOCKER_BUILDKIT=1 docker build -t registry.gitlab.inria.fr/morefem/corelibrary/morefem/ubuntu_gcc_debug_shared --progress=plain -f Docker/Dockerfile --build-arg os=fedora --build-arg mode=debug --build-arg compiler=gcc --build-arg is_single_library=False --build-arg library_type=shared .
docker tag registry.gitlab.inria.fr/morefem/corelibrary/morefem/ubuntu_gcc_debug_shared registry.gitlab.inria.fr/morefem/corelibrary/morefem/ubuntu_gcc_debug_shared:${MOREFEM_TAG}
DOCKER_BUILDKIT=1 docker build -t registry.gitlab.inria.fr/morefem/corelibrary/morefem/fedora_clang_release_shared --progress=plain -f Docker/Dockerfile --build-arg os=fedora --build-arg mode=release --build-arg compiler=clang --build-arg is_single_library=True --build-arg library_type=shared .
docker tag registry.gitlab.inria.fr/morefem/corelibrary/morefem/fedora_clang_release_shared registry.gitlab.inria.fr/morefem/corelibrary/morefem/fedora_clang_release_shared:${MOREFEM_TAG}
DOCKER_BUILDKIT=1 docker build -t registry.gitlab.inria.fr/morefem/corelibrary/morefem/fedora_clang_debug_shared --progress=plain -f Docker/Dockerfile --build-arg os=fedora --build-arg mode=debug --build-arg compiler=clang --build-arg is_single_library=False --build-arg library_type=shared .
docker tag registry.gitlab.inria.fr/morefem/corelibrary/morefem/fedora_clang_debug_shared registry.gitlab.inria.fr/morefem/corelibrary/morefem/fedora_clang_debug_shared:${MOREFEM_TAG}
````
# Putting images on registry
......
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