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.4.0-py3-none-win_arm64.whl (4.9 MB view details)

Uploaded Python 3Windows ARM64

container_source_policy-0.4.0-py3-none-win_amd64.whl (5.5 MB view details)

Uploaded Python 3Windows x86-64

container_source_policy-0.4.0-py3-none-manylinux_2_17_x86_64.whl (5.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

container_source_policy-0.4.0-py3-none-manylinux_2_17_aarch64.whl (4.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

container_source_policy-0.4.0-py3-none-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.4.0-py3-none-macosx_10_15_x86_64.whl (5.4 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: container_source_policy-0.4.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 4.9 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.4.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 0a53770618328f54fc63723b9e8f18e630e8aa27755e25a8a047d5ad2a0f0e18
MD5 d118c796c8dd1537124d21b579328d3d
BLAKE2b-256 067ede7b915d13bf6a2a667b16c6542d872fd1de2a2f1496950f3f9836f23a8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.4.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 5.5 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.4.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6dc31be14a37d27465fbb995f4346c964c1e41324ab829229a69ac4f682fbec9
MD5 8628fe6a9f74b1ef3f07bac461857fc2
BLAKE2b-256 5e8f65a540402ec83cc738759d82663364e521b1c9ba05ecc8b78825bc81be3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.4.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 5.3 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.4.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3491b53b98f1c9a7534b0361d49b4fff99fcf9993c7de2b2b465bb0ba85e2da5
MD5 482edf2a64d3026ec95c16f94da718aa
BLAKE2b-256 4ae9c8aab6d311407a68ba158f4fadb01ec4fb2bc223b4ec7f9b68ff2d4e428f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.4.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 4.8 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.4.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e3222ace7f75f1d1502b4ea22186d2dd605344ececbbc24b8aa13a2e0fcaddd1
MD5 d25f0fbf6518d7a17da575bd6ea33618
BLAKE2b-256 c89919943d533752ff309dd6d67c2d438bd33dbe87e6fd975573c9b2e9dc8555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.4.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.0 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.4.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a4fa018a61cde64655ce679cca454530b2593e4c9b065dfde712e3a0c0de43b
MD5 52e6df1fc9c69d6bbf5b4288e73aadb0
BLAKE2b-256 8d6dea89f8dd7f8c190c0f2c6604b503c0e54e5e99f0afb8318055847139bd1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.4.0-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 5.4 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.4.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c9905b97c5a04b8c210dc3be0d84f77583e71a665c8fe821005bf421ab5000ac
MD5 98793dc74278657c0ff8eec3c1c5f435
BLAKE2b-256 cf75cb88159842041d73ad354b58a5e2d23dcac8d010d03638eeeefc67f029f6

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