Skip to main content

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

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


Download files

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

Source Distribution

containmint-0.2.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

containmint-0.2.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file containmint-0.2.0.tar.gz.

File metadata

  • Download URL: containmint-0.2.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for containmint-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c9b94345f957d75868b66b5cd4e9a04e4230623ed018da963bf4e8940590a2d4
MD5 eafe038d023bd6c74716afb5a53d3fd6
BLAKE2b-256 214b9d45f31838d2c912690344232f11e57d36136f259c23a595644dacef5b95

See more details on using hashes here.

Provenance

File details

Details for the file containmint-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: containmint-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for containmint-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f20433b0cd4858a54310a923453142987cc649b183d25ae94722c0fde64228aa
MD5 ad09a119062fad079421704b2cdac04d
BLAKE2b-256 64c1a9501b5acb927e92d2b3e2765aeb9aaa69e0bf1fa5eeee7698bfea3a11e5

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