l00397676
5b9d88b3ad
docker-container: check local image store if pulling image failed
...
When booting `docker-container` driver, it will pull and run image
`moby/buildkit:buildx-stable-1`.
If current node cannot connect to dockerhub, driver `docker-container`
will always booting failure.
But user may already load the image manually or pull it from a priviate
registry.
Buildx should check local docker image store after pull failed.
Fixes : #199 issuecomment-561996661
Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
5 years ago
Tibor Vass
8bce430f4d
Merge pull request #167 from AkihiroSuda/kube
...
new driver: kubernetes
5 years ago
Akihiro Suda
c6f8de90aa
kubernetes: show Kubernetes Pods as buildx "Nodes" in `docker buildx inspect`
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
5 years ago
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>
5 years ago
Tõnis Tiigi
f5c2673878
Merge pull request #184 from cpuguy83/bake_args_from_env
...
Support reading from env on bake --set <t>.args
5 years ago
Tõnis Tiigi
8e92bfc8f0
Merge pull request #188 from shykes/patch-1
...
Clarify documentation structure
5 years ago
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`
5 years ago
Brian Goff
6634f1e75c
Support reading from env on bake --set <t>.args
...
This works just like the `build` command where if you have `--build-arg
FOO`, it will read the variable from env and only set a value if the
variable is defined.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
5 years ago
Tõnis Tiigi
6aba19193a
Merge pull request #182 from tonistiigi/raw-newline
...
imagetools: avoid printing newline on raw mode
5 years ago
Tonis Tiigi
eb1aabe9e3
imagetools: avoid printing newline on raw mode
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tõnis Tiigi
714f181d81
Merge pull request #170 from sirlatrom/169-docker-container-driver-envs
...
Support environment variables in docker-container driver
5 years ago
Sune Keller
fd44accc79
Support environment variables in docker-container driver
...
Fixes #169
Signed-off-by: Sune Keller <absukl@almbrand.dk>
5 years ago
Tõnis Tiigi
43edd6b77e
Merge pull request #162 from daixiang0/patch-1
...
Update README.md
5 years ago
Xiang Dai
427c19d65c
Update README.md
...
Comment that with docker 19.03-, can not use buildx as docker plugin.
5 years ago
Tõnis Tiigi
6db68d0295
Merge pull request #155 from tiborvass/vendor-buildkit
...
vendor: update buildkit to docker-19.03 (ae10b292)
5 years ago
Tibor Vass
abe8ba769e
vendor: update buildkit to docker-19.03 (ae10b292)
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tõnis Tiigi
96fb17b711
Merge pull request #154 from tiborvass/fix-149
...
build: fix scoping issue in closure inside loop
5 years ago
Tibor Vass
63e5633d62
build: fix scoping issue in closure inside loop
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tibor Vass
299d41660b
Merge pull request #153 from tonistiigi/stdin-dockerfile
...
build: fix stdin dockerfile filename
5 years ago
Tibor Vass
1ec87b7beb
Merge pull request #152 from tonistiigi/stream-input
...
build: use correct in-memory input
5 years ago
Tonis Tiigi
0475107882
build: fix stdin dockerfile filename
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tonis Tiigi
75f8d7ebb5
build: use correct in-memory input
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tibor Vass
7c97854b6f
Merge pull request #144 from droopy4096/master
...
Add FOSSA checks to Jenkins CI
5 years ago
Dmytro Makovey
5f4d4a87f7
Add FOSSA checks to Jenkins CI
...
Signed-off-by: Dmytro Makovey <dmytro.makovey@docker.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tõnis Tiigi
c1ce7300d5
Merge pull request #146 from gfrancesco/master
...
README typo
5 years ago
gfrancesco
e118c4d8e9
UPD: Readme typo
5 years ago
Tibor Vass
5fe779703d
Merge pull request #134 from tonistiigi/group-merge
...
bake: merge targets on same groups
5 years ago
Tonis Tiigi
15a5a42eb1
bake: merge targets on same groups
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tõnis Tiigi
5b974158f9
Merge pull request #131 from gracenoah/patch-1
...
Fix some quotes in the readme
5 years ago
gracenoah
1c0a7f14e8
Fix some quotes in the readme
5 years ago
Tibor Vass
7ec8912591
Merge pull request #125 from tiborvass/docs-allow
...
Document build --allow
6 years ago
Tibor Vass
83da6a3378
docs: crosslink buildkitd-flags and config flags in create
...
Signed-off-by: Tibor Vass <tibor@docker.com>
6 years ago
Tibor Vass
cad02a4681
docs: document build --allow
...
Signed-off-by: Tibor Vass <tibor@docker.com>
6 years ago
Tõnis Tiigi
c967f1d570
Merge pull request #124 from tiborvass/update-docs
...
Update docs
6 years ago
Tibor Vass
be3efc979b
docs: add documentation for --buildkitd-flags, --config, --driver-opt on create
...
Signed-off-by: Tibor Vass <tibor@docker.com>
6 years ago
Tibor Vass
5c5f54c6d6
docs: Update install instructions with Docker CE 19.03
...
Signed-off-by: Tibor Vass <tibor@docker.com>
6 years ago
Tibor Vass
6f8f04e1f8
Merge pull request #122 from tonistiigi/custom-image
...
driver: allow setting driver opts
6 years ago
Tonis Tiigi
afd821010d
docker-container: allow setting custom buildkit image
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
bcc882cbf1
docker-container: allow using host network
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
75b80c277f
driver: allow setting driver opts
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tibor Vass
096d1befc9
Merge pull request #104 from tonistiigi/entitlements
...
build: add allowed entitlements
6 years ago
Tibor Vass
2bf6187a88
Merge pull request #121 from tonistiigi/config
...
driver: allow setting buildkit config file
6 years ago
Tonis Tiigi
8ed8795268
driver: allow setting buildkit config file
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Co-Authored-By: Tibor Vass <tiborvass@users.noreply.github.com>
6 years ago
Tõnis Tiigi
6e32ea3418
Merge pull request #118 from tiborvass/bake-no-cache-pull
...
bake: honor --no-cache and --pull
6 years ago
Tibor Vass
8b2171f78a
bake: honor --no-cache and --pull
...
Signed-off-by: Tibor Vass <tibor@docker.com>
6 years ago
Tibor Vass
92f1234aaa
Merge pull request #116 from tonistiigi/build-arg-default
...
build: load default build args from env
6 years ago
Tibor Vass
73645c8348
Merge pull request #117 from tonistiigi/compose-env
...
bake: replace env in compose files
6 years ago
Tonis Tiigi
662c0768cb
bake: replace env in compose files
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
43150ef849
build: load default build args from env
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tibor Vass
3f18b659a0
Merge pull request #102 from tonistiigi/buildkitd-flags
...
driver: allow configuring buildkitd flags
6 years ago