...
Currently*, the following features are supported:
Column |
---|
|
Name | Description | Default | Options |
---|
gpu | If the container technology supports it, add flags to indicate using gpu. | null | nvidia, amd, null | x11 | Bind mount ~/.Xauthority or a custom path | null | true (uses default path ~/.Xauthority), false/null (do not enable) or a custom path to an x11 file | home | Specify and bind mount a custom homepath | null | custom path for the home, or false/null |
|
*Correct as of 11/8/2023
Note that you can use the home
feature to allow your container module to bind mount a home of your choosing. This might be needed for some containers that expect to access a certain directory. For example, the aws-cli container expects to have read/write access to your ~/.aws
directory. See the following SHPC recipe as an example which would bind mount the user's home directory:
...
Column |
---|
|
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | Listing 2. Example SHPC recipe that demonstrates yaml demonstrating the home feature |
---|
linenumbers | true |
---|
collapse | true |
---|
| docker: quay.io/pawsey/hpc-python
url: https://quay.io/repository/pawsey/hpc-python
maintainer: '@marcodelapierre'
description: Base Python images with popular packages for HPC workflows.
latest:
'2022.03': sha256:962e7c24302b2dc3946bb22326d0cb4385373113a212231488070aa3e43bd1a1
tags:
'2021.09': sha256:c2f3f585a0be711046583c5861199107c94e047545325834d68d81d2582b7a04
2021.09-hdf5mpi: sha256:9d34b5908630e028a6a084891af8b6e65f2626c30e57c06e883f8909850c782b
'2022.03': sha256:962e7c24302b2dc3946bb22326d0cb4385373113a212231488070aa3e43bd1a1
2022.03-hdf5mpi: sha256:e9a0db88e98c2388d8731a983ed845b46ce0e2d99d4566802b84142ce21e1c23
aliases:
python: /usr/local/bin/python
python3: /usr/local/bin/python3
env:
PYTHONSTARTUP: ''
PYTHONUSERBASE: ''
features:
home: true |
|
...