1
0
mirror of https://github.com/docker/compose-cli.git synced 2026-10-25 06:19:18 +03:00

237 Commits

Author SHA1 Message Date
Yves Brissaud
635db3c338 feat: display docker scout hints on build and pull
On `docker build` and `docker pull` commands, display a hint to
`docker scout quickview`.
Hints are disabled if quiet flag is used or if `DOCKER_SCOUT_HINTS`
environment variable is set to a false (according to Go) value:
  `0`, `f`, `F`, `false`, `FALSE`, `False`

In case of a `docker build` the `docker scout quickview` command doesn't
need an argument as it will take the most recently built image by
default.
In case of a `docker pull` the pulled image is extracted from the
command arguments.

Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
2023-06-06 11:38:55 +02:00
Milas Bowman
784377898f metrics: track and report non-aggregated events
Currently, "usage" reports are sent, which are aggregated.
Add "event" variant, which won't be aggregated.

For compatibility, the "usage" events remain and nothing has
changed in terms of how they parse the command args, for example.
This will ensure continued functioning of anything that relies
on these metrics.

For the "event" variants, the CLI parsing is slightly different
in an attempt to improve data analysis capabilities while still
being respectful of user privacy (i.e. only known values of Docker
CLI commands/flags are ever recorded). Additionally, execution
duration information is now reported with these events.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-02-08 14:17:04 -05:00
Milas Bowman
e821c36bcc build: upgrade to Go 1.19 & build tweaks
* Use Go 1.19 and latest golangci-lint
* Bump support libraries (i.e. everything that does not
  touch cloud / Compose)
