74 Commits

Author SHA1 Message Date
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
Solomon Hykes
d7adb9ef6e
Clarify documentation structure
Move a paragraph in README to clarify where it fits in the structure.

- Before the move, the paragraph seems to apply to the `--output=local` section when in fact it applies to the entire `--output` section. This is especially confusing for the sentence "if just the path is specified as a value, `buildx` will use the local exporter with this path as the destination".

- After the move, it is clear that the paragraph applies to `--output`
2019-11-06 16:42:12 -08:00
Xiang Dai
427c19d65c Update README.md
Comment that with docker 19.03-, can not use buildx as docker plugin.
2019-10-26 11:07:27 +08:00
gfrancesco
e118c4d8e9
UPD: Readme typo 2019-09-17 18:13:16 +02:00
gracenoah
1c0a7f14e8
Fix some quotes in the readme 2019-08-13 14:27:10 +02:00
Tibor Vass
83da6a3378 docs: crosslink buildkitd-flags and config flags in create
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-01 17:56:05 -07:00
Tibor Vass
cad02a4681 docs: document build --allow
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-01 17:56:05 -07:00
Tibor Vass
be3efc979b docs: add documentation for --buildkitd-flags, --config, --driver-opt on create
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-01 16:15:11 -07:00
Tibor Vass
5c5f54c6d6 docs: Update install instructions with Docker CE 19.03
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-01 15:23:02 -07:00
Fernando Miguel
c8cda08209
add chmod 2019-07-05 12:14:40 +01:00
khs1994
aed531a8a9
Fix Dockerfile format
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
2019-06-04 17:43:39 +08:00
Sebastiaan van Stijn
138b2e7415 Add contributing, code of conduct
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-05-24 17:34:06 -07:00
Tibor Vass
77c23dd85f Update README to use --platform=local with Docker 19.03
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-05-24 23:29:14 +00:00
Tibor Vass
5d0db8be7f
Merge pull request #64 from tonistiigi/skip-target
readme: simplify install instructions
2019-05-06 17:05:10 -07:00
Tõnis Tiigi
361f52ab6c
Merge pull request #65 from tiborvass/load-multiarch
Explain single-platform limitation of docker export type
2019-05-06 16:14:05 -07:00
Tibor Vass
707e17d05c Explain single-platform limitation of docker export type
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-05-06 15:33:17 -07:00
Tibor Vass
c222726c15 Add Linux Docker install instructions
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-05-06 14:24:22 -07:00
Tonis Tiigi
25ae122153 readme: simplify install instructions
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-05-06 14:20:41 -07:00
Bin Du
c5a19f754f fix the typo in --cache-to example
Signed-off-by: Bin Du <bindu@microsoft.com>
2019-05-05 23:38:39 -07:00
Tibor Vass
93d21f1a86 Update install instructions in README
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-05-01 10:01:45 -07:00
Tonis Tiigi
9e4a609346 readme: more guide content
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-25 23:27:27 -07:00
Tonis Tiigi
1c35bc7d91 readme: better title formatting
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-24 21:35:54 -07:00
Tonis Tiigi
94a0422a1b rename to docker/buildx
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-24 20:02:20 -07:00
Tonis Tiigi
72924ac95f add readme
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-04-24 19:28:55 -07:00