Skip to content

support for bring your own container#813

Open
real-danm wants to merge 1 commit intomainfrom
dan/byoc-proxy
Open

support for bring your own container#813
real-danm wants to merge 1 commit intomainfrom
dan/byoc-proxy

Conversation

@real-danm
Copy link
Copy Markdown
Contributor

This is an Enterprise only feature.

This PR adds support for bring-your-own-container on cloud agents. Currently only supports docker daemon or an OCI image tarball from a docker save.
I did not want to exec out to try and use docker on the cli, so instead attempting to connect to the docker socket directly and also normalize the image name. This ended up requiring more changes than expected, but seems to be working pretty well in testing.

This supports both macos/linux and respects the DOCKER_HOST env var, otherwise will look for standard docker installs.
Uses crane library to push to cloud agent servers.
Other runtimes that have a Docker-compatible API, like podman, should be supported via setting the DOCKER_HOST env var.

NOTE: probably need some polish around the lk a create --image xyz workflow. if the push fails, there is a dangling agent record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant