{"action":"created","issue":{"url":"https://api.github.com/repos/meteorhacks/meteord/issues/57","labels_url":"https://api.github.com/repos/meteorhacks/meteord/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/meteorhacks/meteord/issues/57/comments","events_url":"https://api.github.com/repos/meteorhacks/meteord/issues/57/events","html_url":"https://github.com/meteorhacks/meteord/issues/57","id":115681196,"number":57,"title":"What is the point of devbuild?","user":{"login":"ndarilek","id":1172,"avatar_url":"https://avatars.githubusercontent.com/u/1172?v=3","gravatar_id":"","url":"https://api.github.com/users/ndarilek","html_url":"https://github.com/ndarilek","followers_url":"https://api.github.com/users/ndarilek/followers","following_url":"https://api.github.com/users/ndarilek/following{/other_user}","gists_url":"https://api.github.com/users/ndarilek/gists{/gist_id}","starred_url":"https://api.github.com/users/ndarilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndarilek/subscriptions","organizations_url":"https://api.github.com/users/ndarilek/orgs","repos_url":"https://api.github.com/users/ndarilek/repos","events_url":"https://api.github.com/users/ndarilek/events{/privacy}","received_events_url":"https://api.github.com/users/ndarilek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-07T17:57:18Z","updated_at":"2016-01-01T14:34:28Z","closed_at":null,"body":"Maybe I'm missing something obvious?\r\n\r\nI wanted to launch my Meteor stack from docker-compose rather than the command line tool. I.e. docker-compose would use the meteor command directly, but it would link to a separate mongo plus other services I need for my app. My code directory would be bind-mounted into /app, and docker-compose would basically replace the locally-run meteor command, giving me the ability to spin up and monitor something like postgres instead of mongo.\r\n\r\nI'd have expected devbuild to accomplish this, only it removes the local meteor install on its way out. I can certainly reinstall it myself, but what is the point of devbuild if it does this? I get that it behaves a bit differently, but under what scenarios would I want to use devbuild vs. onbuild? I.e. not \"it downloads Meteor every time,\" but what practical benefit does this distinction serve as implemented? My expectation is that devbuild leaves the local install in place so I can use it for development in cases where I need to spin up dependent services and want to do so as part of a single-command launch.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/meteorhacks/meteord/issues/comments/168311086","html_url":"https://github.com/meteorhacks/meteord/issues/57#issuecomment-168311086","issue_url":"https://api.github.com/repos/meteorhacks/meteord/issues/57","id":168311086,"user":{"login":"jakobrosenberg","id":4153004,"avatar_url":"https://avatars.githubusercontent.com/u/4153004?v=3","gravatar_id":"","url":"https://api.github.com/users/jakobrosenberg","html_url":"https://github.com/jakobrosenberg","followers_url":"https://api.github.com/users/jakobrosenberg/followers","following_url":"https://api.github.com/users/jakobrosenberg/following{/other_user}","gists_url":"https://api.github.com/users/jakobrosenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobrosenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobrosenberg/subscriptions","organizations_url":"https://api.github.com/users/jakobrosenberg/orgs","repos_url":"https://api.github.com/users/jakobrosenberg/repos","events_url":"https://api.github.com/users/jakobrosenberg/events{/privacy}","received_events_url":"https://api.github.com/users/jakobrosenberg/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T14:34:28Z","updated_at":"2016-01-01T14:34:28Z","body":"onbuild and devbuild Dockerfiles seem practically identical if you look at on_build.sh.\r\n\r\n\r\nDevbuild\r\n```\r\nONBUILD RUN bash $METEORD_DIR/lib/install_meteor.sh\r\nONBUILD COPY ./ /app\r\nONBUILD RUN bash $METEORD_DIR/lib/build_app.sh\r\n```\r\n\r\n\r\nOnbuild\r\n```\r\nONBUILD COPY ./ /app\r\nONBUILD RUN bash $METEORD_DIR/on_build.sh\r\n```\r\n\r\n\r\non_build.sh\r\n```\r\n#!/bin/bash\r\nset -e\r\n\r\nbash $METEORD_DIR/lib/install_meteor.sh\r\nbash $METEORD_DIR/lib/build_app.sh\r\n```"}}