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

Uploaded Python 3Windows ARM64

container_source_policy-0.1.3-py3-none-win_amd64.whl (3.9 MB view details)

Uploaded Python 3Windows x86-64

container_source_policy-0.1.3-py3-none-manylinux_2_17_x86_64.whl (3.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

container_source_policy-0.1.3-py3-none-manylinux_2_17_aarch64.whl (3.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

container_source_policy-0.1.3-py3-none-macosx_11_0_arm64.whl (3.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.1.3-py3-none-macosx_10_15_x86_64.whl (3.8 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: container_source_policy-0.1.3-py3-none-win_arm64.whl
  • Upload date:
  • Size: 3.5 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.1.3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 25cc211e8cfe49cb08877fb768c43b082b0cb37e64a5171fb2ccc4cd5226b05d
MD5 628b685f8f8453ab26cb02eb58cdeec3
BLAKE2b-256 baa41d0e9a473929fff78f8ee643d0cf1845d9982b6da32e3f70241a611776ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 3.9 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.1.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2bafc11d6cd101bc1f9905a855f1da82e61b99358c11a9857f0109c41921e99c
MD5 5aa811653fe6f0a83c18a037c8b451a0
BLAKE2b-256 17031cd14a03c40cd3e09955a6bfe7178c61801dae90875f66834b5d0134ae68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.3-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 3.8 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.1.3-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 19e76d123ec48a927ace352438fb9f3c51a7d236a3f2b8a978a652f9074f3555
MD5 81b1ca0182f49dfd305708a798e1fcd5
BLAKE2b-256 2f6f51f3fa1f63fcafd7066d0726165574bbfd11708a1184979d8b9c8c187ccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.3-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 3.4 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.1.3-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 622cdfb37dfaabaea2881b1542cec04661c9a8098f51fd1fe83bff455b72b6d9
MD5 7b7ee060ffca8416e73bd5acc65dc09f
BLAKE2b-256 657f1323a0a70c1a65734effd0f6557818d095f7f87b2eb85992ff4e26e381c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.3-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.5 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.1.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14c3548150fc0ded733f0d8d32f59c0ac3a6bfea3f5e2cb5dcec98a666c4535f
MD5 282d4590958eaa85f1d03d02ff783580
BLAKE2b-256 69e922592d301824e01a4306a74c98ed1dcd01c6fe6fece37bf79ce26626e84b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.1.3-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 3.8 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.1.3-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f70bd047adee77b98b04321776f7292f701dfed1d453b5520f239e5d4a6ae55b
MD5 73e5a723fa0e7d05baeadb8261dfc0fd
BLAKE2b-256 52b27cad6db2e4ebaf55a0a7e96d71d2089c8ce39995d6659b5ef1d5ce62af7a

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