8fbed14b5e
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
24 lines
596 B
Django/Jinja
24 lines
596 B
Django/Jinja
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
|