Add support for mongodb container

Implements: blueprint kube-mongodb-container

Change-Id: If76f6c0be90c3025933795d262304a10bf1a880d
This commit is contained in:
Pradeep Kilambi 2014-11-14 11:16:29 -05:00
parent b57caa7b67
commit 904b5c4256
6 changed files with 42 additions and 0 deletions

13
docker/mongodb/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM kollaglue/fedora-rdo-base
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install mongodb mongodb-server; yum clean all
RUN mkdir -p /data/db
VOLUME /data/db
VOLUME /var/log/mongodb
EXPOSE 27017
ENTRYPOINT exec /bin/mongod --dbpath /data/db --fork --logpath /var/log/mongodb/mongo.log --noprealloc --smallfiles

1
docker/mongodb/build Symbolic link
View File

@ -0,0 +1 @@
../../tools/build-docker-image

19
k8s/pod/mongodb-pod.yaml Normal file
View File

@ -0,0 +1,19 @@
desiredState:
manifest:
volumes:
- name: mongodb-data
source:
emptyDir: {}
containers:
image: kollaglue/fedora-rdo-mongodb
name: mongodb
ports:
- containerPort: 27017
volumeMounts:
- name: mongodb-data
mountPath: /data/db
id: mongodb-1
version: v1beta1
id: mongodb
labels:
name: mongodb

View File

@ -0,0 +1,7 @@
apiVersion: v1beta1
containerPort: 27017
id: mongodb
kind: Service
port: 27017
selector:
name: mongodb

View File

@ -10,6 +10,7 @@ glance
nova-controller
neutron-controller
heat
mongodb
ceilometer-controller
'

View File

@ -9,6 +9,7 @@ glance-registry
keystone-admin
keystone-public
mariadb
mongodb
nova-api
nova-ec2-api
nova-libvirt