Slides for Azure Webinar: Containerized MEAN App on Azure PaaS
Web App for Containers は、アプリスタックのホストに Docker コンテナーを使用するため皆さんが今Linux上で利用しているOSSベースのアプリもアプリスタックごとDockerコンテナ化することでそのまま Web App for Containersで利用することができます。
本ウェビナーでは簡単なMEANスタックアプリを題材に、アプリをコンテナ化し Web App for Containersにデプロイするまでの一連の流れを解説します。
MEANスタックのMongoDB部分についてはAzure Cosmos DBのMongo APIを利用して完全マネージドな構成を実現します。
21. Web App for Containers
VM VM
VM VM
①
②
③
アプリのDockerコンテナ化
Azure PaaSでフルマネージド化
Container
Express
Angular
Node.js
Express
Angular
Node.js
MongoDB
MongoDB
Container
Express
Angular
Node.js
Cosmos DB
( Mongo API )
Cosmos DB
( Mongo API )
34. 最も単純なデプロイメントの流れ
Local PC Container Registry
• 開発、ビルド、テスト
• コンテナイメージ作成
コンテナイメージを
Registryにプッシュ
Web Appが
コンテナイメーを
Registryからプル
https://hub.docker.com/
deployment slot
• dev
• Staging
• production
Azure Container Service
IaaSベースのサービス、複数のVMを使ってクラスタを構成。Kubernetes, DCOS Docker, Swarmを使ってコンテナのスケールとオーケストレーションが簡単できるサービス
Azure Container Instance
VMいらずで、シングルコマンドで簡単かつ高速に実行可能なコンテナインスタンス。秒単位課金
App Service (Web App for Containers + App Service on Linux)
アプリ実行に必要なさまざま機能が用意されたPaaS環境
Global Distribution From The Ground-up:
(1) DocumentDB is a Ring 0 Azure service: Available in all Azure regions by default, including sovereign/government clouds
(2) Automatic multi-region replication
Associate any number of regions with your database account
Policy based geo-fencing
(3) Multi-homing APIs
Apps don’t need to be redeployed during regional failover
(4) Support for both manual and automatic failover
It’s limitless:
First Azure service to offer comprehensive SLA for latency, throughput, availability and consistency