Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/binocarlos/docker-mongo
- Owner: binocarlos
- Created: 2013-12-21T13:37:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-21T13:46:39.000Z (almost 11 years ago)
- Last Synced: 2024-04-14T14:36:39.032Z (7 months ago)
- Language: Shell
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"]
```