1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/openshift-developer-cli-deploying-a-database-in-interactive-mode.adoc
Yana Hontyk 21575d349b odo docs
2019-10-11 13:41:38 +00:00

37 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_developer_cli/creating-an-application-with-a-database.adoc
[id="deploying-a-database-in-interactive-mode_{context}"]
= Deploying a database in interactive mode
{odo-title} provides a command-line interactive mode which simplifies deployment.
.Procedure
* Run the interactive mode and answer the prompts:
+
----
$ odo service create
? Which kind of service do you wish to create database
? Which database service class should we use mongodb-persistent
? Enter a value for string property DATABASE_SERVICE_NAME (Database Service Name): mongodb
? Enter a value for string property MEMORY_LIMIT (Memory Limit): 512Mi
? Enter a value for string property MONGODB_DATABASE (MongoDB Database Name): sampledb
? Enter a value for string property MONGODB_VERSION (Version of MongoDB Image): 3.2
? Enter a value for string property VOLUME_CAPACITY (Volume Capacity): 1Gi
? Provide values for non-required properties No
? How should we name your service mongodb-persistent
? Output the non-interactive version of the selected options No
? Wait for the service to be ready No
✓ Creating service [32ms]
✓ Service 'mongodb-persistent' was created
Progress of the provisioning will not be reported and might take a long time.
You can see the current status by executing 'odo service list'
----
[NOTE]
====
Your password or username will be passed to the front-end application as environment variables.
====