4.0.03.1.5
-
Pull the image
docker pull leavesask/gompi:<tag>- Run the image interactively
docker run -it --rm leavesask/gompi:<tag>The base image is spack.
There are a bunch of build-time arguments you can use to build the GCC-OpenMPI image.
It is highly recommended that you build the image with make.
# Build an image for OpenMPI 4.0.0
make OMPI_VERSION="4.0.0" GCC_VERSION="9.2.0"
# Build and publish the image
make release OMPI_VERSION="4.0.0"Check Makefile for more options.
As an alternative, you can build the image with docker build command.
docker build \
--build-arg GCC_VERSION="latest" \
--build-arg OMPI_VERSION="4.0.0" \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
-t my-repo/gompi:latest .Arguments and their defaults are listed below.
-
GCC_VERSION: The version of GCC supported by spack (defaults to9.2.0) -
OMPI_VERSION: The version of OpenMPI supported by spack (defaults to4.0.0) -
OMPI_OPTIONS: Spack variants (defaults to none) -
GROUP_NAME: User group (defaults tompi) -
USER_NAME: User name (defaults toone)- This is the default user when the image is started.