This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ChangeEntry struct { | |
Namespace string | |
Type string // insert, update, or delete | |
ID string // the unique identifier of the object | |
Object map[string]interface{} // There are limitations on this object... | |
} | |
func convertOp(op map[string]interface{}) (*ChangeEntry, error) { | |
// Note that this has only been tested for the Mongo 2.4 format |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:precise | |
RUN apt-get -qq update && apt-get -y install wget && \ | |
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.0.tgz && \ | |
tar xzf mongodb-linux-x86_64-2.4.0.tgz && \ | |
install -t /usr/bin mongodb-linux-x86_64-2.4.0/bin/* && \ | |
mkdir -p /data/db /var/lib/mongodb/ && \ | |
rm mongodb-linux-x86_64-2.4.0.tgz && \ | |
rm -rf mongodb-linux-x86_64-2.4.0 | |
EXPOSE 27017 | |
ENTRYPOINT ["usr/bin/mongod"] |