Skip to content
Snippets Groups Projects
  • Sam Yaple's avatar
    8fbed14b
    Ubuntu - Mongodb · 8fbed14b
    Sam Yaple authored
    This is only to get the container building and not failing for Ubuntu.
    The actual implementation of this container is not done for either
    Centos or Ubuntu builds.
    
    Change-Id: I48dc9fe75adffe4df1d66a70f01cded1e1b17934
    Partially-Implements: blueprint install-from-ubuntu
    8fbed14b
    History
    Ubuntu - Mongodb
    Sam Yaple authored
    This is only to get the container building and not failing for Ubuntu.
    The actual implementation of this container is not done for either
    Centos or Ubuntu builds.
    
    Change-Id: I48dc9fe75adffe4df1d66a70f01cded1e1b17934
    Partially-Implements: blueprint install-from-ubuntu
Dockerfile.j2 596 B
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)

{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}

RUN yum -y install \
        mongodb \
        mongodb-server \
    && yum clean all

{% elif base_distro in ['ubuntu', 'debian'] %}

RUN apt-get install -y --no-install-recommends mongodb-server \
    && apt-get clean

{% endif %}

RUN mkdir -p /data/db

VOLUME /data/db
VOLUME /var/log/mongodb

ENTRYPOINT exec /bin/mongod --dbpath /data/db --logpath /var/log/mongodb/mongo.log --noprealloc --smallfiles