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

Uploaded Python 3Windows ARM64

container_source_policy-0.2.0-py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 3Windows x86-64

container_source_policy-0.2.0-py3-none-manylinux_2_17_x86_64.whl (4.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

container_source_policy-0.2.0-py3-none-manylinux_2_17_aarch64.whl (3.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

container_source_policy-0.2.0-py3-none-macosx_11_0_arm64.whl (3.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.2.0-py3-none-macosx_10_15_x86_64.whl (4.0 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: container_source_policy-0.2.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 3.7 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.2.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 14b2ee7841bcd8bd99dc6cc1d12380fd708bb4805828b147a1a7b4cad63f5a26
MD5 4a8f7ec5edbe9f3b3ee1f4319fb05a40
BLAKE2b-256 068055fc4c0ac880974b613515aae886cf9896fc6027f91108ab33b68fd3eb2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.2.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.1 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.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 06330275f82de5bcd26673cca35e6d0380e34dba0429c152da8fda0366720ddf
MD5 aa1eb3a47fadcab13c8bf25e4b777cbb
BLAKE2b-256 677bc79df705a4b151c5788fd71e383aa17a23e9f596e4187fce91c481793b74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.2.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 4.0 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.2.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0fbf68e8c8f6e18298d27807278c9bc0ef5c084deae52ed90ce4170e6abf885e
MD5 f26d6e9ace67251d78b4b9cecb48edd3
BLAKE2b-256 e5a58f7ccee2dea2b78d6c74572ee66500949ce609aad6c44c2ae383cc7e7776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.2.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 3.6 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.2.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 154922996545fde860ac78fccacc2e88ed22078655639e6df19c226339beed50
MD5 9fdf25a555a5a6009167fa95e7cb2757
BLAKE2b-256 39db838cfc0b18e18f3b6910bef5473a235afc2db8dde4c833152ec1d9ac7a5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.2.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.7 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.2.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b258a696e024d5c2fd4bb79854d9508dfa5608266f29a18933e22d066177a64b
MD5 fb4687098bf52b6cf114529f0ea3b2fe
BLAKE2b-256 da5bd7712f8e8157d9ae54d2c2f0bef7e4e318956d280805160077b64ac856ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.2.0-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 4.0 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.2.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 cdd6cf34d201b53470a7611ecc52d180ec928d93c67abd25e756f7ab69b6fef1
MD5 c1c09c325a2b0b944d2c2a411313d4e8
BLAKE2b-256 6678e6eeff07e8e1f7902c9a2c22e4812dd769f1f5591d3742d12090f183f191

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