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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

container_source_policy-0.5.1-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.5.1-py3-none-manylinux_2_17_aarch64.whl (4.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.5.1-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.5.1-py3-none-win_arm64.whl.

File metadata

  • Download URL: container_source_policy-0.5.1-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.30 {"installer":{"name":"uv","version":"0.9.30","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.5.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 7bd941427636e8b42773cc2d61653913348bb56a574b56310afdade7e744c462
MD5 e288663f0c8c04854dfbef994486fce3
BLAKE2b-256 e4d24bbaffe39a079eedeafd7b46d0ab3e69d08e8b782b494a3fc2e70adb9b00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.1-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.30 {"installer":{"name":"uv","version":"0.9.30","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.5.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2048c93f1fd4129a27bfa4d0440299e223a38bb14098dff5cfc0a884dd139482
MD5 58f2ff05c9a61844e3f4d6383be1e7fe
BLAKE2b-256 de202e48cdb03f7e50b27606f7c8b4398b880728f8c8785fd29c18e858a683de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.1-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.9.30 {"installer":{"name":"uv","version":"0.9.30","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.5.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5ce70422da4d4abbbc5dcd32c0ba827b1f0840e905c9725a79cd0a87bdc356f2
MD5 330c08e89c77af33e91eab5160ad0977
BLAKE2b-256 3c2b36e177a9970636d4fee5534d6e1bb4f0b9a256de81cff78a9ace36eb625d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.1-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.30 {"installer":{"name":"uv","version":"0.9.30","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.5.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8e75a924801a22791e023864de7949a1d6887fa4d953dfc40566051d8de1f85f
MD5 c3f416dd3ac6b07809dfec7b8bd6371e
BLAKE2b-256 39470f030e513e886f9f5187dd6dce30d06643d770098e11ce1f003656b839f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.1-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.30 {"installer":{"name":"uv","version":"0.9.30","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.5.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee3381c52135130d2d7bd7bb9d9be7a3543c65ed98713dbfb1ef2a3f57b86deb
MD5 16c1316130848d873606f1a9d92d36c7
BLAKE2b-256 f431a432a26ffda796fe5fc718a9711d4bc159f8cbe15c19eab23360ab68423b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.1-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.30 {"installer":{"name":"uv","version":"0.9.30","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.5.1-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 a4c9f2faba327c783081f7760cf22b43ac73558ef266bd1ab13438de426f0da9
MD5 7b6e16d9b9ae99fff3e8f64f0cecb68b
BLAKE2b-256 aeb88a74c3c0d80809db531b154c327aaa43a694783406efb8b8a9b9dad2a8b4

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