Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/binocarlos/docker-mongo

Dockerfile to build mongo
https://github.com/binocarlos/docker-mongo

Last synced: 11 days ago
JSON representation

Dockerfile to build mongo

Awesome Lists containing this project

README

        

docker-mongo
============

Dockerfile to build mongo

```
FROM ubuntu:12.04
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get -y update

# add mongo repo
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
RUN echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list.d/10gen.list
RUN apt-get update

# install mongo itself
RUN apt-get -y install apt-utils
RUN apt-get -y install mongodb-10gen

# where the mongo data lives by default
RUN mkdir -p /data/db

# we run mongo - we should put supervisor here and configure the data directory
ENTRYPOINT ["/usr/bin/mongod"]
```