forked from amitopenwriteup/okd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathocs2i labs.txt
More file actions
25 lines (15 loc) · 1020 Bytes
/
Copy pathocs2i labs.txt
File metadata and controls
25 lines (15 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
oc new-app --list
# Create a Ruby application based on the provided [image]~[source code] combination
oc new-app amitow/ruby-25~https://github.com/sclorg/ruby-ex.git
oc new-app mysql MYSQL_USER=user MYSQL_PASSWORD=pass MYSQL_DATABASE=testdb -l db=mysql
# Create an application from a remote repository using its beta4 branch
oc new-app https://github.com/openshift/ruby-hello-world#beta4
# Create an application based on a stored template, explicitly setting a parameter value
oc new-app --template=ruby-helloworld-sample --param=MYSQL_USER=admin
# Search all templates, image streams, and Docker images for the ones that match "ruby"
oc new-app --search ruby
# Search for "ruby", but only in stored templates (--template, --image-stream and --docker-image
# can be used to filter search results)
oc new-app --search --template=ruby
# Search for "ruby" in stored templates and print the output as an YAML
oc new-app --search --template=ruby --output=yaml