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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Cognition AI Japan - ウェビナー2_テストQA_運用監視
cogakira
0
130
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
2
330
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
150
IoTデバイスを繋げるプロトコルMatterをAndroidで使用する方法
harutiro
0
130
スキルを作る、その前に!複数人で使われるスキルを 作るためのプロセス
junkifurukawa
2
370
SREでアラート疲れを 解決しよう!
kairim0
1
220
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
400
AI時代のAPI開発を加速する品質ガードレール / API Quality Guardrails in the AI Era
yokawasa
0
180
Snapshot Testing in Practice: Predictable and Reliable SwiftUI Views
fespinoza
0
180
The seven pitfalls of AI (revised version)
ufried
0
310
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
140
Incremental HTTP
kazuho
5
2.1k
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Building Applications with DynamoDB
mza
96
7.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
870
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
530
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
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