CrazyMax
3d49bbd23a
Merge pull request #1749 from docker/dependabot/github_actions/docker/bake-action-3
...
build(deps): Bump docker/bake-action from 2 to 3
2 years ago
dependabot[bot]
33b1fdbf39
build(deps): Bump docker/bake-action from 2 to 3
...
Bumps [docker/bake-action](https://github.com/docker/bake-action ) from 2 to 3.
- [Release notes](https://github.com/docker/bake-action/releases )
- [Commits](https://github.com/docker/bake-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/bake-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Justin Chadwell
de4cdab411
Merge pull request #1747 from jedevc/only-capture-result-for-controller
...
controller: only capture the result when invoked through a controller
2 years ago
Justin Chadwell
a7e471b7b3
controller: only capture the result when invoked through a controller
...
This ensures that the code used to capture and evaluated a result is
only executed when built through the controller. Otherwise, no build
result should be recorded.
This ensures that new code added to capture and store the build result
for debugging isn't used when BUILDX_EXPERIMENTAL is not set.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
ba6e5cddb0
Merge pull request #1745 from jedevc/remote-unneccessary-exec-server-name
...
monitor: update check for exec args
2 years ago
Justin Chadwell
e4ff82f864
monitor: update exec failure message when no args are passed
...
"exec" does not take a server name, so we can rename the error check
here.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
48b733d6da
Merge pull request #1740 from jedevc/resolve-paths-context-dockerfile
...
build: avoid resolution of dockerfile if context is remote
2 years ago
Justin Chadwell
0b432cc5f2
Merge pull request #1640 from ktock/monitor-invoke-mode-restore
...
monitor: add `debug-shell` and `on-error`
2 years ago
Justin Chadwell
f6cccefffc
build: avoid resolution of dockerfile if context is remote
...
In 566f41b598
, we added a check to ensure
that we avoid resolving http URLs for Dockerfile. However, we have
another circumstance we should not resolve the path in - if the context
is a remote context, the dockerfile is resolved in that context (see
build.go#LoadInputs for more information).
Therefore, we should only resolve the dockerfile to a local directory if
the context is also resolved to a local directory.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Kohei Tokunaga
fd5d90c699
remove unused fields from ResultContext
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Kohei Tokunaga
06399630a2
remove ResultContextError
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Kohei Tokunaga
20693aa808
Fix monitor to be aware of Inspect API and invokations from errors
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Kohei Tokunaga
f373b91cc3
Add flags and subcommand
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Kohei Tokunaga
ce48b1ae84
Enable to restore build options from the server
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Kohei Tokunaga
b3340cc7ba
Enable to create container from error
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Kohei Tokunaga
1303715aba
Allow passing ResultContext from server to the client through grpcerror
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Justin Chadwell
b716e48926
Merge pull request #1734 from jedevc/more-ssh-context-fixes
...
Various context fixups
2 years ago
Justin Chadwell
7d35a3b8d8
Merge pull request #1733 from jedevc/use-dockerui-context-detection
...
Use dockerui context detection
2 years ago
Justin Chadwell
566f41b598
build: avoid file resolution of dockerfile urls
...
Dockerfiles can be HTTP URLs as well as local paths 🤦
We just copy the same logic we use for resolving context paths, and
apply it here as well.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
6c0547e7e6
bake: ensure remote files behind ssh expose agent
...
The updateContext function may make modifications to the build inputs,
creating either an SSH URL, or an SSH llb.State. In these cases, we need
to ensure that we appropriately expose the client's default agent.
Previously, we would only expose it if the remote context was a git URL,
however, we need to also ensure that if the input was used to override
the context (in the case of ReadRemoteFiles), that we expose the agent
here as well.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
871f865ac8
bake: update ReadRemoteFiles to use buildkit api
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
62a21520ea
vendor: update buildkit to master@333ee9158128
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
CrazyMax
672eeed9a6
Merge pull request #1731 from crazy-max/update-moby-ver
...
driver: update BuildKit version constraint for docker driver
2 years ago
CrazyMax
1b816ff838
driver: update BuildKit version constraint for docker driver
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
10365ddf22
Merge pull request #1723 from docker/dependabot/github_actions/peter-evans/create-pull-request-5.0.0
...
build(deps): Bump peter-evans/create-pull-request from 4.2.4 to 5.0.0
2 years ago
dependabot[bot]
a28cb1491d
build(deps): Bump peter-evans/create-pull-request from 4.2.4 to 5.0.0
...
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request ) from 4.2.4 to 5.0.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases )
- [Commits](38e0b6e68b...5b4a9f6a9e
)
---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Justin Chadwell
1e149bb84f
Merge pull request #1722 from jedevc/bake-matrix-check-map-type
...
bake: fix map type checking to detect matrix property set to list
2 years ago
Justin Chadwell
9827abbf76
bake: fix map type checking to detect matrix property set to list
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
a3293cdaaa
Merge pull request #1720 from jedevc/bake-replace-func
...
Add `replace` function to bake stdlib
2 years ago
Justin Chadwell
f7d8bd2055
Merge pull request #1690 from jedevc/bake-matrix
...
Implement matrix for bake targets
2 years ago
Justin Chadwell
5d33a3af22
bake: add replace func to stdlib
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
87f900ce77
chore: sort bake stdlib map
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
CrazyMax
bb5c93cafc
Merge pull request #1719 from dvdksn/docs/update-readme-links
...
docs: prune links in README toc, add external reference
2 years ago
David Karlsson
c6ce0964b9
docs: prune links in README toc, add external reference
...
Signed-off-by: David Karlsson <david.karlsson@docker.com>
2 years ago
Justin Chadwell
5c21e80a83
Merge pull request #1711 from jedevc/bake-remote-file-git
...
bake: forward default ssh agent for remote bake file
2 years ago
CrazyMax
498cc9ba0a
Merge pull request #1715 from crazy-max/ci-restrict-repo
...
ci: check repo origin on push tag event
2 years ago
CrazyMax
805f3a199d
ci: check repo origin on push tag event
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
Justin Chadwell
91fdb0423d
Merge pull request #1713 from ktock/monitor-buildapi-options
...
controller: Extract nested CommonOptions on controller API
2 years ago
Kohei Tokunaga
8ba8659496
controller: Extract nested CommonOptions on controller API
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
Justin Chadwell
16e41ba297
Merge pull request #1710 from jedevc/use-buildkit-gitutil-parsegitref
...
Use buildkit's gitutil package to detect remote git files
2 years ago
Justin Chadwell
387ce5be7c
bake: forward default ssh agent for remote bake file
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
87a120e8e3
bake: use build.IsRemoteURL
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
589d4e4cf5
build: use buildkit's gitutil package to detect remote files
...
BuildKit's gitutil package behaves slightly differently than moby's
urlutil, so we should rely on BuildKit's gitutil when detecting URLs to
avoid cases of accidentally producing invalid build requests that can
confuse users.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
CrazyMax
6535f16aec
Merge pull request #1705 from docker/dependabot/go_modules/github.com/opencontainers/runc-1.1.5
...
build(deps): Bump github.com/opencontainers/runc from 1.1.4 to 1.1.5
2 years ago
Justin Chadwell
a1520ea1b2
bake: additional validation for matrixes
...
This adds the following constraints to the new features:
- Explicit renaming with the `name` property is *only* permitted when
used with the `matrix` property.
- Group does not support either `name` or `matrix` (we may choose to
relax this constraint over time).
- All generated names must be unique.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Tõnis Tiigi
0844213897
Merge pull request #1707 from crazy-max/fix-ls-docs
...
docs: update ls command output sample
2 years ago
CrazyMax
989ba55d9a
docs: update ls command output sample
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
33388d6ede
Merge pull request #1552 from crazy-max/moby-buildkit-version
...
driver: resolve BuildKit version for docker driver
2 years ago
dependabot[bot]
bfadbecb96
build(deps): Bump github.com/opencontainers/runc from 1.1.4 to 1.1.5
...
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc ) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases )
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.5/CHANGELOG.md )
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.4...v1.1.5 )
---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
CrazyMax
f815f4acf7
Merge pull request #1703 from jedevc/vendor-buildkit-master
...
Bump BuildKit to latest master
2 years ago