# A template to use BuildKit
# $ limactl start ./buildkit.yaml

# To run `buildkit` on the host (assumes buildctl is installed):
# $ export BUILDKIT_HOST=$(limactl list buildkit --format 'unix://{{.Dir}}/sock/buildkitd.sock')
# $ buildctl debug workers
message: |
  To run `buildkit` on the host (assumes buildctl is installed), run the following commands:
  -------
  export BUILDKIT_HOST="unix://{{.Dir}}/sock/buildkitd.sock"
  buildctl debug workers
  -------

minimumLimaVersion: 2.0.0

base: template:_images/ubuntu-lts

containerd:
  system: false
  user: true

portForwards:
- guestSocket: "/run/user/{{.UID}}/buildkit-default/buildkitd.sock"
  hostSocket: "{{.Dir}}/sock/buildkitd.sock"
