Skip to content

Instantly share code, notes, and snippets.

@pollosp
Created March 15, 2017 16:39
Show Gist options
  • Save pollosp/e1a17d23ff4ee1b0bc9b9a0941c34e92 to your computer and use it in GitHub Desktop.
Save pollosp/e1a17d23ff4ee1b0bc9b9a0941c34e92 to your computer and use it in GitHub Desktop.
OmarMB:~ omar$ minishift delete
Deleting local OpenShift cluster...
Machine deleted.
OmarMB:~ omar$ oc new-app https://github.com/openshift/nodejs-ex -l name=myapp --allow-missing-images
^C
OmarMB:~ omar$ minishift start --deploy-router
Starting local OpenShift cluster...
oc is now configured to use the cluster.
OmarMB:~ omar$ oc login --username=admin --password=admin
Login successful.
You have access to the following projects and can switch between them with 'oc project <projectname>':
* default
kube-system
openshift
openshift-infra
Using project "default".
OmarMB:~ omar$ oc new-app https://github.com/openshift/nodejs-ex -l name=myapp --allow-missing-images
error: no match for "nodejs"
The 'oc new-app' command will match arguments to the following types:
1. Images tagged into image streams in the current project or the 'openshift' project
- if you don't specify a tag, we'll add ':latest'
2. Images in the Docker Hub, on remote registries, or on the local Docker engine
3. Templates in the current project or the 'openshift' project
4. Git repository URLs or local paths that point to Git repositories
--allow-missing-images can be used to point to an image that does not exist yet.
See 'oc new-app -h' for examples.
OmarMB:~ omar$ oc new-app https://github.com/openshift/nodejs-ex --allow-missing-images
error: no match for "nodejs"
The 'oc new-app' command will match arguments to the following types:
1. Images tagged into image streams in the current project or the 'openshift' project
- if you don't specify a tag, we'll add ':latest'
2. Images in the Docker Hub, on remote registries, or on the local Docker engine
3. Templates in the current project or the 'openshift' project
4. Git repository URLs or local paths that point to Git repositories
--allow-missing-images can be used to point to an image that does not exist yet.
See 'oc new-app -h' for examples.
OmarMB:~ omar$ oc new-app
error: You must specify one or more images, image streams, templates, or source code locations to create an application.
To list all local templates and image streams, use:
oc new-app -L
To search templates, image streams, and Docker images that match the arguments provided, use:
oc new-app -S php
oc new-app -S --template=ruby
oc new-app -S --image-stream=mysql
oc new-app -S --docker-image=python
See 'oc new-app -h' for help and examples
OmarMB:~ omar$ oc new-app -S --template=ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment