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 (docker buildx build --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
docker buildx build --source-policy-file source-policy.json -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.1.0-py3-none-win_arm64.whl (3.7 kB view details)

Uploaded Python 3Windows ARM64

container_source_policy-0.1.0-py3-none-win_amd64.whl (3.7 kB view details)

Uploaded Python 3Windows x86-64

container_source_policy-0.1.0-py3-none-manylinux_2_17_x86_64.whl (3.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

container_source_policy-0.1.0-py3-none-manylinux_2_17_aarch64.whl (3.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

container_source_policy-0.1.0-py3-none-macosx_11_0_arm64.whl (3.7 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.1.0-py3-none-macosx_10_15_x86_64.whl (3.7 kB view details)

Uploaded Python 3macOS 10.15+ x86-64

container_source_policy-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: container_source_policy-0.1.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 3.7 kB
  • 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.1.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 4f4cdba7d7190635f25941706e0d7312acc0342e269f39d41531579695c62dca
MD5 eac0769be02ec983254dbb86a9eb56e8
BLAKE2b-256 741858a40f439dfb08a02b3d6e385779fb476d9367eb73f9710727a04b69327b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • 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.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2721f76d016c15b38198026f74d4f8cc3946401ac575f7c42b8079392a0f0a33
MD5 364585de3fca19453f62fa92577a536f
BLAKE2b-256 c529c28e3db342918f8c371e28313bf2b23116f174a7421a81fc79ffd8c2a96f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 3.7 kB
  • 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.1.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2a6086e59aef5a64e0435e8159147f9b96510f1e9de48ea17182106ca02058c5
MD5 18b73361d83bf647e2cc650a3d91193e
BLAKE2b-256 6fc133a5ce4e5d2ab77ebe11ed0a0f4bee180ba04dd1111c9498ae15fb04f00b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 3.7 kB
  • 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.1.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 063f02adb6ecefbdc8af6874ca284b71f514d02d394339a2e1b058e50ccd8688
MD5 782006da820de83acd01fdeb99f829a7
BLAKE2b-256 cc2fe55e4d7849f208694f2d4d4c73bb6bfee97ab210212d507cb65314fe0457

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.7 kB
  • 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.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c0795575d19f63e353adacb1f3714a1c38101a73c46d98f264afe1a1b6e3c3e
MD5 473834b56ee6403f75a39a50e842a7f0
BLAKE2b-256 7efd1295ae69e582a9ac9e6f8aa39fb6cbd3e6b751501b2e95f1b9f6e4ecc4f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.0-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 3.7 kB
  • 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.1.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d2fbcfcfbaca50138326d2e08b290d37c7a3766bd4f5a1a2033e37448aafb0c9
MD5 c509b5d99a50e25ae592194183feecda
BLAKE2b-256 33a15255bed8dbb2fe62d4de6e4ed648c254a0774cca3cf2f5d5d6c0dcc730ee

See more details on using hashes here.

File details

Details for the file container_source_policy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: container_source_policy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 055f535c8da0785422c4b45d17a5b6f7168dd642739dcee50313d1060f21dde1
MD5 f50fed97a569d37411eabfc1cbbadfa5
BLAKE2b-256 4b90d0e08ba943fa34744743d430f13b87d933f999db3b0704e6a149ec899598

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