https://github.com/release-engineering/pubtools-pyxis
Set of CLI scripts to be used as pub components in Pyxis related use cases
https://github.com/release-engineering/pubtools-pyxis
Last synced: 10 months ago
JSON representation
Set of CLI scripts to be used as pub components in Pyxis related use cases
- Host: GitHub
- URL: https://github.com/release-engineering/pubtools-pyxis
- Owner: release-engineering
- License: lgpl-3.0
- Created: 2020-11-20T09:44:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-06-05T12:10:36.000Z (about 1 year ago)
- Last Synced: 2025-08-22T11:02:26.904Z (10 months ago)
- Language: Python
- Homepage: https://release-engineering.github.io/pubtools-pyxis/
- Size: 5.97 MB
- Stars: 0
- Watchers: 11
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
===============
pubtools-pyxis
===============
Set of scripts used for operating with Pyxis service.
Requirements
============
* Python 3.7+
Features
========
pubtools-pyxis-get-operator-indices - get a list of index images satisfying the specified conditions
pubtools-pyxis-get-repo-metadata - get metadata of a Comet repo
pubtools-pyxis-upload-signatures - upload container signatures to Pyxis
Setup
=====
::
$ pip install -r requirements.txt
$ pip install .
or
$ python setup.py install
Usage
=====
Get operator indices:
::
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
Get repository metadata:
::
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
Upload signatures:
::
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
Get signatures:
::
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