exasol / integration-test-docker-environment

A docker-based environment for integration tests with the EXASOL DB.
https://exasol.github.io/integration-test-docker-environment/
MIT License
6 stars 2 forks source link

Detect Docker flavor #301

Closed ckunki closed 1 year ago

ckunki commented 1 year ago

Currently ITDE uses docker_exec to access the Docker Container, e.g. to analyze the content of some logfiles. With version 8 and higher the format of the Docker Containers might change so that docker_exec is no longer possible. Instead ITDE will then need to use SSH access.

The current ticket therefore requests to detect the version number of the Exasol database inside the Docker Container and to decide whether to use docker_exec or SSH access.

This could be implemented for example by creating a new luigi task.

AC

  1. IDTE detects the version of the Exasol database in the Docker Container and makes the result available to method register_required().
ckunki commented 1 year ago

Discussion with @tkilias: We currently cannot predict the precise version number that will indicate that SSH access is required in future. Therefore we will plan to add another individual parameter (cli- or api) to switch between docker_exec and SSH access. By this we can use SSH access with arbitrary docker images.

We plan to inject file /root/.ssh/authorized_keys as separate docker volume for directory /root/.ssh/.