Giter VIP home page Giter VIP logo

Comments (2)

errordeveloper avatar errordeveloper commented on June 6, 2024

Pidfile should be used for keeping track of the daemon and monitoring its state.

Process management can be tricky, perhaps docker-container driver does a pretty good job at this!

Perhaps this kind of driver might be more feasible for a setting where the buildkitd runs in foreground for a single build and expected to exit right away?

from buildx.

crazy-max avatar crazy-max commented on June 6, 2024

I thought a bit more about this driver, quick notes:

  • Check buildkitd in path
    • If not available we can download latest buildkit release and extract to ~/.docker/buildx/.buildkit/<version> (use GitHub API to retrieve artifacts)
      • Also be able to set buildkit version through driver-opt
  • PID in ~/.docker/buildx/.buildkit/<builder_name>/buildkitd.pid
  • Define default BuildKit Daemon configuration for this driver with defaults (can be default buildkitd-flags too):
root = "~/.docker/buildx/.buildkit/<builder_name>/state"
insecure-entitlements = [ "network.host", "security.insecure" ] # not sure

[worker.oci]
  enabled = true
  snapshotter = "auto" # overlayfs or native, default value is "auto".
  rootless = true # rootless should be enabled by default (or disabled if "docker buildx create" run as root)
  binary = "~/.docker/buildx/.buildkit/<version>/buildkit-runc"

from buildx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.