Skip to content

Commit

Permalink
adding a mongodb container to prepare the future demo
Browse files Browse the repository at this point in the history
Signed-off-by: sunix <sutan@redhat.com>
  • Loading branch information
sunix committed Oct 29, 2019
1 parent d141d9e commit 4d0dfce
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d0dfce

Please sign in to comment.