silogy-io / smelt

smelt is a library to create, execute and analyze integration tests
Apache License 2.0
25 stars 0 forks source link

Support for remote docker #69

Closed pkkim closed 4 months ago

pkkim commented 4 months ago

This PR allows the client to choose between "local" mode and "remote" mode for Docker. In local mode, which was the only choice until now, a directory that is to be mounted into the test container is created, and populated with a script to be run. Smelt then writes the stdout and stderr from the test into a log file in that directory, in addition to sending logging events. In remote mode, none of this happens. This is intended for use in settings where the Docker daemon is running on a separate machine, in which case it's impossible to mount files on the local drive to the container.

To do: Let the user choose between remote and local mode, right now remote is hardcoded for development purposes.

1024bees commented 4 months ago

the prepare_workspace compatibility is the only thing blocking this, looks good otherwise