跳转到主要内容

用于在HPC环境中拉取singularity镜像的工具。

项目描述

用于填充singularity缓存的应用程序。适用于HPC集群,其中多个节点如果在同一缓存中同时拉取图像,则可能尚未存在。

安装

prepull-singularity已在python 3.5、3.6、3.7和3.8上进行了测试。可以使用以下命令安装:

pip install prepull-singularity

如何运行

  1. 创建一个YAML文件,列出要拉取的图像。

alpine: "alpine:latest"
debian: "debian:stretch-slim"
  1. 运行程序 prepull-singularity images.yml

用法

usage: prepull-singularity [-h] [-a MAX_ATTEMPTS] [-p PREFIX]
                           [--stop-on-failure] [--show-output-on-failure]
                           [--show-output-on-success]
                           [--singularity-exe SINGULARITY_EXE] [--use-digest]
                           input

Pull images from listed in a YAML file, so they get cached and can be run
without pulling later.

positional arguments:
  input                 A YAML file listing the images to be pulled, either as
                        a map or list.

optional arguments:
  -h, --help            show this help message and exit
  -a MAX_ATTEMPTS, --max-attempts MAX_ATTEMPTS
                        Maximum number of times to attempt pulling each image;
                        defaults to 3.
  -p PREFIX, --prefix PREFIX
                        Prefix for the image url; defaults to 'docker://'.
  --stop-on-failure     Stop when pulling an image fails; by default all
                        images will be attempted to be pull even if one fails.
  --show-output-on-failure
                        Print the stderr and stdout when pulling an image
                        fails.
  --show-output-on-success
                        Print the stderr and stdout when pulling an image
                        succeeds.
  --singularity-exe SINGULARITY_EXE
                        The command for running singularity; defaults to
                        'singularity'
  --use-digest          Retrieve the image digestes from dockerhub or quay.io
                        and use those (instead of the tags) to pull the
                        images. Only usable with docker images.

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

prepull-singularity-0.2.0.tar.gz (5.7 kB 查看哈希值)

上传时间 源代码

构建分发版本

prepull_singularity-0.2.0-py3-none-any.whl (6.9 kB 查看哈希值)

上传时间 Python 3

由以下支持