Skip to main content

Generate Buildx container source policy file for a given Dockerfile

Project description

container-source-policy

Generate a Docker BuildKit source policy file by parsing Dockerfiles and pinning FROM images to immutable digests.

This PyPI package ships a small Python launcher plus a prebuilt container-source-policy binary for your platform.

Install

Recommended (isolated):

pipx install container-source-policy

Or into the current environment:

python -m pip install container-source-policy

Usage

container-source-policy pin --stdout Dockerfile > source-policy.json
EXPERIMENTAL_BUILDKIT_SOURCE_POLICY=source-policy.json docker buildx build -t my-image:dev .

More info

See the upstream repository for full documentation: https://github.com/tinovyatkin/container-source-policy

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

container_source_policy-0.3.0-py3-none-win_arm64.whl (3.7 MB view details)

Uploaded Python 3Windows ARM64

container_source_policy-0.3.0-py3-none-win_amd64.whl (4.2 MB view details)

Uploaded Python 3Windows x86-64

container_source_policy-0.3.0-py3-none-manylinux_2_17_x86_64.whl (4.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

container_source_policy-0.3.0-py3-none-manylinux_2_17_aarch64.whl (3.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

container_source_policy-0.3.0-py3-none-macosx_11_0_arm64.whl (3.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.3.0-py3-none-macosx_10_15_x86_64.whl (4.1 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file container_source_policy-0.3.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: container_source_policy-0.3.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for container_source_policy-0.3.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 04e710507205a6c543a8d966cbf94a9f3586538cab44c658095c996fb685bf0a
MD5 f4055902a90b2e57897d88bada2a39cb
BLAKE2b-256 67f9995b1f93b41d19350714e8539c1651fab1ab5d1a088cec8e23a4357cfcd7

See more details on using hashes here.

File details

Details for the file container_source_policy-0.3.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: container_source_policy-0.3.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for container_source_policy-0.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 805a729c88dfc7056bba103e4af0d19a69322a05b525377b7717b65f71c41c9c
MD5 9588a65191195ec13dd41198f7d83600
BLAKE2b-256 3e225175b8062b0ce2b46a16db26264594303e87ff16ac81843cd07828c6d6d2

See more details on using hashes here.

File details

Details for the file container_source_policy-0.3.0-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: container_source_policy-0.3.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for container_source_policy-0.3.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 9fb69c30121370e98a9372e1739cd6d90de3b4048f158c5a23f557e965dab33a
MD5 64a7fb87715fb5cb0cf700ea4bfc55a0
BLAKE2b-256 57e465e6cc56df5f162455167a37bddf80c38a77da12b486f5f10efc9f21a0cb

See more details on using hashes here.

File details

Details for the file container_source_policy-0.3.0-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: container_source_policy-0.3.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for container_source_policy-0.3.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3ce2a5456a24e5e5b8995a7ac4a569dbb794fd59d5a5565e6ddf47bc2dce6850
MD5 e5bfa3bfaa7399f2743868ed6c273d44
BLAKE2b-256 10e7361d4093cfb9fdf4f52c1d5f3e5a0c2836375adc6fb4f25bb4dd2b0ce19a

See more details on using hashes here.

File details

Details for the file container_source_policy-0.3.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: container_source_policy-0.3.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for container_source_policy-0.3.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7c4f7f140050da876cc54ef54e275aad9985ee90deb56191f026e4c473635ac
MD5 783ad7b02ef2a5503dc8c02294b6e883
BLAKE2b-256 f106c49b61cdf67ee70395d2aa57d5512e52008c4a45b5f366af4f3b5dc3e47f

See more details on using hashes here.

File details

Details for the file container_source_policy-0.3.0-py3-none-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: container_source_policy-0.3.0-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for container_source_policy-0.3.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 03e3a7a64e525ab0290a45c966f3c5454a75a43c3cfd269528465d94bef24dc2
MD5 19b58f1137a6b96448a9c24097f8b94f
BLAKE2b-256 e60cd3345d8f83f3c0bc41d2dc59918e16cb28330aa31286aa081c04687a5cf5

See more details on using hashes here.

Supported by

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