{"id":15657980,"url":"https://github.com/teohm/kitchen-example","last_synced_at":"2025-05-05T16:40:42.548Z","repository":{"id":8003738,"uuid":"9411483","full_name":"teohm/kitchen-example","owner":"teohm","description":"Example of using rackbox, databox and knife-solo to provision a full-stack, rack-based web server.","archived":false,"fork":false,"pushed_at":"2013-05-04T01:32:29.000Z","size":136,"stargazers_count":22,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T22:25:17.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teohm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-13T09:33:34.000Z","updated_at":"2025-02-23T12:12:48.000Z","dependencies_parsed_at":"2022-09-10T19:51:42.202Z","dependency_job_id":null,"html_url":"https://github.com/teohm/kitchen-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teohm%2Fkitchen-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teohm%2Fkitchen-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teohm%2Fkitchen-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teohm%2Fkitchen-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teohm","download_url":"https://codeload.github.com/teohm/kitchen-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252535009,"owners_count":21763878,"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":[],"created_at":"2024-10-03T13:10:33.305Z","updated_at":"2025-05-05T16:40:42.513Z","avatar_url":"https://github.com/teohm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kitchen Example\n===============\n\nAn example of using\n[`rackbox`](https://github.com/teohm/rackbox-cookbook) \u0026\n[`databox`](https://github.com/teohm/databox-cookbook) and `knife-solo` to provision\na full-stack, rack-based web server.\n\n### How to build `kitchen-example` from scratch:\n\n 1. Create `Gemfile`:\n\n    ```\n    source \"https://rubygems.org\"\n    \n    gem \"knife-solo\", \"0.3.0pre3\"\n    gem \"berkshelf\"\n    ```\n 2. Create `Berksfile`:\n\n    ```\n    site :opscode\n    \n    cookbook \"runit\", \"1.1.2\"\n    cookbook \"databox\"\n    cookbook \"rackbox\"\n    ```\n 3. Install ruby gems\n\n    ```\n    bundle install\n    ```\n 4. Setup `knife-solo` directory structure\n    ```\n    bundle exec knife solo init .\n    ```\n 5. Copy the node config example\n\n    ```\n    curl https://raw.github.com/teohm/kitchen-example/master/nodes/host.json.example --output nodes/myhost.json\n    ```\n\nProvision rack-based server\n-----\n\n```\ngit clone git://github.com/teohm/kitchen-example.git\ncd kitchen-example\n\n# install berkshelf, knife-solo\nbundle install\n\n# download cookbooks\nbundle exec berks install -p cookbooks/\n\n# copy \u0026 edit the node config\ncp nodes/host.json.example testbox.json\n\n# setup chef-solo on the node\nbundle exec knife solo prepare testbox\n\n# provision the node\nbundle exec knife solo cook testbox\n```\n\nDeploy rails on unicorn\n-------------\n```\ngit clone git://github.com/teohm/sample-app1.git\ncd sample-app1\nbundle install\nssh testbox \n#\n# in testbox, add SSH known host by running:\n#    ssh git@github.com   \n#\nbundle exec cap deploy:setup\nbundle exec cap deploy:migrations\n```\n\nDeploy rails on passenger\n-------------\n```\ngit clone git://github.com/teohm/sample-app2.git\ncd sample-app2\nbundle install\nssh testbox \n#\n# in testbox, add SSH known host by running:\n#    ssh git@github.com   \n#\nbundle exec cap deploy:setup\nbundle exec cap deploy:migrations\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteohm%2Fkitchen-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteohm%2Fkitchen-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteohm%2Fkitchen-example/lists"}