跳转到主要内容

Pubtools-pyxis

项目描述

一组用于操作Pyxis服务的脚本。

需求

  • Python 3.7+

功能

pubtools-pyxis-get-operator-indices - 获取满足指定条件的索引镜像列表 pubtools-pyxis-get-repo-metadata - 获取Comet仓库的元数据 pubtools-pyxis-upload-signatures - 将容器签名上传到Pyxis

设置

$ pip install -r requirements.txt
$ pip install .
or
$ python setup.py install

用法

获取操作索引

pubtools-pyxis-get-operator-indices \
--pyxis-server https://pyxis-server-url/ \
--pyxis-krb-principal lgallovi@REDHAT.COM \
--ocp-versions-range 4.6 \
--pyxis-insecure

pubtools-pyxis-get-operator-indices \
--pyxis-server https://pyxis-server-url/ \
--pyxis-krb-principal iib-stage@REDHAT.COM \
--pyxis-krb-ktfile /path/to/file.keytab \
--ocp-versions-range 4.5-4.7

pubtools-pyxis-get-operator-indices \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--ocp-versions-range 4.6

获取仓库元数据

pubtools-pyxis-get-repo-metadata \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--repo-name some-repo/name

pubtools-pyxis-get-repo-metadata \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--repo-name some-repo/name \
--only-internal-registry

pubtools-pyxis-get-repo-metadata \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--repo-name some-repo/name \
--only-partner-registry

上传签名

pubtools-pyxis-upload-signatures \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--signatures '[{"foo": "bar"}]'

pubtools-pyxis-upload-signatures \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--signatures @signatures.json

获取签名

pubtools-pyxis-get-signatures \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--manifest-digest sha256-digest-of-manifest,sha256-digest-of-other-manifest

pubtools-pyxis-get-signatures \
--pyxis-server https://pyxis-server-url/ \
--pyxis-ssl-crtfile /path/to/file.crt \
--pyxis-ssl-keyfile /path/to/file.key \
--manifest-digest sha256-digest-of-manifest
--reference pull-reference-of-image,pull-reference-of-image2

变更日志

1.3.5 (2023-03-14)

  • 并行删除签名

1.3.4 (2023-03-01)

  • 修复请求线程

  • 停止对Python 2的支持

1.3.3 (2022-11-09)

  • 容忍签名上传的409错误

  • 添加Bandit检查并解决Bandit发现的问题

1.3.2 (2021-10-15)

  • 修改了重试请求的方法

1.3.1 (2021-08-19)

  • 修复了使用Python 2.6 distutils构建的问题

1.3.0 (2021-08-18)

  • 添加了文档

  • 添加了对签名并行上传的支持

1.2.0 (2021-06-10)

  • 添加了将文件作为输入类型添加到–manifest_digests和–reference for get-signatures的能力

  • 添加了删除签名的入口点

1.1.0 (2021-03-29)

  • 添加了 upload-signatures 和 get-signatures 以与 pyxis sigstore 交互

  • 添加了 get-repository-metadata 以从 pyxis 获取存储库数据

  • 修复了 py2.6 pip URL

1.0.0 (2020-11-27)

  • 将版本设置为 1.0.0 以表示稳定版本

0.2.0 (2020-11-23)

  • 修复模块路径

0.1.0 (2020-11-20)

  • 初始发布。

项目详情


下载文件

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

源分发

pubtools-pyxis-1.3.5.tar.gz (19.8 kB 查看哈希值)

上传时间

构建分发

pubtools_pyxis-1.3.5-py2.py3-none-any.whl (15.5 kB 查看哈希值)

上传时间 Python 2 Python 3

支持