Pubtools-quay
Project description
Set of scripts used for operating with Quay service
Requirements
Python 2.6+
Python 3.5+
Skopeo is required for the tagging operation
Features
pubtools-quay-tag-image - Copy a quay image from source to destination(s)
pubtools-quay-merge-manifest-list - Merge manifest lists of new and old images. The architectures of new (source) image overwrite destination’s archs. Archs missing from the source image will still remain in the merged manifest list. Destination image’s manifest list is overwritten by the merged manifest list.
Setup
$ pip install -r requirements.txt $ pip install . or $ python setup.py install
Usage
Locally copy an image from source to destination. Quay password is injected from the environment variable.
$ export QUAY_PASSWORD=token $ pubtools-quay-tag-image \ --source-ref quay.io/source/image:34 \ --dest-ref quay.io/target/image:34 \ --quay-user quay+username \
Connect to a remote host via ssh (using password) and perform the copying to multiple destinations.
$ export QUAY_PASSWORD=token $ export SSH_PASSWORD=123456 $ pubtools-quay-tag-image \ --source-ref quay.io/source/image:34 \ --dest-ref quay.io/target/image:34 \ --dest-ref quay.io/target/image2:34 \ --quay-user quay+username \ --remote-exec \ --ssh-remote-host 127.0.0.1 \ --ssh-remote-host-port 2222 \ --ssh-username user
Connect to a remote host via ssh (using private key), perform the copying, and send a UMB message.
$ export QUAY_PASSWORD=token $ export SSH_PASSWORD=123456 $ pubtools-quay-tag-image \ --source-ref quay.io/source/image:34 \ --dest-ref quay.io/target/image:34 \ --quay-user quay+username \ --remote-exec \ --ssh-remote-host 127.0.0.1 \ --ssh-remote-host-port 2222 \ --ssh-username user \ --ssh-key-filename /path/to/file.key \ --send-umb-msg \ --umb-url amqps://url:5671 \ --umb-url amqps://url2:5671 \ --umb-cert /path/to/file.crt \ --umb-topic VirtualTopic.eng.pub.some_topic
Merge manifest lists of source-ref and dest-ref and overwrite dest-ref with the result.
$ export QUAY_PASSWORD=token $ pubtools-quay-merge-manifest-list \ --source-ref quay.io/src/image:1 \ --dest-ref quay.io/dest/image:1 \ --quay-user quay+username
ChangeLog
0.3.0 (2021-2-11)
Fix the versioning constraint of pyrsistent dependency
0.2.0 (2021-2-9)
Fix the definition of requirements.txt, allowing installation on Python 2.6
0.1.0 (2021-2-9)
Initial release.
Added tag image entrypoint
Added merge manifest list entrypoint
Added push docker code skeleton
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pubtools-quay-0.3.0.tar.gz
.
File metadata
- Download URL: pubtools-quay-0.3.0.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b5f67c8a49c9a138bcf67cc0c27762f2b3fc86b357bb0ce28f1900ea61877a9 |
|
MD5 | 5290650a2485a3a1552df91e5dfdfb6c |
|
BLAKE2b-256 | 6ac9d1df852bd2085bfe80891b6bc342ecff449fa33074f1ee2d0847d5f4be1c |
File details
Details for the file pubtools_quay-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pubtools_quay-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfbe3aba391e179be413cd75e1d4e9f25753ce841f9ab871bc9d87a4bc544114 |
|
MD5 | cc5cfc7665fe7e06400dee4872ee72e2 |
|
BLAKE2b-256 | ddba0abee56b5161d6c698a6f619a0a73f496377f72ee3911b11dc3ee61789d7 |