此内容没有您所选择的语言版本。

5.4. Adding QuickStarts to the Management Console


Developers can create applications using QuickStarts, which are preconfigured applications installed from a specific source. However, QuickStarts are not available to developers by default in OpenShift Enterprise. You can browse the OpenShift Origin Index at http://origin.ly to search for QuickStarts created by the OpenShift community or see the OpenShift QuickStart Developer's Guide to learn more about creating your own:
While applications created from web framework cartridges can be automatically updated, applications created from QuickStarts cannot. Applications created using web framework cartridges are created from a designated runtime. If the runtime is updated, the cartridge automatically updates when the cartridge is restarted. However, applications created using QuickStarts require an update using Git to update the application.
You can add QuickStarts to the Management Console so that developers using your OpenShift Enterprise instance can use them to create applications. However, you must first create or obtain a configuration for the QuickStart in JSON format. When searching the OpenShift Origin Index at http://origin.ly for community QuickStarts, you can click the gift icon next to any result to get the JSON relevant to that QuickStart.

Warning

While QuickStarts can be added to the Management Console, QuickStarts themselves, including any community cartridges used by a QuickStart, are not supported by Red Hat and can require more configuration to work with your version of OpenShift Enterprise.
To add QuickStarts to the Management Console, edit the /etc/openshift/quickstarts.json file on the broker host and add entries for one or more QuickStart configurations. The following shows the basic format of a /etc/openshift/quickstarts.json file with two QuickStarts using some common parameters:
[
  {"quickstart": {
    "id":"QuickStart1_ID",
    "name":"QuickStart1_Name",
    "website":"QuickStart1_Website",
    "initial_git_url":"QuickStart1_Location_URL",
    "cartridges":["Cart_Name"],
    "summary":"QuickStart1_Description",
    "tags":["Tags"],
    "admin_tags":["Tags"]
  }},
  {"quickstart": {
    "id":"QuickStart2_ID",
    "name":"QuickStart2_Name",
    "website":"QuickStart2_Website",
    "initial_git_url":"QuickStart2_Location_URL",
    "cartridges":["Cart_Name"],
    "summary":"QuickStart2_Description",
    "tags":["Tags"],
    "admin_tags":["Tags"]
  }}
]
Copy to Clipboard Toggle word wrap
You must ensure that any cartridges defined in the "cartridges" parameter of a QuickStart configuration are available to developers in your OpenShift Enterprise instance. These can be cartridges local to your instance or downloadable cartridges. If the web framework cartridge required by a QuickStart is unavailable, developers are unable to create applications using the QuickStart, even if the QuickStart appears as an option in the Management Console. See the OpenShift Enterprise Deployment Guide for information on installing cartridges:
For example, the following shows a Django QuickStart configuration that requires the python-2.7 cartridge:

Example 5.5. /etc/openshift/quickstarts.json File with a Django QuickStart Entry

[
  {"quickstart": {
    "id":"2",
    "name":"Django",
    "website":"https://www.djangoproject.com/",
    "initial_git_url":"git://github.com/openshift/django-example.git",
    "cartridges":["python-2.7"],
    "summary":"A high-level Python web framework that encourages rapid development and clean, pragmatic design. Administrator user name and password are written to $OPENSHIFT_DATA_DIR/CREDENTIALS.",
    "tags":["python","django","framework"],
    "admin_tags":[]
  }}
]
Copy to Clipboard Toggle word wrap
After adding entries for QuickStart configurations to the /etc/openshift/quickstarts.json file, clear the Management Console cache to ensure the QuickStart appears immediately for developers. For releases prior to OpenShift Enterprise 2.1, run the following command on the broker host:
# oo-admin-broker-cache --clear --console
Copy to Clipboard Toggle word wrap
For OpenShift Enterprise 2.1 and later, run the following command on the broker host:
# oo-admin-console-cache --clear
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat