Commit Graph

22 Commits

Author SHA1 Message Date
Brian Goff 1ad87c6ba6 Update go-cty to pull in more stdlib funcs.
I needed "split" specifically so I can do something like:

```hcl
variable PLATFORMS {
  default = "linux/amd64"
}

target foo {
  platforms = split(",", "${PLATFORMS}")
  # other stuff
}
```

Where the existing "csvdecode" does not work for this because it parses
the string into a list of objects instead of a list of strings.

I went ahead and just added all the available new functions.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2020-05-07 16:05:17 -07:00
Patrick Van Stee 87c4bf1df9 Upgrade hcl to v2
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
2020-04-28 22:07:52 -04:00
Tonis Tiigi 7c627da986 vendor: update buildkit to v0.7.0
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-09 22:37:06 -07:00
Silvin Lubecki bbc902b4d6 Bump buildkit to master and fix versions incompatible with go mod 1.13
Bump github.com/gogo/googleapis to v1.3.2
Bump github.com/docker/cli to master

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-03-04 18:37:42 +01:00
ulyssessouza 7f0b59dc37 Remove replace for docker/docker and restore prefix on docker/cli
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
2019-12-12 01:27:56 +01:00
ulyssessouza 9e8c532e61 Bump docker/cli to 06f34ba50786ec67761745c818e87baecc2ba139
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
2019-12-11 14:55:53 +01:00
ulyssessouza f2be09f4e4 Bump microsoft/hcsshim to v0.8.7
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
2019-12-11 14:35:32 +01:00
ulyssessouza 3ff9abca3a Bump moby/buildkit
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
2019-12-11 14:13:56 +01:00
ulyssessouza 9f4f945d4f Bump docker/docker and containerd/console
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
2019-12-10 23:37:11 +01:00
Akihiro Suda 6b65b0c982 new driver: kubernetes
Tested with `kind` and GKE.

Note: "nodes" shown in `docker buildx ls` are unrelated to Kubernetes "nodes".
Probably buildx should come up with an alternative term.

Usage:

  $ kind create cluster
  $ export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"

  $ docker buildx create --driver kubernetes --driver-opt replicas=3 --use
  $ docker buildx build -t foo --load .

`--load` loads the image into the local Docker.

Driver opts:

  - `image=IMAGE` - Sets the container image to be used for running buildkit.
  - `namespace=NS` - Sets the Kubernetes namespace. Defaults to the current namespace.
  - `replicas=N` - Sets the number of `Pod` replicas. Defaults to 1.
  - `rootless=(true|false)` - Run the container as a non-root user without `securityContext.privileged`. Defaults to false.
  - `loadbalance=(sticky|random)` - Load-balancing strategy. If set to "sticky", the pod is chosen using the hash of the context path. Defaults to "sticky"

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-11-21 10:30:39 +09:00
Tibor Vass abe8ba769e vendor: update buildkit to docker-19.03 (ae10b292)
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-09-27 17:18:25 +00:00
Tibor Vass 03ae6f8e54 vendor: update docker/cli (ab688a9a79a1) and docker/docker (3998dffb806f)
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-05-23 20:43:16 +00:00
Tonis Tiigi b68b005f68 vendor: update buildkit to f238f1e
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-05-14 17:59:01 -07:00
Tibor Vass 416b7bb23f install/uninstall: allow aliasing buildx to `docker builder`
Currently the user can type `docker buildx` to use this tool.
This patch allows the user to install buildx as a `docker builder` alias.

As an additional benefit, this allows the regular `docker build` to hook
into `buildx build`.

Note that the install and uninstall commands are currently hidden.

Signed-off-by: Tibor Vass <tibor@docker.com>
2019-04-19 03:10:00 +00:00
Tibor Vass dc07613bd2 build: support more variations on context and dockerfile + iidfile
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-04-17 04:25:54 +00:00
Tonis Tiigi c31fd95212 vendor: update moby
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-10 18:58:19 -07:00
Tonis Tiigi fd8608111b vendor: update buildkit to b4a6a0e3
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-10 10:21:20 -07:00
Tonis Tiigi a932d52e35 bake: initial implementation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-09 19:26:53 -07:00
Tonis Tiigi 9129a49409 vendor: update buildkit and dockerd
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-09 18:32:00 -07:00
Tonis Tiigi b3d7b5a2ec vendor: update buildkit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-03-26 15:04:11 -07:00
Tonis Tiigi 8b7c38e61a vendor: add buildkit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-03-23 23:11:26 -07:00
Tonis Tiigi fd8fbf21e6 vendor: initial vendor
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-03-22 16:27:37 -07:00