Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

alephpiece/docker-openmpi

Repository files navigation

Layers Version Commit License Docker Pulls Automated Build

Supported tags

  • 4.0.0
  • 3.1.5

How to use

  1. Install docker engine

  2. Pull the image

docker pull leavesask/gompi:<tag>
  1. Run the image interactively
docker run -it --rm leavesask/gompi:<tag>

How to build

The base image is spack.

make

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.

docker build

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 to 9.2.0)

  • OMPI_VERSION: The version of OpenMPI supported by spack (defaults to 4.0.0)

  • OMPI_OPTIONS: Spack variants (defaults to none)

  • GROUP_NAME: User group (defaults to mpi)

  • USER_NAME: User name (defaults to one)

    • This is the default user when the image is started.

About

Dockerfiles for building OpenMPI with GCC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published