Tibor Vass
381dc8fb43
driver: do not insert "platform" as driver-opt
...
Addresses https://github.com/docker/setup-buildx-action/issues/45
Simple repro:
```
$ buildx create --platform linux/amd64 --use
$ buildx build - <<EOF
from scratch
EOF
```
Since https://github.com/docker/buildx/pull/370 a `platform` driver-opt was automatically inserted with the value specified by `--platform` flag on regardless of the type of driver, even though it was only used in the kubernetes driver. However, because the docker-container driver is pedantic about the options being passed, it errored out.
Another side-effect I suspect is that with the kubernetes driver it was now possible to specify the platforms in two different ways: `--driver-opt platform=...` and `--platform`.
This patch reverts completely the `platform` driver-opt and instead ensures the platforms information is passed onto the kubernetes driver via variables.
Signed-off-by: Tibor Vass <tibor@docker.com >
2020-12-15 07:09:46 +00:00
Tibor Vass and GitHub
d2bf42f8b4
Merge pull request #397 from tonistiigi/update-buildkit-20200919
...
vendor: update buildkit to 2943a0838
2020-10-14 01:03:56 -07:00
Tibor Vass and GitHub
f2cf7cf281
Merge pull request #333 from tonistiigi/dockerd-log
...
demo-env: correct dockerd logging
2020-07-27 17:44:06 +02:00
Tibor Vass and GitHub
e5217f26e2
Merge pull request #296 from tonistiigi/seed-fix
...
cmd: seed math rand
2020-05-18 12:03:57 -07:00
Tibor Vass
77ddee9314
bake: fix pull and no-cache overrides
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2020-04-30 14:05:21 -07:00
Tibor Vass
c4d07f67e3
commands: check if flag is set instead of using flagutil.Tristate
...
Fixes --pull and --no-cache without argument
Signed-off-by: Tibor Vass <tibor@docker.com >
2020-04-30 12:25:41 -07:00
Tibor Vass and GitHub
09339bf500
Merge pull request #263 from tonistiigi/platforms-print
...
separate manual and automatically detected platforms
2020-04-28 17:46:09 -07: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
078b65905a
bake: add test cases for pattern matching
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2020-04-23 05:54:11 +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
Tibor Vass
14e65ff3b4
bake: fix override+inheritance bug
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2020-04-21 22:42:03 +00:00
Tibor Vass
3282dae09b
bake: add tests for override+inheritance bug
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2020-04-21 22:38:06 +00:00
Tibor Vass and GitHub
f4ac640252
Merge pull request #250 from tonistiigi/buildkit-bump
...
vendor: update buildkit to v0.7.0
2020-04-10 13:43:09 -07:00
Tibor Vass and GitHub
52b0ea328f
Merge pull request #233 from silvin-lubecki/go-1.13
...
bump to Go 1.13
2020-03-04 12:19:16 -08:00
Tibor Vass
aba962c12c
Revert "ADDED .fossa file for fossa scans"
...
This reverts commit 6e1fd0eab6 .
2019-12-10 09:11:39 -08:00
Tibor Vass and GitHub
8bce430f4d
Merge pull request #167 from AkihiroSuda/kube
...
new driver: kubernetes
2019-11-21 09:46:00 -08: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
63e5633d62
build: fix scoping issue in closure inside loop
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-09-26 18:01:29 +00:00
Tibor Vass and GitHub
299d41660b
Merge pull request #153 from tonistiigi/stdin-dockerfile
...
build: fix stdin dockerfile filename
2019-09-26 10:53:28 -07:00
Tibor Vass and GitHub
1ec87b7beb
Merge pull request #152 from tonistiigi/stream-input
...
build: use correct in-memory input
2019-09-26 10:45:55 -07:00
Tibor Vass and GitHub
7c97854b6f
Merge pull request #144 from droopy4096/master
...
Add FOSSA checks to Jenkins CI
2019-09-17 14:56:00 -07:00
Tibor Vass and GitHub
5fe779703d
Merge pull request #134 from tonistiigi/group-merge
...
bake: merge targets on same groups
2019-09-05 17:15:01 -07:00
Tibor Vass and GitHub
7ec8912591
Merge pull request #125 from tiborvass/docs-allow
...
Document build --allow
2019-08-01 18:18:00 -07: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
Tibor Vass and GitHub
6f8f04e1f8
Merge pull request #122 from tonistiigi/custom-image
...
driver: allow setting driver opts
2019-08-01 11:41:49 -07:00
Tibor Vass and GitHub
096d1befc9
Merge pull request #104 from tonistiigi/entitlements
...
build: add allowed entitlements
2019-07-31 15:36:13 -07:00
Tibor Vass and GitHub
2bf6187a88
Merge pull request #121 from tonistiigi/config
...
driver: allow setting buildkit config file
2019-07-31 15:21:17 -07:00
Tibor Vass
8b2171f78a
bake: honor --no-cache and --pull
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-07-30 19:39:01 -07:00
Tibor Vass and GitHub
92f1234aaa
Merge pull request #116 from tonistiigi/build-arg-default
...
build: load default build args from env
2019-07-30 19:20:09 -07:00
Tibor Vass and GitHub
73645c8348
Merge pull request #117 from tonistiigi/compose-env
...
bake: replace env in compose files
2019-07-30 19:14:21 -07:00
Tibor Vass and GitHub
3f18b659a0
Merge pull request #102 from tonistiigi/buildkitd-flags
...
driver: allow configuring buildkitd flags
2019-07-09 17:27:17 -07:00
Tibor Vass
b741350afd
bake: compose parser should only error if there are neither build nor image fields
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-05-29 18:12:30 -07:00
Tibor Vass and GitHub
61a6fdd767
Merge pull request #84 from tiborvass/platform-local
...
Update README to use --platform=local with Docker 19.03
2019-05-24 17:16:03 -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 and GitHub
0eb2df54ce
Merge pull request #83 from tonistiigi/relative-dockerfile-path
...
bake: make dockerfile relative to context
2019-05-24 16:18:50 -07:00
Tibor Vass and GitHub
4e61674ac8
Merge pull request #81 from tiborvass/experimental
...
Allow Docker to ship buildx guarded by the experimental flag
2019-05-23 14:42:28 -07:00
Tibor Vass
695034153a
cmd/buildx: add empty by default experimental variable
...
To guard this Docker CLI plugin with docker's experimental CLI config,
buildx needs to be built with `go build -ldflags "-X main.experimental=1"`
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-05-23 21:21:27 +00:00
Tibor Vass and GitHub
fb9cf7720a
Merge pull request #82 from tiborvass/vendor-cli
...
vendor: update docker/cli (ab688a9a79a1) and docker/docker (3998dffb806f)
2019-05-23 14:20:40 -07: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
Tibor Vass and GitHub
715d38ff96
Merge pull request #75 from tonistiigi/update-buildkit
...
vendor: update buildkit to f238f1e
2019-05-15 10:39:55 -07:00
Tibor Vass and GitHub
3045eb1b10
Merge pull request #76 from tonistiigi/build-flags
...
build: add missing flags
2019-05-15 10:39:05 -07:00
Tibor Vass and GitHub
b3fe1a333d
Merge pull request #68 from tonistiigi/arm-variant
...
imagetools: keep arm variant
2019-05-06 17:11:49 -07:00
Tibor Vass and GitHub
f38dfd2032
Merge pull request #67 from tonistiigi/unfork-cli
...
dockerfile: unfork cli
2019-05-06 17:07:49 -07:00
Tibor Vass and GitHub
250558eb3a
Merge pull request #66 from tonistiigi/df-update
...
dockerfile: update to 1.1
2019-05-06 17:05:58 -07:00
Tibor Vass and GitHub
5d0db8be7f
Merge pull request #64 from tonistiigi/skip-target
...
readme: simplify install instructions
2019-05-06 17:05:10 -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 and Tibor Vass
c222726c15
Add Linux Docker install instructions
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-05-06 14:24:22 -07:00
Tibor Vass and GitHub
7339f85248
Merge pull request #61 from northtyphoon/bindu/readme
...
fix the typo in --cache-to example
2019-05-06 14:15:25 -07:00
Tibor Vass and GitHub
bbbbc2ca4b
Merge pull request #58 from tiborvass/readme-install
...
Update install instructions in README
2019-05-01 10:16:49 -07:00
Tibor Vass and Tibor Vass
93d21f1a86
Update install instructions in README
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-05-01 10:01:45 -07:00
Tibor Vass and GitHub
c7c08e10dd
Merge pull request #50 from docker/rename
...
rename to docker/buildx
2019-04-24 20:23:51 -07:00
Tibor Vass and GitHub
36dadf0170
Merge pull request #46 from tonistiigi/dockerfile-default
...
dockerfile: set binaries target as default
2019-04-24 18:08:41 -07:00
Tibor Vass and GitHub
24e4baf9e7
Merge pull request #47 from tonistiigi/version
...
commands: add version command
2019-04-24 18:08:31 -07:00
Tibor Vass and GitHub
936d1d34b4
Merge pull request #48 from tonistiigi/release-target
...
dockerfile: add release target
2019-04-24 18:05:26 -07:00
Tibor Vass
24480fa600
Make it easier to use ssh inside demo env
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-04-24 17:54:06 +00:00
Tibor Vass and GitHub
01b97022fc
Merge pull request #43 from tiborvass/apiversion-negotiate
...
Negotiate API versions to allow talking with older docker daemons
2019-04-23 15:53:37 -07:00
Tibor Vass and GitHub
0f1568746f
Merge pull request #42 from tonistiigi/docker-endpoint
...
commands: fix using ssh endpoint directly
2019-04-23 15:51:20 -07:00
Tibor Vass
f10c9a5de1
Negotiate API versions to allow talking with older docker daemons
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-04-23 22:32:16 +00:00
Tibor Vass and GitHub
02d0474e04
Merge pull request #38 from tonistiigi/bake-defaults
...
bake: fix dockerfile and context defaults
2019-04-22 15:58:55 -07:00
Tibor Vass and GitHub
135503e1a5
Merge pull request #39 from tonistiigi/commands-fixes
...
commands: environment detection validation
2019-04-22 15:04:48 -07:00
Tibor Vass and GitHub
6e3dfe72cb
Merge pull request #31 from tonistiigi/platforms-fixes
...
fixes for managing platforms
2019-04-18 20:11:28 -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
635e393ae5
build: handle --network
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-04-17 04:25:54 +00:00
Tibor Vass
77ed999572
build: handle --add-host
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-04-17 04:25:54 +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
Tibor Vass and GitHub
037af0e3dd
Merge pull request #26 from tiborvass/fix-network-flag-bug
...
build: do not error out if --network is default
2019-04-16 17:09:22 -07:00
Tibor Vass
81b35147e4
build: do not error out if --network is default
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-04-16 23:37:23 +00:00
Tibor Vass and GitHub
b6de0fa0ff
Merge pull request #24 from tonistiigi/hidden-flags
...
commands: add missing flags as hidden in build
2019-04-16 15:34:31 -07:00
Tibor Vass
bd7ada6593
driver: automatically export image to MobyDriver
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-04-12 01:11:31 +00:00
Tibor Vass and GitHub
f0142b9e8b
Merge pull request #15 from tonistiigi/output-parsing
...
fix and improve outputs parsing
2019-03-27 20:09:03 -07:00
Tibor Vass and GitHub
3f4b9e1fcc
Merge pull request #9 from tonistiigi/vendor-dockerfile
...
hack: update vendor dockerfile
2019-03-25 14:35:23 -07:00
Tibor Vass and GitHub
80f7fa8f3b
Merge pull request #8 from tonistiigi/build-base
...
build: basis of build command
2019-03-25 14:16:06 -07:00
Tibor Vass
bf49d64913
travis: temporarily only build for linux/amd64 and darwin/amd64
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-03-23 02:54:48 +00:00
Tibor Vass and GitHub
c39345c42b
Merge pull request #5 from tonistiigi/tmux-optional
...
hack: make tmux optional for shell
2019-03-22 19:50:52 -07:00
Tibor Vass and GitHub
252ab3e103
Merge pull request #3 from tonistiigi/add-travis
...
add travis
2019-03-22 18:55:04 -07:00
Tibor Vass and GitHub
3467b6ab35
Merge pull request #2 from tonistiigi/cross
...
hack: add cross target
2019-03-22 18:06:38 -07:00
Tibor Vass and GitHub
f7d5b2c7ca
Merge pull request #1 from tonistiigi/dockerignore
...
Add bin/ to .dockerignore
2019-03-22 18:01:56 -07:00
Tibor Vass
8cb9806f08
Add bin/ to .dockerignore
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2019-03-23 00:37:44 +00:00