More clean-up

Done for now
This commit is contained in:
brennv 2016-04-11 17:59:14 -07:00
parent 3dcc516d0a
commit c9cbe7ea94

View file

@ -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