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/wharflab/container-source-policy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file container_source_policy-0.5.2-py3-none-win_arm64.whl.
File metadata
- Download URL: container_source_policy-0.5.2-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.30 {"installer":{"name":"uv","version":"0.9.30","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84a939b4f9c9fb339590c71effd73e75057f9c2c84abe2296e4ff9306dfb3165
|
|
| MD5 |
743ff89c6df8b197237b546e52216a0b
|
|
| BLAKE2b-256 |
25151be82f8bb47c0a340eb4c15a7dde9f18a45cf04a028ad77073bc2304cae2
|
File details
Details for the file container_source_policy-0.5.2-py3-none-win_amd64.whl.
File metadata
- Download URL: container_source_policy-0.5.2-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.30 {"installer":{"name":"uv","version":"0.9.30","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f458e97c3ef0a533500a630a42eefb2109014f6d22bcdb8f755aa79f783a8f5
|
|
| MD5 |
fd74077240f3e59a84efe4b7ef460fab
|
|
| BLAKE2b-256 |
ad8a58318f035bf07eb02d1256011a76582ffe56413fe657d228a306a3d63f72
|
File details
Details for the file container_source_policy-0.5.2-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: container_source_policy-0.5.2-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.30 {"installer":{"name":"uv","version":"0.9.30","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b960cde555621c95c8868ec6ac14bfced7caf467776cdb91f0091b595b1702
|
|
| MD5 |
f3bb88a383e97d6b524d88ab536d86bd
|
|
| BLAKE2b-256 |
97dba551baab714b538e86fe8c1ddd4fc3aa98656288fb2632eeedb48585bbdc
|
File details
Details for the file container_source_policy-0.5.2-py3-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: container_source_policy-0.5.2-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.30 {"installer":{"name":"uv","version":"0.9.30","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4880fe96ee80f236ffc242153169743454c6357079b8214d02a7ab1ef4c69c7
|
|
| MD5 |
de65dd1262f5525411272bd3c87c53e3
|
|
| BLAKE2b-256 |
3ae6bc815f864d11aa555b9d9dc91a260950e264cdd4cee9934d3964e5579ab1
|
File details
Details for the file container_source_policy-0.5.2-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: container_source_policy-0.5.2-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.30 {"installer":{"name":"uv","version":"0.9.30","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3a5dc1eb73b42dbe791dcbe34c80a536e62c47fa19313ec87e288b3154e80d2
|
|
| MD5 |
316070492caa24e79960541a0b77ec13
|
|
| BLAKE2b-256 |
55eb983ab002904135160c02d3dd67df2a5cf7356b8657ea63293ff583666021
|
File details
Details for the file container_source_policy-0.5.2-py3-none-macosx_10_15_x86_64.whl.
File metadata
- Download URL: container_source_policy-0.5.2-py3-none-macosx_10_15_x86_64.whl
- Upload date:
- Size: 5.5 MB
- Tags: Python 3, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
466a8afb6ff0e59f3a9ba6ae3f3eca39d2c40185d5bff0b174dd00501cf5cb6b
|
|
| MD5 |
6920993ff8fa7501e0216850f20fea8b
|
|
| BLAKE2b-256 |
ae1139071efbe73cd4661d2b4cf316b9f74268c8309a4b937a67622c77962dec
|