Skip to main content

Pubtools-pyxis

Project description

Set of scripts used for operating with Pyxis service.

Requirements

  • Python 2.7+

  • 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

ChangeLog

1.3.1 (2021-08-19)

  • Fixed building with Python 2.6 distutils

1.3.0 (2021-08-18)

  • Added documentation

  • Added support for parallel uploading of signatures

1.2.0 (2021-06-10)

  • Added the ability to add file as input type for –manifest_digests and –reference for get-signatures

  • Added entrypoint for removing signatures

1.1.0 (2021-03-29)

  • Added upload-signatures, get-signatures to interact with pyxis sigstore

  • Added get-repository-metadata to fetch repository data from pyxis

  • Fixed py2.6 pip url

1.0.0 (2020-11-27)

  • Set version to 1.0.0 to indicate stable release

0.2.0 (2020-11-23)

  • Fix module path

0.1.0 (2020-11-20)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pubtools-pyxis-1.3.1.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

pubtools_pyxis-1.3.1-py2.py3-none-any.whl (14.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pubtools-pyxis-1.3.1.tar.gz.

File metadata

  • Download URL: pubtools-pyxis-1.3.1.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for pubtools-pyxis-1.3.1.tar.gz
Algorithm Hash digest
SHA256 b3a079b55d5ce220e61020764fb3950dbc2147fdc40244d4eb27cbfbf3e853fc
MD5 8e68a13865423dfc1adb3faafec92d00
BLAKE2b-256 cf1a2e2669ed35684ba580ab62f7e7995b4ae09304a3a4a2a9f3f95dc08caeb8

See more details on using hashes here.

Provenance

File details

Details for the file pubtools_pyxis-1.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pubtools_pyxis-1.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for pubtools_pyxis-1.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3cd381806cc254edec2446b93b19c9da1ebf1f170550745d5e16503be952bfd5
MD5 de5ed83cfba8131c4926353901dd72a6
BLAKE2b-256 d0d0fafc308e0690d1d042a5b6bfc407d3652dcca5009a1afba844408ba803b4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page