mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
builder: enable gateway through syntax directive
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
a25846a675
commit
72d10ced7d
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
"github.com/moby/buildkit/exporter"
|
||||
"github.com/moby/buildkit/frontend"
|
||||
"github.com/moby/buildkit/frontend/dockerfile"
|
||||
"github.com/moby/buildkit/frontend/gateway"
|
||||
"github.com/moby/buildkit/snapshot/blobmapping"
|
||||
"github.com/moby/buildkit/solver/boltdbcachestorage"
|
||||
"github.com/moby/buildkit/worker"
|
||||
|
@ -114,7 +115,7 @@ func newController(rt http.RoundTripper, opt Opt) (*control.Controller, error) {
|
|||
|
||||
frontends := map[string]frontend.Frontend{}
|
||||
frontends["dockerfile.v0"] = dockerfile.NewDockerfileFrontend()
|
||||
// frontends["gateway.v0"] = gateway.NewGatewayFrontend()
|
||||
frontends["gateway.v0"] = gateway.NewGatewayFrontend()
|
||||
|
||||
wopt := mobyworker.WorkerOpt{
|
||||
ID: "moby",
|
||||
|
|
Loading…
Add table
Reference in a new issue