このコンテンツは選択した言語では利用できません。

13.2. Cartridge Directory Structure


The required directories of a cartridge must conform to a set structure or the cartridge can fail to function properly. You can add additional directories and files as needed to support the function of your cartridge.
  • Required files must exist for minimal OpenShift Enterprise support of the cartridge.
  • Discretionary files are recommended, but not necessary. For example, conf.d is the standard file where a web framework installs its httpd configuration.
  • Optional files are not necessary. Use optional files to support additional cartridge functionality.

Figure 13.1. Cartridge Directory Structure

To support multiple software versions within one cartridge, create symbolic links between the $cartridge_name/bin/control file and the $cartridge_name/versions/$software_version/bin/control file. Alternatively, use the $cartridge_name/bin/control file as a shim to call the control file for the desired version.
When creating an instance of your cartridge for use by a gear, OpenShift Enterprise copies the files, links, and directories from the cartridge library, with the exception of the $cartridge_name/usr/ directory. The $cartridge_name/usr/ directory is symbolically linked to the gear's cartridge instance. This link enables all cartridge instances to share libraries and other data.
See Chapter 3, Locking Cartridges for details on customizing a cartridge instance.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat