Sign inSign up

mattalord/mongo-embedded-sample

By mattalord

Updated over 7 years ago

This image allows you to run a sample MongoDB Embedded application.

Image
1

110

mattalord/mongo-embedded-sample repository overview

WARNING! This is for demonstration and experimentation purposes only!


Source is available here: https://github.com/mattlord/mongo-embedded-sample

Example usage: docker run --rm mattalord/mongo-embedded-sample:armhf iot_guestbook --help Usage: iot_guestbook [name] [message]

docker run --rm -v /tmp:/tmp mattalord/mongo-embedded-sample:armhf { "message" : "Hello IoT World", "from" : "anonymous", "date" : { "$date" : 1538545186000 } }

docker run --rm -v /tmp:/tmp mattalord/mongo-embedded-sample:armhf iot_guestbook "Matt Lord" "Hello from Dockerville" { "message" : "Hello IoT World", "from" : "anonymous", "date" : { "$date" : 1538545704000 } } { "message" : "Hello from Dockerville", "from" : "Matt Lord", "date" : { "$date" : 1538545726000 } }

Note: we’re mapping /tmp in the container to /tmp on the host so that we can have a local persistent database (/tmp/mobile.sqlite) as the sample app stores the database in /tmp.

Tag summary

Content type

Image

Digest

Size

78.4 MB

Last updated

over 7 years ago

docker pull mattalord/mongo-embedded-sample:armhf