36 Commits

Author SHA1 Message Date
Wang Jinglei
a7c704c39d feat: enhance kubernetes driver
Signed-off-by: Wang Jinglei <morlay.null@gmail.com>
2020-08-31 09:20:49 +08:00
Akihiro Suda
82c8f2d8f0
README.md: add usage of tonistiigi/binfmt
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-08-26 13:52:26 +09:00
Donghui Wang
e6be472831 update the content which not display in markdown
Signed-off-by: Donghui Wang <977675308@qq.com>
2020-06-19 17:30:49 +08:00
Patrick Van Stee
870b38837b Allow for user defined functions
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
2020-04-29 08:52:48 -04:00
Patrick Van Stee
10d4b7a878 Add example of interpolation to the README
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
2020-04-29 08:52:20 -04:00
Tibor Vass
2a257a8252 bake: allow overriding no-cache and pull per target via --set
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-23 18:11:22 +00:00
Tibor Vass
417f52e001 bake: add --load and --push shorthands for --set
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-23 05:54:11 +00:00
Tibor Vass
2bca8fa677 bake: allow pattern matching for target names in --set
Although bake is for running multiple targets, --set required a single
target name for overriding a property. This change allows matching
multiple targets for overrides.

Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-23 05:54:11 +00:00
Brandon Philips
bae6b1cec8
README: add mkdir for .docker/cli-plugins
this dir doesn't exist by default so add a mkdir
2020-04-11 08:54:09 -07:00
Batuhan Apaydın
2def02ea74 added kubernetes driver information 2020-03-30 18:34:22 +03:00
Artur Klauser
14a28d7fc3
Update README.md 2020-01-12 10:01:13 +01:00
Artur Klauser
5ff7635447
Explain binfmt_misc requirements
Getting the QEMU interpreters to work transparently inside containers seems to be a bit of a sticking point, with major distributions still on kernels and/or binfmt-support package versions that don't support the fix_binary flag yet. Give the reader a little more guidance what to look out for.
2020-01-04 00:00:40 +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
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