From 4d0dfce7de80668e22816c2234b545cf97afc084 Mon Sep 17 00:00:00 2001 From: sunix Date: Tue, 29 Oct 2019 17:36:30 +0000 Subject: [PATCH] adding a mongodb container to prepare the future demo Signed-off-by: sunix --- devfile.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/devfile.yaml b/devfile.yaml index df26c5fc..2e9acd99 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -68,6 +68,29 @@ components: type: chePlugin alias: vscode-openshift + - type: dockerimage + alias: mongo + image: centos/mongodb-34-centos7 + memoryLimit: 512Mi + env: + - name: MONGODB_USER + value: user + - name: MONGODB_PASSWORD + value: password + - name: MONGODB_DATABASE + value: guestbook + - name: MONGODB_ADMIN_PASSWORD + value: password + volumes: + - name: mongo-storage + containerPath: /var/lib/mongodb/data + endpoints: + - name: mongodb-34-centos7 + port: 27017 + attributes: + discoverable: 'true' + public: 'false' + commands: - name: compile quarkus:dev