Actual settings for https://github.com/chriswessels/meteor-tupperware


#1

Are these correct actual settings in Dockerfile ?

FROM quay.io/chriswessels/meteor-tupperware

MAINTAINER SebastianC <user@live.com>

ENV MONGO_URL="mongodb://localhost:27017/future_tasks" 
ROOT_URL="http://localhost" 
MONGO_OPLOG_URL="mongodb://oplogger:oplogger@127.0.0.1:27017/local?authSource=admin"

Because after each

$ docker build -t scheung/spark2acs .

Error: failed to connect to [db:27017]

at Object.Future.wait (/output/bundle/programs/server/node_modules/fibers/future.js:420:15)
at new MongoConnection (packages/mongo/mongo_driver.js:213:27)
at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
at new Mongo.Collection (packages/mongo/collection.js:102:40)
at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
at meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
- - - - -
at [object Object].<anonymous> (/output/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:556:25)
at emitThree (events.js:97:13)
at [object Object].emit (events.js:175:7)
at [object Object].<anonymous> (/output/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)
at emitTwo (events.js:87:13)
at [object Object].emit (events.js:172:7)
at Socket.<anonymous> (/output/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at connectErrorNT (net.js:1012:8)

$ meteor mongo --url

mongodb://127.0.0.1:3001/meteor         

But http://stackoverflow.com/questions/10588038/how-to-use-the-existing-mongodb-in-a-meteor-project

export MONGO_URL=mongodb://localhost:27017/your_db

Here https://hub.docker.com/r/tozd/meteor-mongodb/ uses:

MONGODB_ADMIN_PWD='<pass>'
MONGODB_CREATE_PWD='<pass>'
MONGODB_OPLOGGER_PWD='<pass>'

export MONGO_URL="mongodb://meteor:${MONGODB_CREATE_PWD}@mongodb/meteor"
export MONGO_OPLOG_URL="mongodb://oplogger:${MONGODB_OPLOGGER_PWD}@mongodb/local?authSource=admin"
ENV MONGO_URL mongodb://db:27017/test

so which is correct?