An open API service indexing awesome lists of open source software.

https://github.com/screwdriver-cd/buildkit-rootless


https://github.com/screwdriver-cd/buildkit-rootless

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# buildkit-rootless

[![Build Status][build-image]][build-url]
[![Latest Release][version-image]][version-url]
[![Open Issues][issues-image]][issues-url]

This container image launches a rootless BuildKit daemon inside Screwdriver.cd build environments. It is based on the rootless variant of [moby/buildkit](https://github.com/moby/buildkit), with the following modifications:

- Additional TLS-related scripts to enable secure (TLS) communication.
- A default buildkitd.toml configuration file for convenient, out-of-the-box usage.

By running this image, you can take advantage of Docker builds in a rootless context, helping to maintain a more secure and isolated environment.

## Usage

### Docker

```bash
## run buildkitd container
$ docker run -d -p 1234:1234 --name buildkit-container screwdrivercd/buildkit-rootless --addr tcp://0.0.0.0:1234

## create remote builder in buildkitd container
$ docker buildx create --name remote-buildkit --driver remote tcp://localhost:1234

## build image with remote builder
$ docker buildx use remote-buildkit
$ docker buildx build -t /: --push .
```

## License

Code licensed under the BSD 3-Clause license. See [LICENSE](./LICENSE) file for terms.

[build-image]: https://cd.screwdriver.cd/pipelines/15783/badge
[build-url]: https://cd.screwdriver.cd/pipelines/15783
[version-image]: https://img.shields.io/github/tag/screwdriver-cd/buildkit-rootless.svg
[version-url]: https://github.com/screwdriver-cd/buildkit-rootless/releases
[issues-image]: https://img.shields.io/github/issues/screwdriver-cd/screwdriver.svg
[issues-url]: https://github.com/screwdriver-cd/screwdriver/issues