nathan wagner
4d142d8b45
doing it
1 year ago
CrazyMax
b1c5449428
builder: skip name validation for docker context
...
Although a builder from the store cannot be created unless
it has a valid name, this is not the case for a Docker context.
We should skip name validation when checking a node from the
store and fall back to finding one from Docker context instead.
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
e14e0521cf
Merge pull request #1732 from milas/builder-init-panic
...
builder: extra init error handling
2 years ago
Milas Bowman
14f5d490ef
builder: extra init error handling
...
* Return errors from creating the `NodeGroup`
* Ensure that `b.NodeGroup != nil` before reading from
it during validation
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2 years ago
CrazyMax
200058b505
build: support for saving local state by build ref
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2 years ago
CrazyMax
0e544fe835
builder: fix docker context not validated
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
8c47277141
store: set nodegroup last activity
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
36b5cd18e8
store: use constants for directory names
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
fa58522242
store: skip DockerContext field from being saved
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
ebdd8834a9
builder: fix default docker context behavior
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
63073b65c0
dockerutil pkg to manage docker api client and context
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
Sebastiaan van Stijn
aa21ff7efd
store: move regex to where it's used
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2 years ago
Justin Chadwell
ef0cbf20f4
buildx: warn on editing nodes
...
Previously, editing nodes to contain a new set of driver options or
config files was unsupported, and silently dropping them. In this patch,
we update with these, as well as add a new warning message that any new
options may not taken into account until the builder restarts (which
may apply to the flags, platforms and endpoints as well).
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
86825a95ce
buildx: rollback configuration if create fails
...
This builds on the added warnings from initialized builders, now
erroring the command, and additionally attempting to revert to the
previous configuration.
To preserve the previous configuration, we add a deep Copy() function to
the NodeGroup and Node so that we can easily restore it later if we
encounter a failure.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Sebastiaan van Stijn
fc7ba75fd7
Remove uses of deprecated io/ioutil
...
The package has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
3 years ago
Tonis Tiigi
e98a476dc8
set build-args from docker proxy configuration
...
For backward compatibility with docker build.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Tonis Tiigi
c62472121b
allow multi-node push and imagetools to use custom registry config
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Tonis Tiigi
88d0775692
refactor accessing registry configs via drivers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Tonis Tiigi
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>
3 years ago
CrazyMax
ef95f8135b
Use `ioutils.AtomicWriteFile` from moby
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
4 years ago
Ilya Dmitrichenko
4b2aab09b5
Allow users to have separate store paths
...
- decouple store path from `$DOCKER_CONFIG`
- improve containerised build setup
- introduce new `$BUILDX_CONFIG` environment variable
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
4 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
Tonis Tiigi
75b80c277f
driver: allow setting driver opts
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
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
Tonis Tiigi
f0af89a204
driver: allow configuring buildkitd flags
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
94a0422a1b
rename to docker/buildx
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
e40318e2cc
commands: add platforms dedupe
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
f7dac5a178
commands: fix invalid reload on boot
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
0f4de0d7e4
commands: implement ls
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
bd3d5cd19e
commands: add implementations for create, use, rm, stop
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
0e72bf0049
store: add implementation
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago