Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify a container that can't be accessed via SSH #197

Open
walterdolce opened this issue Aug 17, 2018 · 0 comments
Open

Verify a container that can't be accessed via SSH #197

walterdolce opened this issue Aug 17, 2018 · 0 comments
Labels
Platform: Docker Type: Bug Doesn't work as expected.

Comments

@walterdolce
Copy link
Contributor

I just came across a use case whereby I have a container which hasn't got SSH or anything inside. The container image in question is Grafana's (5.2.2).

The workflow is currently as follow:

  • Use kitchen-docker as driver
  • During kitchen create, kitchen-docker will pick up a custom Dockerfile (via its dockerfile config param).
  • After kitchen create, the container is ready (there really is no need for provisioning anything here as everything happens when the container is built. In fact, the provisioner configured in .kitchen.yml is currently set as dummy).
  • Run kitchen verify, which will use kitchen-inspec.

But the following issues occur:

  • kitchen-inspec uses the SSH transport by default. But there's no SSH of sorts. The container is SSH-less.
  • kitchen-inspec can't be configured to be used the docker transport (aka backend). Add ability to specify 'backend' in runner options #196 supports this cause in addition to the one specified in there.
  • test-kitchen can't be configured to having a transport: docker. It would error saying a gem/library is needed.

While #196 gets some attention, what do you think would be the best thing to do here?

Thank you.

@zenspider zenspider added Platform: Docker Type: Bug Doesn't work as expected. labels Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Docker Type: Bug Doesn't work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants