{"action":"created","issue":{"url":"https://api.github.com/repos/awestruct/awestruct/issues/453","labels_url":"https://api.github.com/repos/awestruct/awestruct/issues/453/labels{/name}","comments_url":"https://api.github.com/repos/awestruct/awestruct/issues/453/comments","events_url":"https://api.github.com/repos/awestruct/awestruct/issues/453/events","html_url":"https://github.com/awestruct/awestruct/issues/453","id":54449878,"number":453,"title":"Awestruct with Docker","user":{"login":"kenfinnigan","id":441240,"avatar_url":"https://avatars.githubusercontent.com/u/441240?v=3","gravatar_id":"","url":"https://api.github.com/users/kenfinnigan","html_url":"https://github.com/kenfinnigan","followers_url":"https://api.github.com/users/kenfinnigan/followers","following_url":"https://api.github.com/users/kenfinnigan/following{/other_user}","gists_url":"https://api.github.com/users/kenfinnigan/gists{/gist_id}","starred_url":"https://api.github.com/users/kenfinnigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenfinnigan/subscriptions","organizations_url":"https://api.github.com/users/kenfinnigan/orgs","repos_url":"https://api.github.com/users/kenfinnigan/repos","events_url":"https://api.github.com/users/kenfinnigan/events{/privacy}","received_events_url":"https://api.github.com/users/kenfinnigan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-15T13:39:04Z","updated_at":"2015-01-20T22:55:03Z","closed_at":null,"body":"I've spent some time trying to put together a Docker image for Awestruct, and wanted to share it so that others could take it further.\r\n\r\nhttps://github.com/kenfinnigan/awestruct provides a basic Docker container which extends from ruby:2.1, exposes port 4242 and sets a default command of \"rake preview\".\r\n\r\nThis image can be built by running `sudo docker build -t=\"jboss/awestruct\" .` in the `base` directory of the cloned repo.\r\n\r\nTo make a container that is usable, first we install Awestruct:\r\n```\r\ndocker run --rm -v {gemHome}:/usr/local/bundle jboss/awestruct gem install bundler awestruct:{version}\r\n```\r\nInitialize a project (If you already have a project you can skip this step):\r\n```\r\ndocker run --rm -v {siteHome}:/usr/local/site -v {gemHome}:/usr/local/bundle jboss/awestruct awestruct --init --framework {frameworkName}\r\n```\r\nUpdate the project based on Gemfile:\r\n```\r\ndocker run --rm -v {siteHome}:/usr/local/site -v {gemHome}:/usr/local/bundle jboss/awestruct bundle update\r\n```\r\n\r\n{gemHome} points to a directory on the host machine where all the gems will be installed.\r\n{siteHome} points to a directory on the host machine where the site code will reside.\r\n\r\nTo start the container run:\r\n```\r\ndocker run -d -p 80:4242 -v {siteHome}:/usr/local/site -v {gemHome}:/usr/local/bundle jboss/awestruct\r\n```\r\n\r\nThe site is then accessible on the host machine at `localhost:80`.\r\n\r\nI had some problems getting this to work with 0.5.6.beta8, but it seemed to work fine with 0.5.5 (including live reload)\r\n\r\nHope this helps someone"},"comment":{"url":"https://api.github.com/repos/awestruct/awestruct/issues/comments/70751737","html_url":"https://github.com/awestruct/awestruct/issues/453#issuecomment-70751737","issue_url":"https://api.github.com/repos/awestruct/awestruct/issues/453","id":70751737,"user":{"login":"maxandersen","id":54129,"avatar_url":"https://avatars.githubusercontent.com/u/54129?v=3","gravatar_id":"","url":"https://api.github.com/users/maxandersen","html_url":"https://github.com/maxandersen","followers_url":"https://api.github.com/users/maxandersen/followers","following_url":"https://api.github.com/users/maxandersen/following{/other_user}","gists_url":"https://api.github.com/users/maxandersen/gists{/gist_id}","starred_url":"https://api.github.com/users/maxandersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxandersen/subscriptions","organizations_url":"https://api.github.com/users/maxandersen/orgs","repos_url":"https://api.github.com/users/maxandersen/repos","events_url":"https://api.github.com/users/maxandersen/events{/privacy}","received_events_url":"https://api.github.com/users/maxandersen/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T22:55:03Z","updated_at":"2015-01-20T22:55:03Z","body":"Do you actually see awestruct recognize changes ? \r\n\r\nmy attempt when running in docker I get issue #448 which makes it not very useful since it requires me to restart awestruct to see changes."}}