meteor - MongoDB URL in MeteorD -
i trying use docker meteor application. following git hub instructions i've build docker image (i think)
$ docker build -t thismustbedocker/meteorappgit . sending build context docker daemon 125.9 mb step 1 : meteorhacks/meteord:onbuild
executing 2 build triggers... step 1 : copy ./ /app step 1 : run bash $meteord_dir/on_build.sh ---> running in eb6f7a698dbf
downloading meteor distribution
meteor 1.3.2.4 has been installed in home directory (~/.meteor). writing launcher script /usr/local/bin/meteor convenience.
to started fast:
$ meteor create ~/my_cool_app $ cd ~/my_cool_app $ meteor
or see docs at:
docs.meteor.com
npm warn deprecated version of npm lacks support important features, npm warn deprecated such scoped packages, offered primary npm npm warn deprecated registry. consider upgrading @ least npm@2, if not npm warn deprecated latest stable version. upgrade npm@2, run: npm warn deprecated npm warn deprecated npm -g install npm@latest-2 npm warn deprecated npm warn deprecated upgrade latest stable version, run: npm warn deprecated npm warn deprecated npm -g install npm@latest npm warn deprecated npm warn deprecated (depending on how node.js installed on system, npm warn deprecated may need prefix preceding commands
sudo
, or if npm warn deprecated on windows, run them administrator prompt.) npm warn deprecated npm warn deprecated if you're running version of npm bundled npm warn deprecated node.js 0.10 lts, aware next version of 0.10 lts npm warn deprecated bundled version of npm@2, has small npm warn deprecated backwards-incompatible changes madenpm run-script
, npm warn deprecated semver behavior. npm warn package.json meteor-dev-bundle@0.0.0 no description npm warn package.json meteor-dev-bundle@0.0.0 no repository field. npm warn package.json meteor-dev-bundle@0.0.0 no readme datafibers@1.0.8 install /tmp/bundle-dir/bundle/programs/server/node_modules/fibers node build.js || nodejs build.js
make: entering directory
/tmp/bundle-dir/bundle/programs/server/node_modules/fibers/build'
/tmp/bundle-dir/bundle/programs/server/node_modules/fibers/build' installed in
cxx(target) release/obj.target/fibers/src/fibers.o cxx(target) release/obj.target/fibers/src/coroutine.o cc(target) release/obj.target/fibers/src/libcoro/coro.o solink_module(target) release/obj.target/fibers.node solink_module(target) release/obj.target/fibers.node: finished copy release/fibers.node make: leaving directory/tmp/bundle-dir/bundle/programs/server/node_modules/fibers/bin/linux-x64-v8-3.14/fibers.node
npm warn cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/tmp/bundle-dir/bundle/programs/server) ansi-regex@0.2.1 node_modules/ansi-regexansi-styles@1.1.0 node_modules/ansi-styles
escape-string-regexp@1.0.5 node_modules/escape-string-regexp
chalk@0.5.1 node_modules/chalk
has-ansi@0.1.0 node_modules/has-ansi
strip-ansi@0.3.0 node_modules/strip-ansi
supports-color@0.2.0 node_modules/supports-color
eachline@2.3.3 node_modules/eachline
type-of@2.0.1 node_modules/type-of
amdefine@1.0.0 node_modules/amdefine
asap@2.0.3 node_modules/asap
underscore@1.5.2 node_modules/underscore
meteor-promise@0.5.1 node_modules/meteor-promise
promise@7.0.4 node_modules/promise
source-map-support@0.3.2 node_modules/source-map-support
semver@4.1.0 node_modules/semver
source-map@0.1.32 node_modules/source-map
fibers@1.0.8 node_modules/fibers ---> 414728bbc413 removing intermediate container 7acaef8c64d4 removing intermediate container eb6f7a698dbf built 414728bbc413 security warning: building docker image windows against non-windows docker host. files , directories added build context have '-rwxr-xr-x' permissions. recommended double check , reset permissions sensitive files , directories.
the next step run meteor image using docker run
docker run -d \ -e root_url=http://yourapp.com \ -e mongo_url=mongodb://url \ -e mongo_oplog_url=mongodb://oplog_url \ -p 8080:80 \ yourname/app
i using docker on windows , installed docker tool box. not sure should use parameters root_url, mongo_url,mongo_oplog_url kind of stuck here on next.
a meteord image doesn't contain mongodb database development version of meteor does. need specify url of external mongodb database. mongo_oplog_url optional, , root_url can http://localhost
.
more meteor environment variables: http://www.meteorpedia.com/read/environment_variables
Comments
Post a Comment