511e41386f
driver(docker): opt to set additional dial meta to the client
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-10-17 01:01:17 +02:00
5836c24e7d
driver: move Features and HostGatewayIP to specific driver
...
Adds a new HostGatewayIP entry in the Driver interface so we can
move Features and HostGatewayIP handling with cache to the very
specific driver (docker).
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-10-17 00:45:50 +02:00
22e9e3342b
Revert "Introduce a client interface, to abstract from buildkit client."
...
This reverts commit 2aa6d52b06
.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com >
2023-10-11 22:13:23 +02:00
2aa6d52b06
Introduce a client interface, to abstract from buildkit client.
...
This will allow further enhancement like caching remote driver responses.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com >
2023-10-06 14:24:04 +02:00
f54a67de6d
enable trace delegation for docker/remote driver
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2023-09-05 22:04:57 -07:00
1138789f20
avoid extra client for history API detection
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2023-06-12 17:39:09 -07:00
8c65e4fc1d
driver: add context to Features interface
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-05-30 20:13:18 +02:00
9b723ece46
driver: check history capability
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-05-30 20:13:17 +02:00
60e72ba989
driver: update BuildKit version constraint for docker driver
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-05-10 14:43:24 +02:00
bebd244e33
docker: fix connection leak on features check
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2023-05-07 21:58:19 -07:00
1b816ff838
driver: update BuildKit version constraint for docker driver
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-04-11 11:10:01 +02:00
81d7decd13
driver: resolve BuildKit version for docker driver
...
Buildx currently returns the Docker Engine version for the docker driver
and it can be confusing. This is because BuildKit before 0.11 version does
not support the Info API that returns the BuildKit version.
This change resolves the BuildKit version from the Docker engine one.
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-03-30 15:52:29 +02:00
3bc7d4bec6
enable other exporters if docker driver uses containerd
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-08-09 14:16:30 -07:00
1d8db8a738
detect moby worker supports multiplatform feature through containerd snapshotter
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2022-08-09 14:41:08 +02:00
57156ee95c
ls: adds fallback if buildkit version info unimplemented
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-05-09 16:17:30 +02:00
d7e4affe98
Complete remote driver
...
This patch completes the work started in creating a remote driver:
- Renames the env driver to the remote driver (an alternative suggestion
that should be more user-friendly)
- Adds support for TLS to encrypt connections with buildkitd
- Fixes outstanding review comments
- Reworks the buildx create command endpoint construction to be clearer
and include better support for this new driver.
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-04-28 11:34:06 +01:00
72dab552b5
Add an option to buildx rm to keep the buildkitd daemon running
...
Add --keep-daemon to the `rm` command option to preserve the buildkitd daemon after the buildx context is deleted.
Signed-off-by: Mayeul Blanzat <mayeul.blanzat@datadoghq.com >
2021-11-22 13:24:47 +01:00
4c1621cccd
store snapshot of config files on create
...
Files can be reused when container needs to be booted again.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-11-03 16:34:43 -07:00
2644d56a6d
docker: dial session directly with http hijack
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-10-20 18:54:31 -07:00
258d12b2e7
Keep BuildKit state in a volume
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-07-13 18:09:35 +02:00
f68f42cb11
build: add push support to docker driver
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2020-12-08 13:54:41 -08:00
232af9aa0d
move moby check to driver interface
...
Driver caching masked the method detection
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2020-12-07 22:02:51 -08:00
378bf70d4b
refactor driver auth for easier passing
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2020-11-15 20:49:58 -08:00
3b69482a2f
docker-container: ensure credentials are passed when pulling buildkit image
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2020-11-04 13:04:04 -08:00
2d720a1e0b
vendor: update buildkit with typed errors support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2020-09-13 21:28:20 -07:00
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 >
2019-07-31 15:08:26 -07:00
94a0422a1b
rename to docker/buildx
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-04-24 20:02:20 -07:00
5ddd3d2459
driver: remove unused version
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-04-23 21:18:40 -07:00
bd3d5cd19e
commands: add implementations for create, use, rm, stop
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-04-15 15:31:29 -07:00
0788035da8
driver: add feature testing
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-04-10 19:09:42 -07:00
68cad8e46b
driver: add docker driver
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-04-10 18:58:19 -07:00
6469b05e33
driver: rename docker to docker-container
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-04-10 18:58:19 -07:00
15dae19cf8
driver: add client method
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-03-26 11:37:07 -07:00
a6d893efca
driver: add logging support to bootstrap
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-03-26 11:36:16 -07:00
f302881c0d
driver: start implemeting bootstrap for docker
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-03-25 19:02:20 -07:00
49f67b7e96
driver: docker driver base
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2019-03-25 19:02:20 -07:00