{"id":21745149,"url":"https://github.com/zuazo/specinfra-backend-docker_nsenter","last_synced_at":"2026-05-14T21:33:25.797Z","repository":{"id":56896602,"uuid":"46490197","full_name":"zuazo/specinfra-backend-docker_nsenter","owner":"zuazo","description":"Serverspec / Specinfra backend for Docker nsenter execution driver.","archived":false,"fork":false,"pushed_at":"2016-01-03T19:02:21.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-03T15:18:47.144Z","etag":null,"topics":["backend","devops","docker","nsenter","serverspec","specinfra","specinfra-backend","tdd","testing"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/specinfra-backend-docker_nsenter","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zuazo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-19T12:15:19.000Z","updated_at":"2015-12-03T05:34:46.000Z","dependencies_parsed_at":"2022-08-21T01:50:10.037Z","dependency_job_id":null,"html_url":"https://github.com/zuazo/specinfra-backend-docker_nsenter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zuazo/specinfra-backend-docker_nsenter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_nsenter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_nsenter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_nsenter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_nsenter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuazo","download_url":"https://codeload.github.com/zuazo/specinfra-backend-docker_nsenter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_nsenter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33044141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","devops","docker","nsenter","serverspec","specinfra","specinfra-backend","tdd","testing"],"created_at":"2024-11-26T07:13:46.552Z","updated_at":"2026-05-14T21:33:25.780Z","avatar_url":"https://github.com/zuazo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Specinfra Docker `nsenter` Backend\n[![Gem Version](http://img.shields.io/gem/v/specinfra-backend-docker_nsenter.svg?style=flat)](http://badge.fury.io/rb/specinfra-backend-docker_nsenter)\n[![Dependency Status](http://img.shields.io/gemnasium/zuazo/specinfra-backend-docker_nsenter.svg?style=flat)](https://gemnasium.com/zuazo/specinfra-backend-docker_nsenter)\n[![Code Climate](http://img.shields.io/codeclimate/github/zuazo/specinfra-backend-docker_nsenter.svg?style=flat)](https://codeclimate.com/github/zuazo/specinfra-backend-docker_nsenter)\n[![Travis CI](http://img.shields.io/travis/zuazo/specinfra-backend-docker_nsenter.svg?style=flat)](https://travis-ci.org/zuazo/specinfra-backend-docker_nsenter)\n[![Coverage Status](http://img.shields.io/coveralls/zuazo/specinfra-backend-docker_nsenter.svg?style=flat)](https://coveralls.io/r/zuazo/specinfra-backend-docker_nsenter?branch=master)\n[![Inline docs](http://inch-ci.org/github/zuazo/specinfra-backend-docker_nsenter.svg?branch=master\u0026style=flat)](http://inch-ci.org/github/zuazo/specinfra-backend-docker_nsenter)\n\n[Serverspec](http://serverspec.org/) / [Specinfra](https://github.com/mizzy/specinfra) backend for Docker `nsenter` execution driver.\n\n## Requirements\n\n* Recommended Docker `1.7.0` or higher.\n* `sudo` installed (not in the container).\n* `nsenter` binary installed.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\n# Gemfile\n\ngem 'specinfra-backend-docker_nsenter', '~\u003e 0.1.0'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install specinfra-backend-docker_nsenter\n\n## Usage\n\n```ruby\nrequire 'serverspec'\nrequire 'specinfra/backend/docker_nsenter'\n\nset :docker_image, ENV['DOCKER_IMAGE_ID']\nset :backend, :docker_nsenter\n\ndescribe 'Dockerfile run' do\n  describe service('httpd') do\n    it { should be_enabled }\n    it { should be_running }\n  end\nend\n```\n\n## Configuration\n\nUses the following `Specinfra` configuration options:\n\n- `:sudo_options`: Sudo command argument list as string or as array.\n- `:sudo_path`: Sudo binary directory.\n- `:sudo_password`\n- `:disable_sudo`: whether to disable Sudo (enabled by default).\n\nFor example:\n\n```ruby\nset :sudo_password, 'fBQ6MB5e7mKUt1X7cNAq'\n```\n\n## Testing\n\nSee [TESTING.md](https://github.com/zuazo/specinfra-backend-docker_nsenter/blob/master/TESTING.md).\n\n## Contributing\n\nPlease do not hesitate to [open an issue](https://github.com/zuazo/specinfra-backend-docker_nsenter/issues/new) with any questions or problems.\n\nSee [CONTRIBUTING.md](https://github.com/zuazo/specinfra-backend-docker_nsenter/blob/master/CONTRIBUTING.md).\n\n## TODO\n\nSee [TODO.md](https://github.com/zuazo/specinfra-backend-docker_nsenter/blob/master/TODO.md).\n\n## Acknowledgements\n\n* Kudos to [Andreas Schmidt](https://github.com/aschmidt75) for [his implementation example](https://gist.github.com/aschmidt75/bb38d971e4f47172e2de).\n\n## License and Author\n\n|                      |                                          |\n|:---------------------|:-----------------------------------------|\n| **Author:**          | [Xabier de Zuazo](https://github.com/zuazo) (\u003cxabier@zuazo.org\u003e)\n| **Copyright:**       | Copyright (c) 2015 Xabier de Zuazo\n| **License:**         | Apache License, Version 2.0\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n        http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuazo%2Fspecinfra-backend-docker_nsenter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuazo%2Fspecinfra-backend-docker_nsenter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuazo%2Fspecinfra-backend-docker_nsenter/lists"}