-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use podman instead of docker when available
Docker introduced BuildKit in 2017, and made it default on Linux in 2023. BuildKit requires completely new API during client-server communication. docker-py Python bindings is communicating with server directly, and has not been made aware of this new API - see docker/docker-py#2230 . To fix DISCOVERY-435, we wanted to use build-time secrets. This feature requires BuildKit, and therefore is not available in pytest unit tests that use docker-py library. To workaround this problem, we use DOCKER_HOST variable pointing to podman socket file. Podman is compatible with old Docker API, but still supports some of newer build features provided by BuildKit. This way we can use build-time secrets while still using old API. Podman will be used only if podman is installed and socket file exists. Developers without podman should not need to change their system, although they will notice failures in `make test-integration`.
- Loading branch information
1 parent
ccd96b1
commit 7244574
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters