Skip to content

Conversation

@euanh
Copy link
Contributor

@euanh euanh commented Jan 24, 2025

There are now many alternative container runtimes. These often expose a socket interface which is compatible with the docker CLI, but may also have their own command line utilities. For our limited requirements, these alternative CLIs are often compatible enough with the docker CLI that we can use them directly.

This PR adds an environment variable to allow users running alternative container runtimes to use their CLIs directly when building SDKs, removing the need to have the docker CLI tools installed as well. I've tested the generator with podman; it produced identical SDKs to the current implementation (#171), with good performance.

The docker CLI is currently still required to run the SDK generator tests.

@euanh euanh added the enhancement New feature or request label Jan 24, 2025
@euanh euanh requested a review from MaxDesiatov as a code owner January 24, 2025 09:20
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

There are now many alternative container runtimes.   These often
expose a socket interface which is compatible with the `docker`
CLI, but may also have their own command line utilities.   For our
limited requirements, these alternative CLIs are often compatible
enough with the `docker` CLI that we can use them directly.

This PR adds an environment variable to allow users running alternative
container runtimes to use their CLIs directly when building SDKs,
removing the need to have the `docker` CLI tools installed as well.
I've tested the generator with `podman`; it produced identical SDKs
to the current implementation (swiftlang#171), with good performance.

The `docker` CLI is currently still required to run the SDK generator
tests.
@euanh euanh force-pushed the alternative-container-runtimes branch from 293ad6b to fd4492e Compare January 24, 2025 10:32
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

@euanh euanh merged commit aef48de into swiftlang:main Jan 24, 2025
3 checks passed
@euanh euanh deleted the alternative-container-runtimes branch January 24, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants