• Stars
    star
    129
  • Rank 278,278 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

buildkit frontend for buildpacks

asciicinema example

buildkit-pack

BuildKit frontend for building buildpacks directly.

Usage

With Docker (v18.06+ with DOCKER_BUILDKIT=1):

Add # syntax = tonistiigi/pack as the first line of a file (eg. manifest.yml):

docker build -f manifest.yml .

With buildctl:

buildctl build --frontend=gateway.v0 --opt source=tonistiigi/pack --local context=.

Options

Detection can be enabled with skipDetect=true. Custom buildpacks can be set in manifest.yml or passed with buildpackOrder=url.

Examples

Python

> git clone git://github.com/ihuston/python-cf-examples.git
> cd python-cf-examples/01-simple-python-app
> tmp=$(mktemp); ( echo "# syntax = tonistiigi/pack" ; cat manifest.yml ) > $tmp && mv $tmp manifest.yml
> docker build -t pythonapp -f manifest.yml .
[+] Building 89.4s (16/16) FINISHED
 ....
 => => writing image sha256:1e13eb221e7779c8aa65624b97afcc11ee797d3c09d80dcfc1e55d956d467d39         0.0s
 => => naming to docker.io/library/pythonapp                                                         0.0s
> docker run -d -p 8080:8080 pythonapp
> curl localhost:8080
Hello World! I am instance 0

Go

> git clone git://github.com/cloudfoundry/go-buildpack
> cd go-buildpack/fixtures/go_app/
> tmp=$(mktemp); ( echo "# syntax = tonistiigi/pack" ; cat Procfile ) > $tmp && mv $tmp Procfile
> docker build -t goapp -f Procfile .
[+] Building 28.9s (16/16) FINISHED
...
 => => writing image sha256:f0d240bed9a2b12b288845c3a305050c8d9fa035f564d057e95b0714f68363f2         0.0s
 => => naming to docker.io/library/goapp                                                             0.0s
> docker run -d -p 8080:8080 goapp
> curl localhost:8080
go, world
.

.

More Repositories

1

binfmt

Cross-platform emulator collection distributed with Docker images.
Go
933
star
2

audiosprite

Jukebox/Howler/CreateJS compatible audio sprite generator
JavaScript
680
star
3

xx

Dockerfile cross-compilation helpers
Shell
375
star
4

styler

CSS/Stylus live editor
JavaScript
133
star
5

mega

THIS REPO IS NOT MAINTAINED. Unofficial Node.js SDK for Mega
JavaScript
118
star
6

wasm-cli-plugin

Go
56
star
7

fsutil

Go
52
star
8

presentty

Go
45
star
9

buildcache

Go
42
star
10

go-actions-cache

Go
38
star
11

llb-gobuild

Go
21
star
12

ipizza

Node.js implementation for Estonian(and some other) banklink payments.
JavaScript
16
star
13

vzor

gvisor hacks
Go
13
star
14

megaspeaker

Mobile phones playing together in perfect sync
JavaScript
13
star
15

go-archvariant

Go
6
star
16

vendor.js

Javascript assets downloader. This repo is no longer maintained. Use visionmedia/asset instead, or browserify or component.
CoffeeScript
5
star
17

dockerfile

development happens in https://github.com/moby/buildkit/tree/master/frontend/dockerfile
Go
5
star
18

go-rosetta

Go
4
star
19

buildkit-alpine

Buildkit Alpine frontend. Only demo purposes for now
Go
4
star
20

riscv-dockerfiles

Dockerfile
3
star
21

redisparse

Streaming Redis response parser
JavaScript
3
star
22

copy

Go
2
star
23

ci-token-server

Go
2
star
24

docker-bpftool

Dockerfile
2
star
25

go-csvvalue

Single line CSV parser
Go
2
star
26

units

Go
1
star
27

drawmusic

Children game where you draw stuff and hear it play
JavaScript
1
star
28

kv-redis

Redis endpoint for dominictarr/kv
JavaScript
1
star
29

retina.js

High quality images on every zoom level. This project has been abandoned. Just use media queries or -webkit-image-set.
CoffeeScript
1
star
30

repo-copy

Go
1
star
31

pangalink.net-client

Node.js client and CLI utility for pangalink.net
JavaScript
1
star
32

buildkit_http_sample

Go
1
star
33

nsenter

Dockerfile
1
star