1- = Default Image Streams and Templates
1+ = Image Streams and Templates
22{product-author}
33{product-version}
44:data-uri:
1010
1111toc::[]
1212
13- // tag::firststeps[]
14-
1513== Overview
1614
1715ifdef::openshift-enterprise[]
@@ -26,19 +24,24 @@ default global project to which all users have view access.
2624endif::[]
2725
2826ifdef::openshift-origin[]
29- You can populate your OpenShift installation with a useful set of Red
30- Hat-provided
31- link:../../ architecture/core_concepts/builds_and_image_streams.html#image-streams[image
32- streams] and link:../ ../architecture/core_concepts/templates.html[templates] to
27+ You can populate your OpenShift installation with a useful set of
28+ Red Hat-provided
29+ link:../architecture/core_concepts/builds_and_image_streams.html#image-streams[image streams] and
30+ link:../architecture/core_concepts/templates.html[templates] to
3331make it easy for developers to create new applications. By default, the
34- link:advanced_install.html[advanced installation] method automatically creates
32+ link:../install_config/install/ advanced_install.html[advanced installation] method automatically creates
3533these sets in the *openshift* project, which is a default project to which all
3634users have view access.
3735endif::[]
3836
3937ifdef::openshift-enterprise[]
40- The core set of image streams and templates are provided and supported by Red Hat
41- with an active OpenShift Enterprise subscription for the following technologies:
38+ The core set of image streams and templates are provided and supported by
39+ Red Hat with an active OpenShift Enterprise subscription for the following
40+ technologies:
41+ endif::[]
42+ ifdef::openshift-origin[]
43+ Image streams and templates are provided for the following technologies:
44+ endif::[]
4245
4346[horizontal]
4447Languages::
@@ -53,25 +56,6 @@ Database::
5356- link:../using_images/db_images/postgresql.html[PostgreSQL]
5457Other Services::
5558- link:../using_images/other_images/jenkins.html[Jenkins]
56- endif::[]
57-
58- ifdef::openshift-origin[]
59- Image streams and templates are provided for the following technologies:
60-
61- [horizontal]
62- Languages::
63- - link:../../using_images/s2i_images/nodejs.html[Node.js]
64- - link:../../using_images/s2i_images/perl.html[Perl]
65- - link:../../using_images/s2i_images/php.html[PHP]
66- - link:../../using_images/s2i_images/python.html[Python]
67- - link:../../using_images/s2i_images/ruby.html[Ruby]
68- Database::
69- - link:../../using_images/db_images/mongodb.html[MongoDB]
70- - link:../../using_images/db_images/mysql.html[MySQL]
71- - link:../../using_images/db_images/postgresql.html[PostgreSQL]
72- Other Services::
73- - link:../../using_images/other_images/jenkins.html[Jenkins]
74- endif::[]
7559
7660ifdef::openshift-enterprise[]
7761If you also have the relevant xPaaS Middleware subscription active on your
@@ -101,12 +85,9 @@ The JSON object definitions used to create these sets are installed on the file
10185system of your master during
10286ifdef::openshift-enterprise[]
10387a link:../install_config/install/quick_install.html[quick] or
104- link:../install_config/install/advanced_install.html[advanced installation].
105- endif::[]
106- ifdef::openshift-origin[]
107- an link:../../install_config/install/advanced_install.html[advanced
108- installation].
10988endif::[]
89+ an
90+ link:../install_config/install/advanced_install.html[advanced installation].
11091If you used another method to install, or if the default image streams and
11192templates are ever removed or changed, you can use the following instructions to
11293create the default objects yourself. Otherwise, the following instructions are
@@ -119,31 +100,12 @@ Before you can create the default image streams and templates (if they do not
119100already exist):
120101
121102- The
122- ifdef::openshift-enterprise[]
123103link:../install_config/install/docker_registry.html[integrated Docker registry]
124- endif::[]
125- ifdef::openshift-origin[]
126- link:../../install_config/install/docker_registry.html[integrated Docker
127- registry]
128- endif::[]
129- service must be
130- deployed in your OpenShift installation.
104+ service must be deployed in your OpenShift installation.
131105- You must be able to run the following CLI commands with
132- ifdef::openshift-enterprise[]
133- link:../architecture/additional_concepts/authorization.html#roles[*cluster-admin*
134- privileges],
135- endif::[]
136- ifdef::openshift-origin[]
137- link:../../architecture/additional_concepts/authorization.html#roles[*cluster-admin*
138- privileges],
139- endif::[]
106+ link:../architecture/additional_concepts/authorization.html#roles[*cluster-admin* privileges],
140107because they operate on the default *openshift*
141- ifdef::openshift-enterprise[]
142108link:../architecture/core_concepts/projects_and_users.html#projects[project].
143- endif::[]
144- ifdef::openshift-origin[]
145- link:../../architecture/core_concepts/projects_and_users.html#projects[project].
146- endif::[]
147109ifdef::openshift-origin[]
148110- You must have cloned the
149111https://github.com/openshift/openshift-ansible/tree/master/roles/openshift_examples/files[repository]
@@ -156,8 +118,8 @@ $ git clone https://github.com/openshift/openshift-ansible
156118endif::[]
157119ifdef::openshift-enterprise[]
158120- You must have installed the *atomic-openshift-utils* RPM package. See
159- link:../install_config/install/prerequisites.html#software-prerequisites[Software
160- Prerequisites] for instructions.
121+ link:../install_config/install/prerequisites.html#software-prerequisites[Software Prerequisites]
122+ for instructions.
161123endif::[]
162124- Define shell variables for the directories containing image streams and templates. This significantly shortens the commands in the following sections. To do this:
163125+
@@ -182,7 +144,6 @@ endif::[]
182144
183145== Creating Image Streams for OpenShift Images
184146The core set of image streams provide images that can be used to build
185- ifdef::openshift-enterprise[]
186147link:../using_images/s2i_images/nodejs.html[*Node.js*],
187148link:../using_images/s2i_images/perl.html[*Perl*],
188149link:../using_images/s2i_images/php.html[*PHP*],
@@ -191,17 +152,6 @@ link:../using_images/s2i_images/ruby.html[*Ruby*] applications. It also
191152defines images for link:../using_images/db_images/mongodb.html[*MongoDB*],
192153link:../using_images/db_images/mysql.html[*MySQL*], and
193154link:../using_images/db_images/postgresql.html[*PostgreSQL*]
194- endif::[]
195- ifdef::openshift-origin[]
196- link:../../using_images/s2i_images/nodejs.html[*Node.js*],
197- link:../../using_images/s2i_images/perl.html[*Perl*],
198- link:../../using_images/s2i_images/php.html[*PHP*],
199- link:../../using_images/s2i_images/python.html[*Python*], and
200- link:../../using_images/s2i_images/ruby.html[*Ruby*] applications. It also
201- defines images for link:../../using_images/db_images/mongodb.html[*MongoDB*],
202- link:../../using_images/db_images/mysql.html[*MySQL*], and
203- link:../../using_images/db_images/postgresql.html[*PostgreSQL*]
204- endif::[]
205155to support data storage.
206156
207157If your node hosts are subscribed using Red Hat Subscription Manager and you
@@ -252,16 +202,9 @@ endif::[]
252202== Creating Database Service Templates
253203The database service templates make it easy to run a database image which can be
254204utilized by other components. For each database
255- ifdef::openshift-enterprise[]
256205(link:../using_images/db_images/mongodb.html[*MongoDB*],
257206link:../using_images/db_images/mysql.html[*MySQL*], and
258207link:../using_images/db_images/postgresql.html[*PostgreSQL*]),
259- endif::[]
260- ifdef::openshift-origin[]
261- (link:../../using_images/db_images/mongodb.html[*MongoDB*],
262- link:../../using_images/db_images/mysql.html[*MySQL*], and
263- link:../../using_images/db_images/postgresql.html[*PostgreSQL*]),
264- endif::[]
265208two templates are defined.
266209
267210One template uses ephemeral storage in the container which means data stored
@@ -270,12 +213,7 @@ template should be used for demonstration purposes only.
270213
271214The other template defines a persistent volume for storage, however it requires
272215your OpenShift installation to have
273- ifdef::openshift-enterprise[]
274216link:../install_config/persistent_storage/persistent_storage_nfs.html[persistent volumes]
275- endif::[]
276- ifdef::openshift-origin[]
277- link:../../install_config/persistent_storage/persistent_storage_nfs.html[persistent volumes]
278- endif::[]
279217configured.
280218
281219To create the core set of database templates:
@@ -293,39 +231,14 @@ templates, giving them quick access to a database deployment.
293231The InstantApp templates define a full set of objects for a running application.
294232These include:
295233
296- ifdef::openshift-enterprise[]
297234- link:../architecture/core_concepts/builds_and_image_streams.html#builds[Build configurations]
298- endif::[]
299- ifdef::openshift-origin[]
300- - link:../../architecture/core_concepts/builds_and_image_streams.html#builds[Build configurations]
301- endif::[]
302235to build the application from source located in a GitHub public repository
303- ifdef::openshift-enterprise[]
304236- link:../architecture/core_concepts/deployments.html#deployments-and-deployment-configurations[Deployment configurations]
305- endif::[]
306- ifdef::openshift-origin[]
307- - link:../../architecture/core_concepts/deployments.html#deployments-and-deployment-configurations[Deployment configurations]
308- endif::[]
309237to deploy the application image after it is built.
310- ifdef::openshift-enterprise[]
311238- link:../architecture/core_concepts/pods_and_services.html#services[Services]
312- endif::[]
313- ifdef::openshift-origin[]
314- - link:../../architecture/core_concepts/pods_and_services.html#services[Services]
315- endif::[]
316239to provide load balancing for the application
317- ifdef::openshift-enterprise[]
318240link:../architecture/core_concepts/pods_and_services.html#pods[pods].
319- endif::[]
320- ifdef::openshift-origin[]
321- link:../../architecture/core_concepts/pods_and_services.html#pods[pods].
322- endif::[]
323- ifdef::openshift-enterprise[]
324241- link:../architecture/core_concepts/routes.html[Routes]
325- endif::[]
326- ifdef::openshift-origin[]
327- - link:../../architecture/core_concepts/routes.html[Routes]
328- endif::[]
329242to provide external access to the application.
330243
331244Some of the templates also define a database deployment and service so the
@@ -385,19 +298,9 @@ endif::[]
385298== What's Next?
386299
387300With these artifacts created, developers can now
388- ifdef::openshift-enterprise[]
389301link:../dev_guide/authentication.html[log into the web console]
390- endif::[]
391- ifdef::openshift-origin[]
392- link:../../dev_guide/authentication.html[log into the web console]
393- endif::[]
394302and follow the flow for
395- ifdef::openshift-enterprise[]
396303link:../dev_guide/templates.html#creating-from-templates-using-the-web-console[creating from a template].
397- endif::[]
398- ifdef::openshift-origin[]
399- link:../../dev_guide/templates.html#creating-from-templates-using-the-web-console[creating from a template].
400- endif::[]
401304Any of the database or application templates can be selected
402305to create a running database service or application in the current project. Note
403306that some of the application templates define their own database services as
@@ -411,11 +314,5 @@ creating from the templates. This allows developers to experiment with creating
411314their own applications.
412315
413316You can direct your developers to the
414- ifdef::openshift-enterprise[]
415317link:../dev_guide/templates.html#using-the-instantapp-templates[Using the InstantApp Templates]
416- endif::[]
417- ifdef::openshift-origin[]
418- link:../../dev_guide/templates.html#using-the-instantapp-templates[Using the InstantApp Templates]
419- endif::[]
420318section in the Developer Guide for these instructions.
421- // end::firststeps[]
0 commit comments