* Dockerfile caching/performance improvements

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-02-01 16:04:49 -05:00
CrazyMax
668b262605 build metrics compatibility for next 22.06
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-27 17:03:03 +02:00
Guillaume Lours
1a01d2f198 update gotest.tools to v3.3.0 which support golang 1.18
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2022-07-25 12:20:42 +02:00
CrazyMax
1dce98712a Go 1.18
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-24 00:49:08 +02:00
dependabot[bot]
059ae18bf1 Bump github.com/containerd/containerd from 1.5.10 to 1.5.13
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.10 to 1.5.13.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.10...v1.5.13)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 22:13:28 +00:00
dependabot[bot]
fc129e4540 Bump github.com/containerd/containerd from 1.5.9 to 1.5.10
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.9 to 1.5.10.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.9...v1.5.10)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-03 13:35:50 +00:00
dependabot[bot]
772e4e6a36 Bump github.com/containerd/containerd from 1.5.8 to 1.5.9
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.8 to 1.5.9.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.8...v1.5.9)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 17:54:19 +00:00
Mathieu Champlon
03a84495e7 Bump compose to v2.2.0 and compose-go to v1.0.5
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
2021-11-24 07:11:22 +01:00
Mathieu Champlon
813ae99af5 Merge pull request #2107 from docker/dependabot/go_modules/github.com/opencontainers/image-spec-1.0.2
Bump github.com/opencontainers/image-spec from 1.0.1 to 1.0.2
2021-11-18 18:01:37 +01:00
dependabot[bot]
4b3eff0625 Bump github.com/containerd/containerd from 1.5.7 to 1.5.8
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.7 to 1.5.8.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.7...v1.5.8)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 16:50:09 +00:00
dependabot[bot]
c200acf768 Bump github.com/opencontainers/image-spec from 1.0.1 to 1.0.2
Bumps [github.com/opencontainers/image-spec](https://github.com/opencontainers/image-spec) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/opencontainers/image-spec/releases)
- [Changelog](https://github.com/opencontainers/image-spec/blob/main/RELEASES.md)
- [Commits](https://github.com/opencontainers/image-spec/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/image-spec
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 16:27:30 +00:00
Ulysses Souza
fd2ac4dbf9 Bump compose to v2.1.1
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-11-08 12:57:27 +01:00
Ulysses Souza
3ee02a474b Bump compose to v2.1.0
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-11-03 01:08:33 +01:00
Mathieu Champlon
bef0ecf171 Bump compose to 2.0.1
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
2021-10-27 08:26:49 +02:00
dependabot[bot]
fd131b2934 Bump github.com/containerd/containerd from 1.5.4 to 1.5.7
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.4 to 1.5.7.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.4...v1.5.7)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 20:47:10 +00:00
Ulysses Souza
dc7422e494 Merge remote-tracking branch 'upstream/main' into error-on-unsupported-flags 2021-09-17 14:55:29 +02:00
Ulysses Souza
fa7e0632ba Add checks for unsupported flags
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-09-17 10:19:02 +02:00
Nicolas De Loof
3665ac2256 depends on github.com/docker/compose/v2 new HOME
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-09-17 10:19:02 +02:00
Nicolas De Loof
07f6f804a9 use docker/compose/v2
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-09-17 10:19:02 +02:00
Ulysses Souza
572f76d857 Bump compose-go
This fixes project name's regexp

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-09-17 10:19:02 +02:00
Nicolas De Loof
7f5b3dad2e depends on github.com/docker/compose/v2 new HOME
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-09-02 09:58:26 +02:00
Ulysses Souza
9d341e7539 Merge pull request #2055 from ndeloof/main
use docker/compose/v2
2021-09-01 02:01:45 -07:00
Ulysses Souza
a2e25c67e3 Bump compose-go
This fixes project name's regexp

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-09-01 03:22:28 -03:00
Nicolas De Loof
bd5def8454 use docker/compose/v2
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-08-31 19:19:32 +02:00
Ulysses Souza
fedd20bab3 Bump compose-go
This fixes https://github.com/docker/compose-cli/issues/2017

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-08-26 10:10:18 -03:00
Ulysses Souza
4b642a494a Bump compose-go
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-08-24 16:38:48 -03:00
Lorena Rangel
2094c6784c Bump compose-go
Signed-off-by: Lorena Rangel <lorena.rangel@docker.com>
2021-08-09 20:03:24 +02:00
Ulysses Souza
28fe228fb6 Merge pull request #1954 from docker/dependabot/go_modules/github.com/containerd/containerd-1.5.4
Bump github.com/containerd/containerd from 1.5.0 to 1.5.4
2021-08-02 08:45:07 -07:00
dependabot[bot]
8b8e5218c3 Bump github.com/containerd/containerd from 1.5.0 to 1.5.4
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.0 to 1.5.4.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.0...v1.5.4)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 21:40:35 +00:00
Nicolas De Loof
12c2b470bc stop using helm fork for oras dependency conflict
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-07-22 17:48:49 +02:00
Nicolas De Loof
afc9cf8018 update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-07-22 17:22:51 +02:00
Ulysses Souza
43c4db439e Fix dotEnv load path precedence by compose-go bump
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-07-16 11:03:14 -03:00
Ulysses Souza
f4947b68e5 Bump compose-go
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-07-08 18:37:25 -03:00
Nicolas De Loof
41d5eb45b1 update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-07-02 15:02:41 +02:00
Nicolas De Loof
fc087a9e1d update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-07-02 13:34:27 +02:00
Nicolas De Loof
c280597b19 update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-30 15:36:49 +02:00
Nicolas De Loof
0e67d3a35e don't create unecessary resources
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-24 10:11:41 +02:00
Nicolas De Loof
d8d739307e test
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-24 10:11:01 +02:00
Sebastiaan van Stijn
5dbfcfd820 go.mod: update moby/term and Azure/go-ansiterm
Fixes an integer overflow when building on 32 bit windows/arm

- 9d4ed18562...3f7ff695ad
- 43e1dd70ce...59db8d763f

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-21 14:24:52 +02:00
Nicolas De Loof
37b62309af update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-17 12:22:41 +02:00
Nicolas De Loof
df9fa2d2d8 better interoperability with docker-compose on version label
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-16 14:40:33 +02:00
Nicolas De Loof
07357928d0 update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 16:40:36 +02:00
Sebastiaan van Stijn
c6c3e7111a go.mod: update moby/term to fix Invalid Standard Handle Panic on Windows
Changes:

- winterm: GetStdFile(): Added compatibility with "golang.org/x/sys/windows"
- winterm: fix GetStdFile() falltrough
- update deprecation message to refer to the correct replacement

full diff:

- bea5bbe245...9d4ed18562
- d6e3b3328b...2377c96fe7

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-10 14:54:23 +02:00
Nicolas De Loof
cb144ab09a update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-07 15:42:24 +02:00
Sebastiaan van Stijn
abffcdd082 go.mod: update docker and cli to v20.10.7
- diff: https://github.com/docker/docker/compare/v20.10.5...v20.10.7
- diff: https://github.com/docker/cli/compare/v20.10.6...v20.10.7

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-07 12:28:23 +02:00
Nicolas De Loof
17113dfcd3 update compose-go dependency
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-31 18:09:34 +02:00
Nicolas De Loof
de85b0624b support compose file set by COMPOSE_FILE env var
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-20 15:41:41 +02:00
Nicolas De Loof
e0ae9d21b4 pass authprovider to buildkit session in addition to driver's Auth parameter
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-07 11:49:20 +02:00