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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

container_source_policy-0.6.0-py3-none-manylinux_2_17_x86_64.whl (5.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.6.0-py3-none-macosx_10_15_x86_64.whl (5.5 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: container_source_policy-0.6.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.10.0 {"installer":{"name":"uv","version":"0.10.0","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.6.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 6133b0e06cf6d9d1684d47e0108073323c3d71634e47616a9895fd65e0492ced
MD5 2967991ac195c27c57347e06e3321c92
BLAKE2b-256 776a97ed692dc240d073b3810a90d9b003143d52c14f1cb20fda6085c96fb52a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.6.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.10.0 {"installer":{"name":"uv","version":"0.10.0","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.6.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 20dbf9abc1dbdfcf2effd266d87b57003ce699ca23a89364f058bff62a8df11f
MD5 f426549c416f7f91da0954e5cb8d9ece
BLAKE2b-256 6e6d8e2d885ad9c576c97916477b26d58f8a51e07fdee4576e2b584d3149e392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.6.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.6.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6ed14c1c2ac26f85fc5207cbf9a1b4be3d4daa75f41408314219e2772b9e371d
MD5 82b64468471a3ba0ab7858217b46ce0d
BLAKE2b-256 9500692e64e6d74d5477c9745125a45eec24477b9d327727b307deb13b9a608f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.6.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.10.0 {"installer":{"name":"uv","version":"0.10.0","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.6.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 988b26b491322a48c292bc8fcb395f4f869f999ed543b08dae491428a74efa8e
MD5 9842df0a8f059f6d4d06021624af9d6f
BLAKE2b-256 8a37258bec199c477930f1a2a32cd9e6c176616839521bd05c27fa30d7d41dc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.6.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.10.0 {"installer":{"name":"uv","version":"0.10.0","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.6.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fdec0029ea1a2c94af6115ef63effc78baa419aef4b2f0a873e76be23ff91bf
MD5 ad26890c175d9b1d7873e24fe0207bfe
BLAKE2b-256 232cd577ca13514e8fbc2278c87b6cba62384f9e22f5595e877d3e3d0f33143b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.6.0-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: Python 3, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.6.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 35fedf81f372eebe3d0dc3dc6218f3df99927d8d0c70c884ee245342be70a1eb
MD5 a695e7876c900b8631061af7e6c8a8d7
BLAKE2b-256 799fe12f8a8e12d548e5c7dec581050cbd06f71f47fcbf3cc799e95684c7f3a8

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