Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch BUILDKIT_SYNTAX to tianon/buildkit #17632

Merged
merged 1 commit into from
Oct 1, 2024

Commits on Sep 30, 2024

  1. Switch BUILDKIT_SYNTAX to tianon/buildkit

    Support for this was implemented in my images back in tianon/dockerfiles@8c85466 as a PoC (and support for it was kept in tianon/dockerfiles@2b78191 when the explicit 0.13 builds were added), and I've actually been using it pretty heavily since without issue, both locally *and* for all of my `tianon/xxx` personal image builds (including building of `tianon/buildkit` itself, for maximum meta 😂).
    
    The primary benefit is that we get the exact same architecture support matrix as our BuildKit images (and the same set of applied patches, if they happen to impact the frontend code as well).
    
        $ docker buildx build --pull --no-cache --build-arg BUILDKIT_SYNTAX=tianon/buildkit:0.13 - <<<$'FROM bash\nRUN echo see, it works!'
        #0 building with "default" instance using docker driver
    
        #1 [internal] load build definition from Dockerfile
        #1 transferring dockerfile: 71B done
        #1 DONE 0.0s
    
        #2 [internal] load .dockerignore
        #2 transferring context: 2B done
        #2 DONE 0.0s
    
        docker-library#3 resolve image config for docker.io/tianon/buildkit:0.13
        docker-library#3 DONE 0.2s
    
        docker-library#4 docker-image://docker.io/tianon/buildkit:0.13@sha256:95db7c7b47f142af3fe0cae7de217996dadde8c44ef9e331ddd564857ca277ab
        docker-library#4 resolve docker.io/tianon/buildkit:0.13@sha256:95db7c7b47f142af3fe0cae7de217996dadde8c44ef9e331ddd564857ca277ab 0.0s done
        docker-library#4 CACHED
    
        docker-library#5 [internal] load metadata for docker.io/library/bash:latest
        docker-library#5 DONE 0.2s
    
        docker-library#6 [1/2] FROM docker.io/library/bash:latest@sha256:ce062497c248eb1cf4d32927f8c1780cce158d3ed0658c586a5be7308d583cbb
        docker-library#6 CACHED
    
        docker-library#7 [2/2] RUN echo see, it works!
        see, it works!
        docker-library#7 DONE 0.3s
    
        docker-library#8 exporting to image
        docker-library#8 exporting layers 0.0s done
        docker-library#8 writing image sha256:ceb5fb7b6904a68eeedd25c253e54e9ae1160c404c7e9fbb26c142d8a8143ef8 done
        docker-library#8 DONE 0.0s
    tianon committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    30c6d0b View commit details
    Browse the repository at this point in the history