...
- from source code
oc new-app /path/to/someUser/someProject
- oc
new-app https://github.com/someUser/someProject
- from docker images
- oc
new-app someImageOnDockerHub
- oc
new-app localhost:5000/someImage
- oc
- from templates
- oc
new-app someOpenShiftTemplate
- oc
new-app -f /path/to/someTemplate.json
- oc
- using the web console
Deploying an App
...
When we deploy an app, we deploy three things:
- configuration
- this describes the desired state of your application
- replication controller(s)
- this is basically a snapshot of some state of your application (the system will create this for you)
- pod(s)
- this is basically an instance of the app you created
If you create an app, as per above, you can inspect the configuration file for your app thusly:
Expand | ||
---|---|---|
|
Running Magnolia on OpenShift
...