Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
JBoss EAP for OpenShift
Search
Mamoru Shimizu
February 28, 2019
Technology
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JBoss EAP for OpenShift
OpenShift Meetup Tokyo #2 で発表した資料です。
Mamoru Shimizu
February 28, 2019
More Decks by Mamoru Shimizu
See All by Mamoru Shimizu
Tekton 入門
mamoru1112
4
1.6k
Other Decks in Technology
See All in Technology
あるけみー式LTスライド作成術
alchemy1115
1
180
2026-09-11 【Snowflake World Tour Tokyo 2026】Snowflakeを起点に、AI Agentが自律稼働し続ける未来へ / Driving AI Agents with Snowflake
civitaspo
0
320
AIで開発は速くなったのに、なぜ現場は楽にならないのか 〜あなたの組織のボトルネックを突き止めるワークショップ〜
jacopen
1
330
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
3
470
20260912_スクラムにジェネラリストは必要か
ryugen04
0
350
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
260
クロスボーダーM&AのValue Upを支えるプロダクト開発。日米チームのハブになったプロダクトエンジニアの実践 / Product Engineering Conference 2026
genda
0
120
家のリアーキテクト・リファクタリング
suguruooki
0
110
Multica × 長期記憶:40個のミニプロジェクト管理
eiei114
1
250
全員がプロダクトへ向き合う組織を持続成長させるために——組織づくりのフライホイールと4象限 / The Flywheel Model and Four Quadrants for Organizational Design
hiro_torii
4
980
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
440
作品が生態系になった ─ Mini Tokyo 3D から世界へ
nagix
0
150
Featured
See All Featured
Everyday Curiosity
cassininazir
0
310
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Marketing to machines
jonoalderson
1
5.8k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
A better future with KSS
kneath
240
18k
Scaling GitHub
holman
464
140k
The untapped power of vector embeddings
frankvandijk
2
1.9k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
470
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
680
Transcript
JBoss EAP for OpenShift Mamoru Shimizu / Consultant / Red
Hat K.K.
自己紹介 • Name : Mamoru Shimizu (Twitter: @mamomamo) • Company
: Red Hat K.K. • Role : Consultant • 最近の仕事 ◦ OpenShift 上のアプリケーション開発支援 ◦ OpenShift の構築支援 ◦ OpenShift ハンズオンの講師 など
アジェンダ • JBoss EAP for OpenShift の S2I(Source-to-Image) の紹介 •
JBoss EAP for OpenShift 利用上の注意点
JBoss EAP for OpenShift とは • Red Hat Container Catalog
から取得可能であり、 Red Hat のセキュリティチームによ り品質保証のプロセスを受けた、 OpenShift 上で動かすための JBoss EAP のコンテナ イメージ • 参考 : Red Hat Container Catalog ◦ https://access.redhat.com/containers/
S2I (Source-to-Image) とは • ベースイメージに対して、ソースコードからコンパイルしたバイナリを挿入し、新しいコ ンテナイメージを作成するフレームワーク
Deploy a JBoss EAP S2I Application to OpenShift • JBoss
EAP for OpenShift のテンプレートと、 Java アプリケーションのソースコードか ら、以下のコマンドによりアプリケーションを作成 • 上記のコマンドを実行することで、 Pod ・ Service ・ DeploymentConfig ・ BuildConfig な どが作成される oc new-app --template=eap72-basic-s2i \ -p IMAGE_STREAM_NAMESPACE=eap-demo \ -p SOURCE_REPOSITORY_URL=https://github.com/jboss-developer/jboss-eap-quickstarts \ -p SOURCE_REPOSITORY_REF=openshift \ -p CONTEXT_DIR=kitchensink
How the JBoss EAP for OpenShift S2I Process Works 1.
ソースリポジトリに pom.xml が存在すれば、 Maven ビルドプロセスが起動される 2. Maven ビルドプロセスが成功すると、 EAP_HOME/standalone/deployments に、生 成されたパッケージ (JAR/WAR/EAR) がコピーされる 3. ソースリポジトリに configuration ディレクトリが存在すれば、 EAP_HOME/standalone/configuration にファイルがコピーされる 4. ソースリポジトリに modules ディレクトリが存在すれば、 EAP_HOME/modules にファ イルがコピーされる
EAP for OpenShiftのS2Iで他に実現できること • Deployment Artifacts ◦ デフォルトでは target ディレクトリからアーティファクトをコピーするが、
BuildConfig の ARTIFACT_DIR 環境変数に設定されたディレクトリ配下からコピーするように変更できる • Artifact Repository Mirrors ◦ BuildConfig に MAVEN_MIRROR_URL 環境変数を設定することで、 Maven リポジトリのミラーサイト を指定できる • Environment Variables ◦ 上記の他にも HTTP プロキシの設定( HTTP_PROXY_HOST など)や、 Mavan コマンドの引数 ( MAVEN_ARGS_APPEND )を指定することができる
S2Iスクリプトの実体 • EAP for OpenShift のコンテナイメージの /usr/local/s2i 配下に格納されたシェルスク リプト •
run : ◦ JBoss EAP の設定と起動 • assemble : ◦ Maven コマンドにより、ソースコードをビルドし、パッケージ( WAR )を生成 ◦ 生成されたパッケージを EAP_HOME/standalone/deployments ディレクトリ配下へ移動
S2Iスクリプトのカスタマイズ • S2I スクリプトはカスタマイズ可能 • ソースリポジトリの .s2i/bin ディレクトリ配下にカスタマイズした S2I スクリプトを格納す
ることで、 S2I ビルドプロセスの実行時に既存の S2I スクリプトを上書きすることができ る
Comparison: JBoss EAP and JBoss EAP for OpenShift Feature Status
Description Management Console Not included Management CLI Not recommended コンテナが再起動すると設定が消えるから非推奨 Managed domain Not supported Default root page Disabled Remote messaging Supported ActiveMQ ArtemisはシングルPodのみsupported Transaction Recovery Partially supported 次ページを参照
Unsupported Transaction Recovery Scenarios • Pod がスケールインした際に、実行途中のトランザクションが失敗し、手動でトランザ クションのリカバリする必要がある • Unsupported
Transaction Recovery Scenarios ◦ JTS transactions ◦ XTS transactions ◦ Transations propagated over JBoss Remoting ◦ Transactions propagated over XATerminator
まとめ • JBoss EAP for OpenShift の S2I は色々できる •
JBoss EAP ≠ JBoss EAP for OpenShift • 単純な Lift&Shift はコンテナアプリケーションのアンチパターンを踏む可能性がある ため、設計時に設計原則を確認しておこう ◦ 「コンテナベース・アプリケーションの設計原則」 ▪ https://www.redhat.com/cms/managed-files/cl-cloud-native-container-design-whitepaper-f880 8kc-201710-a4-ja.pdf
参考情報 • Getting Started with JBoss EAP for OpenShift Container
Platform ◦ https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_app lication_platform/7.2/html/getting_started_with_jboss_eap_for_openshift_con tainer_platform/
THANK YOU