inspec / train

Transport Interface to unify communication over SSH, WinRM, and friends.
Apache License 2.0
119 stars 87 forks source link

LXC Transport #280

Closed thedrow closed 5 years ago

thedrow commented 6 years ago

Description

Specinfra allows users to test LXC containers by attaching to them and executing commands. Train should have the same feature.

Train and Platform Version

Not using train at the moment.

EDIT: (clintoncwolfe): Note that this was requested as of train 1.4.x

chris-rock commented 6 years ago

@thedrow Is this a feature request? Can you elaborate which use case you try to solve with pure lxc that is not covered by Docker?

thedrow commented 6 years ago

We're using LXC containers because they have far less features and thus far less attack vectors which is good for the product we're developing. We need to test them somehow and right now we're using serverspec.

zenspider commented 5 years ago

Is the SSH transport not sufficient for LXC?

Closing. Please reopen if you respond with any clarifying points.

thedrow commented 5 years ago

You may claim the same with Docker but that isn't true either. Not all containers have SSH. In fact, most shouldn't have.

davinerd commented 1 year ago

I'd also love to have such support. We disable SSH because it's not necessary. However, we would like to run inspec tests on them.

Right now what I have is a bash script that copies the controls in the container, install and run inspect, clean everything.

This is far than ideal.

I'd love to have a transport so we can do something like -t lxd://<container_name>.

Please consider reopening this issue.