testcontainers-rs icon indicating copy to clipboard operation
testcontainers-rs copied to clipboard

CI with `--all-features` and `--no-default-features`

Open pbillaut opened this issue 3 years ago • 2 comments

Fix #399.

pbillaut avatar Sep 15 '22 19:09 pbillaut

Thanks!

This is great. I am not sure why the tests are failing though. Have they been broken all this time?

To merge this, we will also need to extend the jobs in bors.toml, otherwise bors will listen for jobs that are never going to run.

Hey, the tests are failing since the Http client needs the Docker daemon to run with Remote API Access enabled. This can for example be achieved by starting the Docker daemon like this:

dockerd --host fd:// --containerd=/run/containerd/containerd.sock --host tcp://127.0.0.1:2375

By default, and thus on the GitHub worker, Remote API Access is not enabled and that's why we're seeing connection refused errors. I'm currently experimenting with running Docker-in-Docker to provide the Remote API Access on the worker via a dockerized Docker daemon.

pbillaut avatar Sep 16 '22 13:09 pbillaut

Instead of running another Docker container that provides the Docker Remote API, it's simpler to just enable it via systemd, of course only exposed on localhost.

pbillaut avatar Sep 24 '22 11:09 pbillaut