DockerCLI/e2e
Sebastiaan van Stijn 4f35b26d40
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>
2024-01-24 17:27:25 +01:00
..
cli-plugins load plugin command stubs when required 2023-03-31 16:38:01 +02:00
container bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01: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 cmd/docker: fix typo in deprecation warning 2022-12-19 13:03:28 +01:00
internal/fixtures format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
plugin format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
stack cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01: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.12 2023-12-06 01:43:07 +01:00
trust bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
compose-env.connhelper-ssh.yaml e2e: update to use compose v2, and don't depend on distro-packages 2024-01-24 17:27:25 +01:00
compose-env.experimental.yaml e2e: update to use compose v2, and don't depend on distro-packages 2024-01-24 17:27:25 +01:00
compose-env.yaml e2e: update to use compose v2, and don't depend on distro-packages 2024-01-24 17:27:25 +01:00