{"id":21745151,"url":"https://github.com/zuazo/specinfra-backend-docker_lxc","last_synced_at":"2025-03-21T01:43:21.498Z","repository":{"id":56896567,"uuid":"46168943","full_name":"zuazo/specinfra-backend-docker_lxc","owner":"zuazo","description":"Serverspec / Specinfra backend for Docker LXC execution driver.","archived":false,"fork":false,"pushed_at":"2016-01-09T13:09:44.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T09:16:31.881Z","etag":null,"topics":["backend","devops","docker","docker-lxc","lxd","serverspec","specinfra","specinfra-backend","tdd","testing"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/specinfra-backend-docker_lxc","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-14T09:28:10.000Z","updated_at":"2023-09-05T19:15:27.000Z","dependencies_parsed_at":"2022-08-21T00:50:58.359Z","dependency_job_id":null,"html_url":"https://github.com/zuazo/specinfra-backend-docker_lxc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_lxc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_lxc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_lxc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Fspecinfra-backend-docker_lxc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuazo","download_url":"https://codeload.github.com/zuazo/specinfra-backend-docker_lxc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722654,"owners_count":20499153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","docker-lxc","lxd","serverspec","specinfra","specinfra-backend","tdd","testing"],"created_at":"2024-11-26T07:13:46.592Z","updated_at":"2025-03-21T01:43:21.475Z","avatar_url":"https://github.com/zuazo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Specinfra Docker LXC Backend\n[![Gem Version](http://img.shields.io/gem/v/specinfra-backend-docker_lxc.svg?style=flat)](http://badge.fury.io/rb/specinfra-backend-docker_lxc)\n[![Dependency Status](http://img.shields.io/gemnasium/zuazo/specinfra-backend-docker_lxc.svg?style=flat)](https://gemnasium.com/zuazo/specinfra-backend-docker_lxc)\n[![Code Climate](http://img.shields.io/codeclimate/github/zuazo/specinfra-backend-docker_lxc.svg?style=flat)](https://codeclimate.com/github/zuazo/specinfra-backend-docker_lxc)\n[![Circle CI](https://circleci.com/gh/zuazo/specinfra-backend-docker_lxc/tree/master.svg?style=shield)](https://circleci.com/gh/zuazo/specinfra-backend-docker_lxc/tree/master)\n[![Travis CI](http://img.shields.io/travis/zuazo/specinfra-backend-docker_lxc.svg?style=flat)](https://travis-ci.org/zuazo/specinfra-backend-docker_lxc)\n[![Coverage Status](http://img.shields.io/coveralls/zuazo/specinfra-backend-docker_lxc.svg?style=flat)](https://coveralls.io/r/zuazo/specinfra-backend-docker_lxc?branch=master)\n[![Inline docs](http://inch-ci.org/github/zuazo/specinfra-backend-docker_lxc.svg?branch=master\u0026style=flat)](http://inch-ci.org/github/zuazo/specinfra-backend-docker_lxc)\n\n[Serverspec](http://serverspec.org/) / [Specinfra](https://github.com/mizzy/specinfra) backend for Docker LXC execution driver.\n\n## Requirements\n\n* Recommended Docker `1.7.0` or higher.\n* `sudo` installed (not in the container).\n* `lxc-attach` binary installed (included in the `lxc` package).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\n# Gemfile\n\ngem 'specinfra-backend-docker_lxc', '~\u003e 0.2.0'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install specinfra-backend-docker_lxc\n\n## Usage\n\n```ruby\nrequire 'serverspec'\nrequire 'specinfra/backend/docker_lxc'\n\nset :docker_image, ENV['DOCKER_IMAGE_ID']\nset :backend, :docker_lxc\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, 'mBnriM8SKhRtIww7xgUi'\n```\n\n## Testing\n\nSee [TESTING.md](https://github.com/zuazo/specinfra-backend-docker_lxc/blob/master/TESTING.md).\n\n## Contributing\n\nPlease do not hesitate to [open an issue](https://github.com/zuazo/specinfra-backend-docker_lxc/issues/new) with any questions or problems.\n\nSee [CONTRIBUTING.md](https://github.com/zuazo/specinfra-backend-docker_lxc/blob/master/CONTRIBUTING.md).\n\n## TODO\n\nSee [TODO.md](https://github.com/zuazo/specinfra-backend-docker_lxc/blob/master/TODO.md).\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_lxc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuazo%2Fspecinfra-backend-docker_lxc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuazo%2Fspecinfra-backend-docker_lxc/lists"}