create a mongo app
March 14, 2015 ยท View on GitHub
flynn create --remote "" mongo
create a release using the latest (at the time of writing) Docker MongoDB image
flynn -a mongo release add -f config.json "https://registry.hub.docker.com?name=mongo&id=216d9a0e82646f77b31b78eeb0e26db5500930bbd6085d5d5c3844ec27c0ca50"
scale the server to one process. This may time out initially as the server pulls the image, but watch "flynn -a mongo ps" and it should come up.
flynn -a mongo scale server=1
mongo should now be running in the cluster at mongo.discoverd:27017
flynn -a mongo run mongo --host mongo.discoverd --port 27017
db.hostInfo().ok 1