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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.5.0-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.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: container_source_policy-0.5.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.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.5.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 5c54a98387fde1dffe79a35db70271fdb54c9b8baf98b31ac9b70e85ebb1f0fb
MD5 95b86b9dec5d93b699dd65c2c201f44f
BLAKE2b-256 02f9257071a4f5a52be5f6b94be4005be216bae78802186f5396c8758b6df447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.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.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.5.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e4288de9e90c990fa8ff06178e07ed372554c42a0132b4e2f9d2c74a543209f6
MD5 3073a1b01d58e5172a7e67af6401c38a
BLAKE2b-256 487e405f2295d21a0b1a4ef78704f3e5f6ff2c317269321f156b23f9289af43c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.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.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.5.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e27ecf24d9d4de71db6bab1dadd6a85bad8660c09049bdfbc28d40286ae3ee13
MD5 2ed72d3dfe3dc0657c37be042db303a0
BLAKE2b-256 e7ba91cf2a050aa006799a9cc2640a166b5f808f33ffb77e430806b4d1c8ef69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.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.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.5.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 11eae2976f272d00cc934ac434c3a1fa9e02120f66d9b34fb4a72a1653076ca0
MD5 34edeec8bad5eee4eaec12b1aa7e16f5
BLAKE2b-256 7eb8cb9225c426524ed52de4e67a3cf8715f9551394c2925a7462b3a7de2b0d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.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.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.5.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd46c12570ccb01247df5adcb348c5a6744778011054a34a3eda54666d91cd37
MD5 782c10da69cac04d923f74d2622f51cd
BLAKE2b-256 59942fa869462627034beddd4715574bdfb7028754a7d9de2832c55c0e1df092

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.5.0-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.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.5.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d313d4f6b7663e03cddc88477628c2914cc0e657a478d8174aaebb4b1b596806
MD5 b3f5b4f17af2d6464cd8c13a9cba41b9
BLAKE2b-256 511838a49dbbb4a86a9d544b2f067d461926a01e288901f6424d3574d406bfec

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