コンテナーでの Red Hat build of OpenJDK 21 アプリケーションのパッケージ化


Red Hat build of OpenJDK 21

Red Hat Customer Content Services

概要

Red Hat build of OpenJDK は、Red Hat Enterprise Linux プラットフォーム上の Red Hat 製品です。『コンテナーでの Red Hat build of OpenJDK 21 アプリケーションのパッケージ化』 ガイドでは、この製品の概要と、コンテナーでアプリケーションをパッケージ化する方法を説明します。

Red Hat build of OpenJDK ドキュメントへのフィードバック

エラーを報告したり、ドキュメントの改善を提案したりするには、Red Hat Jira アカウントにログインし、課題を送信してください。Red Hat Jira アカウントをお持ちでない場合は、アカウントを作成するように求められます。

手順

  1. 次のリンクをクリックして チケットを作成します
  2. Summary に課題の簡単な説明を入力します。
  3. Description に課題や機能拡張の詳細な説明を入力します。問題があるドキュメントのセクションへの URL も記載してください。
  4. Submit をクリックすると、課題が作成され、適切なドキュメントチームに転送されます。

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

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。まずは、マスター (master)、スレーブ (slave)、ブラックリスト (blacklist)、ホワイトリスト (whitelist) の 4 つの用語の置き換えから始めます。この取り組みは膨大な作業を要するため、用語の置き換えは、今後の複数のリリースにわたって段階的に実施されます。詳細は、Red Hat CTO である Chris Wright のメッセージ をご覧ください。

第1章 コンテナーの Red Hat build of OpenJDK アプリケーション

Red Hat build of OpenJDK イメージには、アプリケーション JAR ファイルを自動的に検出し、Java を起動するデフォルトの起動スクリプトがあります。スクリプトの動作は環境変数を使用してカスタマイズできます。詳細は、コンテナーの /help.md を参照してください。

OpenJDK イメージの /deployments ディレクトリーの Java アプリケーションは、イメージの読み込み時に実行されます。

注記

Red Hat build of OpenJDK アプリケーションを含むコンテナーは、セキュリティー更新では自動的に更新されません。これらのイメージは 3 か月ごとに 1 回更新するようにしてください。

アプリケーション JAR ファイルはファット JAR またはシン JAR にすることができます。

  • Fat JAR にはすべてのアプリケーションの依存関係が含まれます。
  • thin JAR は、アプリケーションの依存関係の一部またはすべてが含まれる他の JAR を参照します。

    シン JAR は以下の場合にのみサポートされます。

    • フラットなクラスパスがあります。
    • すべての依存関係は、/deployments ディレクトリーにある JAR です。

第2章 コンテナーでの Red Hat build of OpenJDK アプリケーションのデプロイ

Red Hat build of OpenJDK アプリケーションをコンテナーにデプロイし、コンテナーのロード時に実行することができます。

手順

  • アプリケーション JAR をイメージ JAR ファイルの /deployments ディレクトリーにコピーします。

    たとえば、以下では、Red Hat build of OpenJDK 21 UBI8 イメージに testubi.jar と呼ばれるアプリケーションを追加する簡単な Dockerfile を示しています。

    Copy to Clipboard Toggle word wrap
    FROM registry.access.redhat.com/ubi8/openjdk-17
    
    COPY target/testubi.jar /deployments/testubi.jar

第3章 Red Hat build of OpenJDK コンテナーイメージの更新

Java アプリケーションを使用する Red Hat build of OpenJDK コンテナーに最新のセキュリティー更新が含まれるようにするには、コンテナーを再ビルドします。

手順

  1. Red Hat build of OpenJDK イメージをプルします。
  2. Red Hat build of OpenJDK アプリケーションをデプロイします。詳細は、コンテナーへの Red Hat build of OpenJDK アプリケーションのデプロイ を参照してください。

    Red Hat build of OpenJDK コンテナーと Red Hat build of OpenJDK アプリケーションが更新されました。

関連情報

改訂日時: 2024-05-10

法律上の通知

Copyright © 2024 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

Theme

© 2025 Red Hat, Inc.