{"id":15929330,"url":"https://github.com/crazy-max/buildkit-buildsources-test","last_synced_at":"2026-03-19T08:06:36.097Z","repository":{"id":148251002,"uuid":"396766530","full_name":"crazy-max/buildkit-buildsources-test","owner":"crazy-max","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-19T11:52:30.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T07:31:59.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazy-max.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"crazy-max","custom":"https://www.paypal.me/crazyws"}},"created_at":"2021-08-16T11:37:46.000Z","updated_at":"2022-01-07T17:52:51.000Z","dependencies_parsed_at":"2024-10-20T19:50:53.599Z","dependency_job_id":null,"html_url":"https://github.com/crazy-max/buildkit-buildsources-test","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"d6f709b96100538397822a65db97e296984a3b3f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crazy-max/buildkit-buildsources-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fbuildkit-buildsources-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fbuildkit-buildsources-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fbuildkit-buildsources-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fbuildkit-buildsources-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazy-max","download_url":"https://codeload.github.com/crazy-max/buildkit-buildsources-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fbuildkit-buildsources-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29924030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T00:03:29.545Z","updated_at":"2026-02-28T03:34:42.917Z","avatar_url":"https://github.com/crazy-max.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/crazy-max","https://www.paypal.me/crazyws"],"categories":[],"sub_categories":[],"readme":"Resources to try it:\n\n* BuildKit image: `crazymax/buildkit:buildsources`\n* Dockerfile frontend image: `crazymax/dockerfile:master`\n* Repo example: [crazy-max/buildkit-buildsources-test](https://github.com/crazy-max/buildkit-buildsources-test)\n\nCreate and boot builder:\n\n```console\n$ docker buildx create \\\n  --name buildsources \\\n  --driver docker-container \\\n  --driver-opt image=crazymax/buildkit:buildsources \\\n  --use\n$ docker buildx inspect --bootstrap\n```\n\nBuild image:\n\n```console\n$ docker buildx bake --metadata-file metadata.json https://github.com/crazy-max/buildkit-buildsources-test.git\n```\n\u003e * `metadata-file` writes the build result to the file\n\u003e * `https://github.com/crazy-max/buildkit-buildsources-test.git` is the remote bake definition (`docker-bake.hcl`)\n\n`ExporterResponse` in build result contains a new key `containerimage.buildinfo` to be able to use it in the `client.SolveResponse`:\n\n```text\n{\n  \"ExporterResponse\": {\n    \"containerimage.buildinfo\": \"eyJzb3VyY2VzIjpbeyJ0eXBlIjoiaW1hZ2UiLCJyZWYiOiJkb2NrZXIuaW8vZG9ja2VyL2J1aWxkeC1iaW46MC42LjFAc2hhMjU2OmE2NTJjZWQ0YTQxNDE5NzdjN2RhYWVkMGEwNzRkY2Q5ODQ0YTc4ZDdkMjYxNTQ2NWIxMmY0MzNhZTZkZDI5ZjAiLCJwaW4iOiJzaGEyNTY6YTY1MmNlZDRhNDE0MTk3N2M3ZGFhZWQwYTA3NGRjZDk4NDRhNzhkN2QyNjE1NDY1YjEyZjQzM2FlNmRkMjlmMCJ9LHsidHlwZSI6ImltYWdlIiwicmVmIjoiZG9ja2VyLmlvL2xpYnJhcnkvYWxwaW5lOjMuMTMiLCJwaW4iOiJzaGEyNTY6MWQzMGQxYmEzY2I5MDk2MjA2N2U5YjI5NDkxZmJkNTY5OTc5NzlkNTQzNzZmMjNmMDE0NDhiNWM1Y2Q4YjQ2MiJ9LHsidHlwZSI6ImltYWdlIiwicmVmIjoiZG9ja2VyLmlvL21vYnkvYnVpbGRraXQ6djAuOS4wIiwicGluIjoic2hhMjU2OjhkYzY2OGU3ZjY2ZGIxYzA0NGFhZGJlZDMwNjAyMDc0MzUxNmE5NDg0ODc5M2UwZjgxZjk0YTA4N2VlNzhjYWIifSx7InR5cGUiOiJpbWFnZSIsInJlZiI6ImRvY2tlci5pby90b25pc3RpaWdpL3h4QHNoYTI1NjoyMWE2MWJlNDc0NGY2NTMxY2I1ZjMzYjBlNmY0MGVkZTQxZmEzYTFiOGM4MmQ1OTQ2MTc4ZjgwY2M4NGJmYzA0IiwicGluIjoic2hhMjU2OjIxYTYxYmU0NzQ0ZjY1MzFjYjVmMzNiMGU2ZjQwZWRlNDFmYTNhMWI4YzgyZDU5NDYxNzhmODBjYzg0YmZjMDQifSx7InR5cGUiOiJnaXQiLCJyZWYiOiJodHRwczovL2dpdGh1Yi5jb20vY3JhenktbWF4L2J1aWxka2l0LWJ1aWxkc291cmNlcy10ZXN0LmdpdCNtYXN0ZXIiLCJwaW4iOiIyNTlhNWFhNWFhNWJiMzU2MmQxMmNjNjMxZmUzOTlmNDc4ODY0MmMxIn0seyJ0eXBlIjoiaHR0cCIsInJlZiI6Imh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9tb2J5L21vYnkvbWFzdGVyL1JFQURNRS5tZCIsInBpbiI6InNoYTI1Njo0MTk0NTUyMDJiMGVmOTdlNDgwZDdmODE5OWIyNmE3MjFhNDE3ODE4YmMwZTJkMTA2OTc1Zjc0MzIzZjI1ZTZjIn1dfQ==\",\n    \"containerimage.config.digest\": \"sha256:f9b46e53f841560ba75645d3a8727e8ce3b051da89ffca3d9937130d8e5af02c\",\n    \"containerimage.digest\": \"sha256:9d3b157491a5dbb009a22a9c8aaef86b04fb247b1b8b5b0c745e32d256d028a2\",\n    \"image.name\": \"docker.io/library/docker:local\"\n  }\n}\n```\n\n`containerimage.buildinfo` is a single base64 encoded string and will look like this with the above response:\n\n```json\n{\n  \"sources\": [\n    {\n      \"type\": \"docker-image\",\n      \"ref\": \"docker.io/docker/buildx-bin:0.6.1@sha256:a652ced4a4141977c7daaed0a074dcd9844a78d7d2615465b12f433ae6dd29f0\",\n      \"pin\": \"sha256:a652ced4a4141977c7daaed0a074dcd9844a78d7d2615465b12f433ae6dd29f0\"\n    },\n    {\n      \"type\": \"docker-image\",\n      \"ref\": \"docker.io/library/alpine:3.13\",\n      \"pin\": \"sha256:1d30d1ba3cb90962067e9b29491fbd56997979d54376f23f01448b5c5cd8b462\"\n    },\n    {\n      \"type\": \"docker-image\",\n      \"ref\": \"docker.io/moby/buildkit:v0.9.0\",\n      \"pin\": \"sha256:8dc668e7f66db1c044aadbed306020743516a94848793e0f81f94a087ee78cab\"\n    },\n    {\n      \"type\": \"docker-image\",\n      \"ref\": \"docker.io/tonistiigi/xx@sha256:21a61be4744f6531cb5f33b0e6f40ede41fa3a1b8c82d5946178f80cc84bfc04\",\n      \"pin\": \"sha256:21a61be4744f6531cb5f33b0e6f40ede41fa3a1b8c82d5946178f80cc84bfc04\"\n    },\n    {\n      \"type\": \"git\",\n      \"ref\": \"https://github.com/crazy-max/buildkit-buildsources-test.git#master\",\n      \"pin\": \"259a5aa5aa5bb3562d12cc631fe399f4788642c1\"\n    },\n    {\n      \"type\": \"http\",\n      \"ref\": \"https://raw.githubusercontent.com/moby/moby/master/README.md\",\n      \"pin\": \"sha256:419455202b0ef97e480d7f8199b26a721a417818bc0e2d106975f74323f25e6c\"\n    }\n  ]\n}\n```\n\nMulti-platform is also handled:\n\n```console\n$ docker buildx bake --metadata-file metadata.json oci\n```\n\nEach image config will have the same structure but `ExporterResponse` will have a key for each platform:\n\n```text\n{\n  \"ExporterResponse\": {\n    \"containerimage.buildinfo/linux/amd64\": \"eyJzb3VyY2VzIjpbeyJ0eXBlIjoiaW1hZ2UiLCJyZWYiOiJkb2NrZXIuaW8vZG9ja2VyL2J1aWxkeC1iaW46MC42LjFAc2hhMjU2OmE2NTJjZWQ0YTQxNDE5NzdjN2RhYWVkMGEwNzRkY2Q5ODQ0YTc4ZDdkMjYxNTQ2NWIxMmY0MzNhZTZkZDI5ZjAiLCJwaW4iOiJzaGEyNTY6YTY1MmNlZDRhNDE0MTk3N2M3ZGFhZWQwYTA3NGRjZDk4NDRhNzhkN2QyNjE1NDY1YjEyZjQzM2FlNmRkMjlmMCJ9LHsidHlwZSI6ImltYWdlIiwicmVmIjoiZG9ja2VyLmlvL2xpYnJhcnkvYWxwaW5lOjMuMTMiLCJwaW4iOiJzaGEyNTY6MWQzMGQxYmEzY2I5MDk2MjA2N2U5YjI5NDkxZmJkNTY5OTc5NzlkNTQzNzZmMjNmMDE0NDhiNWM1Y2Q4YjQ2MiJ9LHs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bWFzdGVyL1JFQURNRS5tZCIsInBpbiI6InNoYTI1Njo0MTk0NTUyMDJiMGVmOTdlNDgwZDdmODE5OWIyNmE3MjFhNDE3ODE4YmMwZTJkMTA2OTc1Zjc0MzIzZjI1ZTZjIn1dfQ==\",\n    \"containerimage.digest\": \"sha256:0984b39f779f14077f6f7c324fe0f3cd5cc9af7483105281031a5e2308556c39\",\n    \"image.name\": \"docker.io/library/docker:local\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fbuildkit-buildsources-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazy-max%2Fbuildkit-buildsources-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fbuildkit-buildsources-test/lists"}