Create multi-arch containers using native cloud builds.
Project description
containmint
Create multi-arch containers using native cloud builds.
Q&A
Why another tool?
Most existing tools and services rely on QEMU to perform container builds on other architectures. These builds are much slower, often running 15x longer than native builds.
Additionally, using customizable virtual machines allows for builds which dedicated build services may not support.
How does it work?
Ephemeral virtual machines are provisioned through the Ansible Core CI service [1]. These virtual machines are used to perform native container builds. The resulting images are pushed to a container registry.
After the container images are pushed, a manifest list referencing the container images is created. The manifest list is then pushed to a container registry.
Footnotes
Usage Examples
Configure container registry credentials
The credentials [2] for the container registry [3] are set using environment variables:
export CONTAINMINT_USERNAME = 'my-username'
export CONTAINMINT_PASSWORD = 'my-password'
Footnotes
Use the --no-login option to allow operation without credentials. This option is only usable when not pushing to a container registry.
Only one container registry can be used with each invocation. Multiple repositories from the same registry can be used.
Build and push a multi-arch container
The following steps can be performed in parallel:
containmint build --push --tag quay.io/my_org/scratch_repo:my_tag-x86_64 --arch x86_64
containmint build --push --tag quay.io/my_org/scratch_repo:my_tag-aarch64 --arch aarch64
Once the steps above have been completed:
containmint merge --push \
--tag quay.io/my_org/final_repo:my_tag \
quay.io/my_org/scratch_repo:my_tag-x86_64 \
quay.io/my_org/scratch_repo:my_tag-aarch64
This results in three tags:
quay.io/my_org/final_repo:my_tag – This manifest list contains x86_64 and aarch64 images.
quay.io/my_org/scratch_repo:my_tag-x86_64 – This image is x86_64 only.
quay.io/my_org/scratch_repo:my_tag-aarch64 – This image is aarch64 only.
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 containmint-0.4.0.tar.gz
.
File metadata
- Download URL: containmint-0.4.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 640dc7a889e7761cafecb12ba88724187c5c75378e15d5f757d443801f8126e5 |
|
MD5 | 0cac9cc554367b87d4b8ecd15ca77345 |
|
BLAKE2b-256 | 9312dceec7e25c1e832194b362faef55ba6b540ef47181b80e78a46872c44599 |
File details
Details for the file containmint-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: containmint-0.4.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa149ce238d4a8815a1abafbaff6a2fbfe9e1b2e482a6f62930d295d5862db3f |
|
MD5 | a3f6e11fd9e3aa8b11f4c03723e4b011 |
|
BLAKE2b-256 | db91d257c554baa571cb40c3b017dc629b6d7f11c2a1c36b170f2d848b95995a |