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

Uploaded Python 3Windows ARM64

container_source_policy-0.3.1-py3-none-win_amd64.whl (4.3 MB view details)

Uploaded Python 3Windows x86-64

container_source_policy-0.3.1-py3-none-manylinux_2_17_x86_64.whl (4.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

container_source_policy-0.3.1-py3-none-manylinux_2_17_aarch64.whl (3.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

container_source_policy-0.3.1-py3-none-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

container_source_policy-0.3.1-py3-none-macosx_10_15_x86_64.whl (4.2 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: container_source_policy-0.3.1-py3-none-win_arm64.whl
  • Upload date:
  • Size: 3.8 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.3.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 63d34460b60d2684fe5b17a6d405ba2778487badbd8ceb2fb3d4940b131c7ca1
MD5 8784a83573041719bd8f107a62087cc8
BLAKE2b-256 de938246a60e602a446c09dd15b582dbbe598c8b17bde60ade29f79cd0d93670

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.3.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.3 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.3.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a66aeb3041a02b6820eb173b680ae45d342ffa1b61b5a921fdbdcf76a69a5cae
MD5 27602f0c2f22d55816009451ce700061
BLAKE2b-256 436262449ffdb42274fd15c7b5d603bdb351e6938afe650edcf5fc560f557205

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.3.1-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 4.1 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.3.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 fdf7e51bcacf5b8ef25f498c8aa4d0a6326643b07e666acb10ffadf65386b830
MD5 641e5485bb2fc203bd8d00cc3a6eb74d
BLAKE2b-256 1e5022bca70e50c1145ae24cf4f0db0cef42b08435316f8cb05d83bc4fe42915

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.3.1-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 3.7 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.3.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 104d50bc5c50a148acaae2a4c155d923e58c1a95c45e08104be3ecc87c4caa26
MD5 bd2ae19755db53735f7456f3b797d6e3
BLAKE2b-256 29a59855fe496c5be6daa64da0d4935ef1e806a78d414855d9525fd5e3c2614f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.3.1-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.9 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.3.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8659e1a1b9362eb8c878b28d0831d43e83ddf392b596c43d476790cf795b7aee
MD5 1cbac16d3032cfba868ba81983419ad5
BLAKE2b-256 6bcc56d7e900de4175df6ae682f70b529766ccdfb129ecb3e850a2b80d0ca7ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: container_source_policy-0.3.1-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 4.2 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.3.1-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 17865612a83c5588eb2fdcfae8b8a5adab979604b7e4abf77db48c5c3fdd5c19
MD5 58afd9e73ba06eea03cc4d9fc45fdd04
BLAKE2b-256 311a48be0f0f2bafb6761f465ee0ee2dc828809fad17c33e92b4c765bb8d3b19

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