https://github.com/developer-guy/buildkit-machine
A proof-of-concept project that makes accessible buildkitd daemon from macOS
https://github.com/developer-guy/buildkit-machine
buildkit buildkitd containerd lima limactl limavm macos moby qemu
Last synced: 5 months ago
JSON representation
A proof-of-concept project that makes accessible buildkitd daemon from macOS
- Host: GitHub
- URL: https://github.com/developer-guy/buildkit-machine
- Owner: developer-guy
- License: apache-2.0
- Created: 2022-01-08T18:44:26.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-23T08:51:59.000Z (over 2 years ago)
- Last Synced: 2025-04-19T01:32:02.159Z (6 months ago)
- Topics: buildkit, buildkitd, containerd, lima, limactl, limavm, macos, moby, qemu
- Language: Go
- Homepage: https://batuhan-apaydin-11378.medium.com/buildkit-machine-a-brand-new-project-to-enable-building-pushing-container-images-without-requiring-f8a899fd0cd0
- Size: 1.34 MB
- Stars: 56
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buildkit-machine
buildkit-machine allows you to make buildkitd daemon accessible in your macOS environment. To do so, it uses [lima](https://github.com/lima-vm/lima), which is a Linux subsystem for macOS, under the hood. lima spins up a VM that runs buildkitd daemon in a rootless way which means that sock file of the buildkitd daemon is now be able to accessible from `/run/user//buildkit/buildkitd`.
## Overview

## Architecture

## Installation
```shell
$ go install github.com/developer-guy/buildkit-machine@latest
```## Usage
> Please ensure you've installed limactl because buildkit-machine will use limactl executable under the hood.
To make it accessible Buildkitd Daemon over socket:
```shell
$ buildkit-machine start buildkitd --unix $(pwd)/buildkitd.sock
```To make it accessible Buildkitd Daemon over TCP connection:
```shell
$ buildkit-machine start builtkitd --tcp 9999
```Once you make buildkitd accessible to your host, you can be able to use client tooling such as `buildctl` to start building and pushing container images. There is an on-going issue in [Docker Buildx](https://github.com/docker/buildx/issues/23) side to let Buildx to connect remote Buildkit daemon. Once it is ready, we can use buildx too.