Skip to main content

Pubtools-iib

Project description

Set of cli scripts used for operating with IIB service.

Requirements

  • Python 3.7+ or Python 2.7

Features

  • pubtools-iib-add-bundles - script used for running add bundle on IIB

  • pubtools-iib-remove-operator - script used for running remove operator on IIB

Setup

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

Usage

Push the created index image to Pulp

$ export PULP_PASSWORD="pulppassword"
$ pubtools-iib-add-bundles --pulp-url https://pulphost.example.com/\
  --pulp-user pulp-user\
  --pulp-repository index-image-repository\
  --iib-server iibhostname.example.com\
  --binary-image container-registry.example.com/binary/image:latest
  --index-image container-registry.example.com/index/image:latest
  --bundle container-registry.example.com/bundle/image:123
  --arch x86_64
  --skip-quay
  --deprecation-list container-registry.example.com/index/bundle-image:latest,container-registry.example.com/index/bundle-image:2

$ export PULP_PASSWORD="pulppassword"
$ pubtools-iib-remove-operators --pulp-url https://pulphost.example.com/\
  --pulp-user pulp-user\
  --pulp-repository index-image-repository\
  --iib-server iibhostname.example.com\
  --binary-image container-registry.example.com/binary/image:latest
  --index-image container-registry.example.com/index/image:latest
  --operator bundle/image:123
  --arch x86_64
  --skip-quay

Push the created index image to Quay in a remote server and send a UMB message

$ export QUAY_PASSWORD=quay_password
$ export SSH_PASSWORD=ssh_password
$ pubtools-iib-add-bundles \
  --iib-server iibhostname.example.com \
  --binary-image container-registry.example.com/binary/image:latest \
  --index-image container-registry.example.com/index/image:latest \
  --bundle container-registry.example.com/bundle/image:123 \
  --arch x86_64 \
  --skip-pulp \
  --quay-dest-repo quay.io/namespace/repo \
  --quay-user namespace+robot_account \
  --quay-remote-exec \
  --quay-ssh-remote-host 127.0.0.1 \
  --quay-ssh-remote-host-port 2222 \
  --quay-ssh-username ssh_user \
  --quay-send-umb-msg \
  --quay-umb-url amqps://umb-url1:5671 \
  --quay-umb-url amqps://umb-url2:5671 \
  --quay-umb-cert /path/to/file.crt \
  --quay-umb-client-key /path/to/file.key \
  --quay-umb-ca-cert /path/to/cacert.crt

ChangeLog

Unreleased

0.18.1 (2021-03-31)

  • Change iiblib version to 3.0.0.

0.18.0 (2021-03-29)

  • Add deprecation_list and index_image_resolved attribute

  • Add option of pushing to Quay

  • Add log links to build details

  • Remove duplicated FakeTaskManager

0.17.0 (2020-10-19)

  • Change IIBlib imports

0.16.0 (2020-09-29)

  • Made –bundle an optional argument

  • Made –binary-image an optional argument

0.15.0 (2020-06-25)

  • Replaced content-delivery-release-bot with token

  • Added support for providing “overwrite-from-index-token” when calling IIB

0.14.0 (2020-05-27)

  • Fixed multiple argument passing to use ‘append’ mode

0.13.0 (2020-04-29)

  • Added –skip-pulp attribute support

0.12.0 (2020-03-30)

  • added –overwrite-index-image param

0.11.0 (2020-03-09)

  • Fixed push items handling

0.10.0 (2020-03-04)

  • fixed wrong feed attribute

  • sync only needed tags

0.9.0 (2020-03-04)

  • succesful build dump to output

0.8.0 (2020-03-04)

  • fixed repo sync attributes

0.7.0 (2020-03-04)

  • added iib-insecure attribute

  • dump error build details on output

  • index-image attribute optional

0.6.0 (2020-03-04)

  • iiblib 0.7.0 compat changes

0.5.0 (2020-03-03)

  • fixed invalid argument for IIBClient init

0.4.0 (2020-02-27)

  • added legacy registry support

0.3.0 (2020-02-27)

  • kerberos support

0.2.0 (2020-02-27)

Fixed

  • iiblib 0.3.0 compatiblity fixes

Added

  • ssl_verification option for IIBClient

0.1.0 (2020-02-25)

  • 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-iib-0.18.1.tar.gz (12.6 kB view hashes)

Uploaded Source

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