July 2018
Intermediate to advanced
504 pages
11h 34m
English
Well, we know about directory structure and want to build and deploy a Redis application from the available Dockerfile. Let's focus on version 3.2. The oc new-app may initiate a build from source code using a sub-directory. We are ready to initiate a simple Dockerfile build:
$ oc new-app https://github.com/docker-library/redis.git --context-dir=3.2...<OUTPUT OMITTED>...Run 'oc status' to view your app.
As we can see, OpenShift created a number of objects such as the following:
You can run the oc get all command to make sure that all objects have been created:
$ oc get allNAME TYPE FROM LATESTbuildconfigs/redis Docker ...
Read now
Unlock full access