From c9cbe7ea942bb16594e68f6f5c91137f8ae4a0a7 Mon Sep 17 00:00:00 2001 From: brennv Date: Mon, 11 Apr 2016 17:59:14 -0700 Subject: [PATCH] More clean-up Done for now --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 006769d..fff7dae 100644 --- a/README.md +++ b/README.md @@ -128,12 +128,14 @@ If you're running OpenShift on a local machine, you can preview the new app by s #### Create a new app from an image (method 3) -You may have noticed the home page "Page view count" reads "No database configured". Let's fix that by adding a MongoDB service: +You may have noticed the home page "Page view count" reads "No database configured". Let's fix that by adding a MongoDB service. We could use the second OpenShift template example (`nodejs-mongodb.json`) but for the sake of demonstration let's point `oc new-app` at a DockerHub image: $ oc new-app centos/mongodb-26-centos7 \ $ -e MONGODB_USER=admin,MONGODB_DATABASE=mongo_db,MONGODB_PASSWORD=secret,MONGODB_ADMIN_PASSWORD=super-secret + +The `-e` flag sets the environment variables we want used in the configuration of our new app. -Running `oc status` will reveal the address of the newly created MongoDB database: +Running `oc status` will reveal the address of the newly created MongoDB: In project nodejs (nodejs-echo) on server https://10.2.2.2:8443