Skip to content
This repository has been archived by the owner on Oct 25, 2020. It is now read-only.
/ docker-hdf5 Public archive

Dockerfiles for building HDF5 with GCC for application development

License

Notifications You must be signed in to change notification settings

alephpiece/docker-hdf5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Layers Version Commit License Docker Pulls Automated Build

Supported tags

  • 1.10.5-gompi, 1.10.5-gompi-4.0.0, 1.10.5-gompi-3.1.5
  • 1.10.5-gcc, 1.10.5-gcc-9.2.0, 1.10.5-gcc-8.3.0, 1.10.5-gcc-7.3.0
  • 1.10.5-clang

How to use

  1. Install docker engine

  2. Pull the image

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

How to build

make

There are a bunch of build-time arguments you can use to build the image.

It is hightly recommended that you build the image with make.

# Build an image for HDF5 1.10.5
make

# Build and publish the image
make release

Check Makefile for more options.

docker build

As an alternative, you can build the image with docker build command.

docker build \
        --build-arg BASE_IMAGE="leavesask/gcc" \
        --build-arg BASE_TAG="latest" \
        --build-arg HDF5_VMAJOR="1.10" \
        --build-arg HDF5_VMINOR="5" \
        --build-arg HDF5_CC="gcc" \
        --build-arg HDF5_CXX="g++" \
        --build-arg HDF5_OPTIONS="--enable-cxx" \
        --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
        --build-arg VCS_REF=`git rev-parse --short HEAD` \
        -t my-repo/hdf5:latest .

Arguments and their defaults are listed below.

  • BASE_IMAGE: value (default=leavesask/gompi)

    • This is the base image for all of the stages.
    • It is supposed to be a toolchain containing compilers.
  • BASE_TAG: value (default=latest)

  • HDF5_VMAJOR: X.X (default=1.10)

  • HDF5_VMINOR: X (default=5)

  • HDF5_CC: value (default=mpicc)

  • HDF5_CXX: value (default=mpicxx)

  • HDF5_OPTIONS: option[=value] (default=--enable-cxx --enable-parallel --enable-unsupported)

    • Options needed to configure the installation.
    • The default installation path is /opt/hdf5/${HDF5_VERSION} so that option --prefix is unnecessary.
  • USER_NAME: value (default=one)

    • This must be an existing user in the base image.

About

Dockerfiles for building HDF5 with GCC for application development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published