DockerCLI/e2e
Sebastiaan van Stijn 2e86812d7a
e2e: update to use compose v2, and don't depend on distro-packages
We were depending on alpine's package repository to install compose,
but for debian we used compose's GitHub releases. Depending on distro
packages means that we don't know when updates will happen, and versions
may diverge because of that; for example, alpine 3.18 updated to compose
v2;

On alpine 3.17:

    make -f docker.Makefile build-e2e-image
    docker run --rm docker-cli-e2e docker-compose --version
    docker-compose version 1.29.2, build unknown

On alpine 3.18:

    make -f docker.Makefile build-e2e-image
    docker run --rm docker-cli-e2e docker-compose --version
    Docker Compose version v2.17.3

This caused our e2e script to fail, as it made assumptions about the name
format created by compose, which changed from underscores to hyphens in v2;

    Container cliendtoendsuite-engine-1  Running
    Error: No such object: cliendtoendsuite_engine_1

This patch:

- updates the Dockerfile to install compose from the compose-bin image
- adjusts the e2e script for the new naming scheme format
- removes the version field from the compose-files used in e2e, as they
  are no longer used by compose.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9e424af5da)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-28 14:29:27 +02:00
..
cli-plugins load plugin command stubs when required 2023-03-28 06:16:55 +02:00
container cli/container: Don't ignore error when parsing volume spec 2023-07-15 00:06:57 +02:00
context cli/command/context: context ls: add ERROR column, and don't fail early 2022-11-28 16:52:02 +01:00
global change TestNewAPIClientFromFlagsWithHttpProxyEnv to an e2e test 2021-07-28 22:33:12 +02:00
image e2e: Update alpine to 3.17.2 2023-04-27 10:58:02 +02:00
internal/fixtures update golangci-lint to v1.54.2 2023-08-29 14:22:46 +02:00
plugin format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
stack test/e2e: Use "frozen" tag to reference test images 2023-04-27 10:57:57 +02:00
system bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
testdata update to go1.20.8 2023-09-13 17:49:18 +02:00
trust e2e: Skip tests with platform-specific digests on other platforms 2023-04-27 10:57:56 +02:00
compose-env.connhelper-ssh.yaml e2e: update to use compose v2, and don't depend on distro-packages 2023-09-28 14:29:27 +02:00
compose-env.experimental.yaml e2e: update to use compose v2, and don't depend on distro-packages 2023-09-28 14:29:27 +02:00
compose-env.yaml e2e: update to use compose v2, and don't depend on distro-packages 2023-09-28 14:29:27 +02:00