Commit Graph

189 Commits (b14bfb9fa26f940509f0ea5650b7343492dc0d15)

Author SHA1 Message Date
Justin Chadwell 297526c49d docs: add experimental options to build command reference
Signed-off-by: Justin Chadwell <me@jedevc.com>
Justin Chadwell 17d4369866 create: improve interface when attempting to create docker driver
Previously, the help information for buildx indicated that users could
create a new instance of the docker driver - which is explicitly
something we don't support, driver of this form are automatically
derived from the available list of docker contexts.

This patch ensures that don't have AllowsInstance set will not appear in
the help text, and additionally provide a new more specific error
message instead of the generic "failed to find driver". This should help
point users in the correct direction.

Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 7d8a6bc1d7
bake: load .env file from working dir for compose files
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 64ac6c9621
Merge pull request from crazy-max/x-bake-miss
bake: contexts support with x-bake
CrazyMax a7753ea781
Merge pull request from jedevc/prune-all-help
docs: add correct definition of prune --all flag
Justin Chadwell 12a6eb5b22 docs: add correct definition of prune --all flag
The previous definition was the same as the docker images prune command
and referenced dangling images, which isn't what the command does. This
commit brings the command description more inline with the buildctl
definition.

Additionally, add some more description of what the various flags do in
our reference pages.

Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 7f572eb044
bake: contexts support with x-bake
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax cceb1acca8
docs: fix dead link to color output controls guide
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 1f6612b118
Merge pull request from jedevc/imagetools-multiple-repositories
Imagetools multiple repositories
CrazyMax 7ef679d945
bake(compose): allow dot in target name
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Justin Chadwell 06c11ecb61 docs: add minimal docker driver docs
Mostly for completeness, this patch adds basic documentation for the
docker driver.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Justin Chadwell 4ecca34a42 imagetools: give imagetools create a progress bar
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 0222b74ee1
docs: fix link to docs website
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 47ea0c5b03
docs: fix link
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 264451ba18
Merge pull request from jedevc/drivers-guides
Enhanced driver guides
Justin Chadwell a42eb73043 docs: add further reading section for drivers
Signed-off-by: Justin Chadwell <me@jedevc.com>
Justin Chadwell f2b504b77d docs: add basic docker-container driver guide
Signed-off-by: Justin Chadwell <me@jedevc.com>
Justin Chadwell 68ef5b9c9b docs: create dedicated drivers section
Create a dedicated folder for information on drivers, and write a new
index.md with content adapted from the README, and a new feature
comparisons table.

Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 07992e66e0
Merge pull request from crazy-max/docs-experimental-note
docs(bake): set experimental note
CrazyMax 4522331229
docs(bake): set experimental note
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax ec1ba14f3e
Merge pull request from crazy-max/docs-fix-bake-fields
docs(bake): fix target fields and show type
CrazyMax 1324827cd5
docs(bake): fix target fields and show type
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax dd445e5f9b
docs: update cli-docs-tool to v0.5.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 1c7088ee42
docs: remove frontmatter section
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 20022fd441
docs(guide): color output controls
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax ff57ae1705
docs: replace links with ones from docs.docker.com
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 7eb1235629
Merge pull request from crazy-max/fix-docs-links
docs(guides): fix links
Tõnis Tiigi bea1ac296c
Merge pull request from deitch/oci-layout-support
add support for oci-layout build-context
CrazyMax 2df799d331
docs(guides): fix links
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax fecc6958cb
Merge pull request from jedevc/kubernetes-builder-docs
docs: add new kubernetes build driver docs
Avi Deitcher 02bae945c3 add support for oci-layout build-context
Signed-off-by: Avi Deitcher <avi@deitcher.net>
Justin Chadwell 900f356df9 docs: add new kubernetes build driver docs
Signed-off-by: Justin Chadwell <me@jedevc.com>
Batuhan Apaydın f69c62f07a
fix: correct determnistic word
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Justin Chadwell 881b48a3b6 docs: fixup remote builder typos
- Ensure that buildx is always used as a docker subcommand
- Correct invalid buildx ls output

Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax f40c2dbb86
docs: rework bake compose file definition
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax ff9517cbf0
docs: rework bake "Configuring builds" page
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 824b0268d8
docs: bake specification intro
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 77ea999adb
docs: guide page to configure bake builds
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 1807cfdd26
docs: changes to bake file definition guide
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax ebd7d062bf
docs: bake guides and refactor reference
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 71e4a39ae9
Merge pull request from jedevc/remote-driver-connhelpers
Remote driver connhelpers
Justin Chadwell 1406ff141b docs: add connhelpers info to remote-builder guide
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 81ce766501
Merge pull request from photra/clarify-inspect-docs
Clarify inspect documentation
Justin Chadwell d69fe6140d docs: fix typo in docker-container remote driver instructions
Signed-off-by: Justin Chadwell <me@jedevc.com>
Phong Tran 5a8060ea9f Clarify inspect documentation
Signed-off-by: Phong Tran <tran.pho@northeastern.edu>
CrazyMax 69824a5d27
Merge pull request from crazy-max/default-conf
create: load default buildkit config if none specified
CrazyMax 8257a04a7d
create: load default buildkit config if none specified
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax cab4cfe28f
ci: bump docker actions to latest major
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Justin Chadwell a2f1de6459 Add remote driver guide
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 1edfb13ba8
docs: update ls output example
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 27bdbea410
Merge pull request from crazy-max/fix-guides
docs: fix guides for docs.docker.com
CrazyMax cf298ee01c
docs: fix guides for docs.docker.com
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Justin Chadwell f2fc0e9eb5 Add remote driver documentation
Signed-off-by: Justin Chadwell <me@jedevc.com>
Zsolt 4a226568a0 Fix tolerations not parsing its options correctly, add tests
Signed-off-by: Zsolt <zsolt.szeberenyi@figured.com>
Akihiro Suda add4301ed6
kubernetes: replace deprecated seccomp annotations with securityContext
Kubernetes added the official `securityContext.seccompProfile` support in Kubernetes 1.19.
Seccomp is still disabled by default.

