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.2-py3-none-win_arm64.whl (3.7 kB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

container_source_policy-0.1.2-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.2-py3-none-manylinux_2_17_aarch64.whl (3.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.1.2-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.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: container_source_policy-0.1.2-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.2-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 ae8e874914c3e633d2f1e18cc30d4be942254a9aac93910baba8d91bb109d46f
MD5 7c24105cc41da28d66451776d0b3029e
BLAKE2b-256 3281e234abce76b74edef9d270deccd9185cbd9db90104fb74589bb9a723d387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.2-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.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7d04ed4e2e4b0e1f8bb2ceeea775832dc839b4db1fef8dc994a23c495f93a2a4
MD5 f92dcedd9ec1b73c67f2623fd9c4d418
BLAKE2b-256 c60703306515db362bf3eb9e3df1c02977f24aa44a92181610bd0e7e4e8768f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.2-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.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b2716a26794ba237b1b6d5894548b836cf8207d54fac25a0005dee9dc91e4a66
MD5 414010de1c35d45a07f2ccae2754e8d8
BLAKE2b-256 3e1dbf54874d8a6d525dd29f3fc9d229a790376641dda2da5c4739677d594c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.2-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.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 7cd90316dbf168db4be6f9fa25ce5a8cccd8d62b88b767a4d01cd94c0975ae44
MD5 dd07a5386a13c0be1475c56166d031c2
BLAKE2b-256 c5b9f9689a2c749c396af7b3001415d61acbc2bd3ad54e90d5177416143926f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.2-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.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1607fc881d3bce66b71b5a8d4c03a7a7386220becf0bf3c78d403fa37881f90
MD5 2f85f23dfd81863594834020eb7b3eca
BLAKE2b-256 c0db055534bf74d381e9e9c5da18800656500ae7617a1fa968bf94f6021b7fee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.2-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.2-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 13a25b5ea65598d4c480a247a8dc7d57a0a83b93612bbd448a1dfac8f431a2cb
MD5 60ecf16902a1cf262c5432ccfeca9ecf
BLAKE2b-256 ef1a256dc3f06ddcb896cb34dfd73e6196d30c6af6a614968a31d8694adc8d4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4dd55ec57a21f7965612b08898714bbbdc8b00834144d8262236b3b42f8ec728
MD5 80805271a5cf06286ede1a7aa508e66c
BLAKE2b-256 74c7280dfac1013d9df31468c6678e8e5873188256086125983b107430cefb77

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