3.5.2. odo catalog
odo 使用不同的目录来部署组件和服务。
3.5.2.1. 组件 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
odo 使用可移植 devfile 格式来描述组件。它可以连接到各种 devfile registry,以便为不同的语言和框架下载 devfile。如需更多信息,请参阅 odo registry。
3.5.2.1.1. 列出组件 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
要列出不同 registry 中可用的所有 devfile,请运行以下命令:
$ odo catalog list components
输出示例
NAME DESCRIPTION REGISTRY
go Stack with the latest Go version DefaultDevfileRegistry
java-maven Upstream Maven and OpenJDK 11 DefaultDevfileRegistry
nodejs Stack with Node.js 14 DefaultDevfileRegistry
php-laravel Stack with Laravel 8 DefaultDevfileRegistry
python Python Stack with Python 3.7 DefaultDevfileRegistry
[...]
3.5.2.1.2. 获取有关组件的信息 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
要获得有关特定组件的更多信息,请运行以下命令:
$ odo catalog describe component
例如,运行以下命令:
$ odo catalog describe component nodejs
输出示例
* Registry: DefaultDevfileRegistry
Starter Projects:
---
name: nodejs-starter
attributes: {}
description: ""
subdir: ""
projectsource:
sourcetype: ""
git:
gitlikeprojectsource:
commonprojectsource: {}
checkoutfrom: null
remotes:
origin: https://github.com/odo-devfiles/nodejs-ex.git
zip: null
custom: null
如需有关从入门项目创建项目的更多信息,请参阅 odo create。