The legacy `container.seccomp.security.alpha.kubernetes.io/<PODNAME>` annotation has been deprecated and will be unsupported in Kubernetes 1.25.
https://kubernetes.io/docs/tutorials/security/seccomp/

A test cluster can be created with the following minikube command:
```
minikube start --feature-gates SeccompDefault=true --extra-config kubelet.seccomp-default=true
```

Related to moby/buildkit PR 2782

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Zsolt 3f6517747e Add support for defining kubernetes tolerations
Signed-off-by: Zsolt <zsolt.szeberenyi@figured.com>
CrazyMax 824cb42fe0
dockerfile: update frontend to 1.4
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 1416bc1d83
Merge pull request from crazy-max/imagetools-inspect-order
imagetools inspect: keep platform order
CrazyMax 215a128fc1
imagetools inspect: missing manifest digest for manifest-list (json)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 94c5dde85a
docs: small fixes
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 20a55e9184
imagetools inspect: multi-platform support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 6c56109083
imagetools inspect: add --format flag
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 9867ca279a
docs: update cli-docs-tool to v0.4.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi e871c39f05
Merge pull request from crazy-max/inline-buildattrs
build: inline buildinfo attrs
CrazyMax 9ee499ae27
docs: metadata-file usage
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 230dfa96a3
docs: built-in build args
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax f1a8f54c83
docs: user guides
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 2bcf3524e5
docs: ssh usage example
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 26918513e3
docs: lint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 4b633c3c7b
docs: built-in build args
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tonis Tiigi 32f6358d78 bake: add no-cache-filter
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 3b47722032 build: add no-cache-filter
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
CrazyMax b39ebab666
docs: secret usage examples
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 60a025b227
Merge pull request from tonistiigi/bake-named-contexts
bake: add named contexts keys
Tõnis Tiigi 595285736c
Merge pull request from crazy-max/rm-inactive
cli: add --all-inactive for rm command
CrazyMax 378f0b45c6
cli: add --all-inactive and --force flags for rm command
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tonis Tiigi c3dab802d8 docs: add examples for bake named contexts
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 0fc2b5ca85 bake: add named contexts keys
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 08547827db docs: add docs for -build-context
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sebastiaan van Stijn 202e99695b
Merge pull request from crazy-max/docs-git-protoc
docs: fix git protocol
Wojciech M 42287815b5 add note about variable syntax in json
In addition to HCL, variables can also be defined in json.

Signed-off-by: wojciechem <wmiedzybrodzki@outlook.com>
CrazyMax 61627c2ece
docs: fix git protocol
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 316ca972b6
bake: fix print output
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 89334a88a9
Merge pull request from crazy-max/fix-flags
cli: fix flags usage
Mayeul Blanzat 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>
CrazyMax a0a7db127c
cli: fix flags usage
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax a2c7d43e46
fix typo in docs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax eab0e6a8fe
cli: fix builder persistent flag
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 49342dd54d
Merge pull request from crazy-max/inject-certs
container driver: copy ca and user tls registries certs
CrazyMax 3f716f00fa
container driver: copy ca and user tls registries certs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax dd15969c93
build: add cgroup-parent support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 25d2f73858
build: warning on deprecated flags
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax e150d7bdd8
add long description to root command
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 8e5595b7c7
build: add shm-size support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax b89e2f35df
build: add ulimit support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 461369748c
Merge pull request from djs55/cgroup-parent
docker-container: place build containers in a separate cgroup
David Scott d5908cdddf docker-container: use /docker/buildx cgroup by default
This allows resource limits to be applied to all builds on a host.
For example to limit the total amount of CPU used by builds:

https://medium.com/@asishrs/docker-limit-resource-utilization-using-cgroup-parent-72a646651f9d

Signed-off-by: David Scott <dave@recoil.org>
David Scott b5bc754bad docker-container: support --driver-opt cgroup-parent=...
This allows the parent cgroup to be customised, which allows resource
limits to be imposed on build containers separately from "user"
containers.

Signed-off-by: David Scott <dave@recoil.org>
CrazyMax 9e62c9f074
Fix --driver flag usage markdown output
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Sebastiaan van Stijn 773fac9a73
docs: fix some broken anchors
- ./_site/engine/reference/commandline/buildx_build/index.html
      *  linking to internal hash #--buildkitd-flags-flags that does not exist (line 904)
         <a href="/engine/reference/commandline/buildx_create/#--buildkitd-flags-flags"></a>
    - ./_site/engine/reference/commandline/buildx_create/index.html
      *  linking to internal hash #--buildkitd-flags-flags that does not exist (line 350)
         <a href="#--buildkitd-flags-flags"></a>
      *  linking to internal hash #--config-file that does not exist (line 336)
         <a href="#--config-file"></a>
      *  linking to internal hash #--config-file that does not exist (line 336)
         <a href="/engine/reference/commandline/buildx_build/#--load"></a>
      *  linking to internal hash #--load that does not exist (line 369)
         <a href="/engine/reference/commandline/buildx_build/#--load"></a>

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>