SlideShare a Scribd company logo
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
AWS  ElasticBeanstalk
Docker対応
アマゾン  データサービス  ジャパン株式会社
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
2
AWS  ElasticBeanstalk:  
構築・デプロイの⾃自動化サービス
Instance
Amazon  RDSElastic  Load
Balancer
Instance
Auto  scaling  GroupCloudWatch
deploy!
WAR
ZIP
Java Python PHP .NET Ruby nodeJS Docker
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
3
ElasticBeanstalkの論論理理構成
Application
  Environment Version
RespositoryURL Environment  Configuration
Configuration  Template
  Environment
URL Environment  Configuration
WAR/ZIP
WAR/ZIP
WAR/ZIP
WAR/ZIP
  Environment
URL Environment  Configuration
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
4
ElasticBeanstalkのDockerサポート
! ElasticBeanstalkで任意のDockerコンテナを実⾏行行可能に
•  Dockerコンテナとして構築できれば任意のDistribution・任意の
⾔言語で構築した実⾏行行環境をElasticBeanstalkにデプロイ出来る
!   さらに、下記のような運⽤用が可能
•  ローカルのコンテナ上でコードを開発&テスト
•  同じコンテナをElasticBeanstalk上の本番環境にデプロイ
meets
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
5
各環境の中には
!   ⾃自動で構築されたDocker環境
•  Load-‐‑‒balanced  /  Single  Instance
•  各インスタンスに1つの管理理された
コンテナ
 Application
 Environment
URL Environment Configuration
AWS Management
Console
Admin
SSHUsers
Developer
ZIP
Instance
Amazon  RDSElastic  Load
Balancer
Instance
Auto  Scaling  GroupCloudWatch
AMI
Dockerfile
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
6
 Environment
各インスタンスの中には
EC2
HM
AutoScaling
Nginx (tcp:80)
Docker
(tcp: xxxx)
コンテナの上げ下げ
コンテナとの
接続ポートの更新
コマンド
各インスタンス
・マネージされたコンテナ
が1つ
・Host Manager (HM)が
コマンドを実行
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
7
コンテナの設定記述の仕⽅方
!   次の2種類の記述⽅方式を利利⽤用可能
•  Dockerfile
•  ⼀一般的なコンテナの構築に使われるDockerfile
•  AWS特有ではないため、どこでも作成・編集・構築が可能
•  コンテナの構築⽅方法を指⽰示するファイルなのでコンテナ起動オプ
ションを指定したい場合は不不⼗十分
•  Dockerrun.aws.json
•  ElasticBeanstalk独⾃自の形式
•  使⽤用するコンテナイメージ、コンテナから参照するボリュームなど
を指定
•  コンテナの構築⽅方法⾃自体は指定できない(要Dockerfileと併⽤用)
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
8
Dockerfileの例例
!   いわゆる普通のDockerfile
•  EXPOSEで指定したポートがnginxとの接続に使われる
注:nginx経由で外部に開けるポートは1つだけ
!   その他注意点
•  FROMとEXPOSEは必須
•  CMDとENTRYPOINTのどちらかは必須
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
9
Dockerrun.aws.jsonの例例
  
プライベートレポジトリを使用する際に必要
S3バケット上に置いた認証情報ファイルを指定
使用すべきイメージ
コンテナがEXPOSEするポートを指定
(ElasticBeanstalkが使用するのはContainerPortのみ)
コンテナにマウントすべき
EC2インスタンスのディレクトリを指定
コンテナ内のログディレクトリを指定
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
10
デプロイの仕⽅方
!   デプロイ時のファイル形式も2種類
•  単⼀一ファイル
•  Dockerfile  /  Dockerrun.aws.jsonのみのデプロイの場合
•  Pros:  アーカイブを作る必要がなく簡便便
•  Cons:  ElasticBeanstalkの環境カスタマイズやリソースファイルの
デプロイ等は出来ない
•  ZIPアーカイブ  /  gitでデプロイ
•  Dockerfile  /  Dockerrun.aws.jsonあるいは両⽅方を含むアーカイブ
•  Pros:  Dockerfileでイメージを構築して起動オプションを指定して
起動したり、環境カスタマイズを⾏行行ったりすることが可能
•  Cons:  アーカイブを作らないといけない
柔軟性とコンテナ記述ファイルのバージョン管理も考慮すると
gitで管理してgit aws.pushでデプロイがおすすめ
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
11
デプロイ時の動作  (1/4)
EC2
HM
AutoScaling
Nginx (tcp:80)
Docker
(current, ver 1)
1. Deploy指示
Version
Respository
Version  1
Version  2
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
12
デプロイ時の動作  (2/4)
EC2
HM
AutoScaling
Nginx (tcp:80)
Docker
(current, ver 1)
1. Deploy指示
Docker
(staging, ver 2)
3. Staging
コンテナ作成
Version
Respository
Version  1
Version  2
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
13
デプロイ時の動作  (3/4)
EC2
HM
AutoScaling
Nginx (tcp:80)
Docker
(old, ver 1)
1. Deploy指示
Docker
(current, ver 2)
3. Staging
コンテナ作成
4. Nginx設定変更
Version
Respository
Version  1
Version  2
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
14
デプロイ時の動作  (4/4)
EC2
HM
AutoScaling
Nginx (tcp:80)
Docker
(current, ver 2)
Version
Respository
Version  1
Version  2
© 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
15
S3をプライベートレポジトリとして利利⽤用
Developer
1. docker push4. docker pull
2. deploy
registry
registry
registry
registry
Docker registry container
with AWS credentials
Region
app
app
app
registry
app
3. docker run registry
5. docker stop registry
詳細: http://aws.typepad.com/sajp/2014/06/eb-docker-private-repo.html

More Related Content

PPTX
Sql server のバックアップとリストアの基礎
PDF
VMware Cloud on AWS POC HCX デプロイガイド
PDF
Google Cloud のネットワークとロードバランサ
PDF
NW-JAWS x Tech-on勉強会:AWS Transit Gateway で広がる ネットワークアーキテクチャ
PDF
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
PPTX
AWSでEC2上にMTAを構築した話
PDF
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順
PPTX
設計・構築においてのドキュメントの重要性について
Sql server のバックアップとリストアの基礎
VMware Cloud on AWS POC HCX デプロイガイド
Google Cloud のネットワークとロードバランサ
NW-JAWS x Tech-on勉強会:AWS Transit Gateway で広がる ネットワークアーキテクチャ
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
AWSでEC2上にMTAを構築した話
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順
設計・構築においてのドキュメントの重要性について

What's hot (20)

PDF
脆弱性ハンドリングと耐える設計 -Vulnerability Response-
PPTX
與大師對談: 轉移到微服務架構必經之路 ~ 系統與資料庫重構
PDF
Infrastructure as Code (IaC) 談義 2022
PPTX
GraphQLのsubscriptionで出来ること
PDF
速習!論理レプリケーション ~基礎から最新動向まで~(PostgreSQL Conference Japan 2022 発表資料)
PDF
AWS Black Belt Online Seminar AWS Direct Connect
PDF
Microservices at Mercari
PDF
OpenStackで始めるクラウド環境構築入門
PDF
20200212 AWS Black Belt Online Seminar AWS Systems Manager
PDF
[2019] 200만 동접 게임을 위한 MySQL 샤딩
PDF
三位一体の自動化で壊せ DevとOpsの壁~アラサーエンジニアの挑戦~
PPTX
Kubernetesでの性能解析 ~なんとなく遅いからの脱却~(Kubernetes Meetup Tokyo #33 発表資料)
PDF
Laravelを用いたゲームサーバーのチューニング
PDF
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
PDF
「なにをどこまでやれば?」OWASP SAMMが導く開発セキュリティ強化戦略
PDF
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-
PDF
VMware Cloud on AWSネットワーク詳細解説
PPTX
SQL Server のロック概要
PPTX
3. 마이크로 서비스 아키텍쳐
PDF
Oracle Data Guard による高可用性
脆弱性ハンドリングと耐える設計 -Vulnerability Response-
與大師對談: 轉移到微服務架構必經之路 ~ 系統與資料庫重構
Infrastructure as Code (IaC) 談義 2022
GraphQLのsubscriptionで出来ること
速習!論理レプリケーション ~基礎から最新動向まで~(PostgreSQL Conference Japan 2022 発表資料)
AWS Black Belt Online Seminar AWS Direct Connect
Microservices at Mercari
OpenStackで始めるクラウド環境構築入門
20200212 AWS Black Belt Online Seminar AWS Systems Manager
[2019] 200만 동접 게임을 위한 MySQL 샤딩
三位一体の自動化で壊せ DevとOpsの壁~アラサーエンジニアの挑戦~
Kubernetesでの性能解析 ~なんとなく遅いからの脱却~(Kubernetes Meetup Tokyo #33 発表資料)
Laravelを用いたゲームサーバーのチューニング
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
「なにをどこまでやれば?」OWASP SAMMが導く開発セキュリティ強化戦略
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-
VMware Cloud on AWSネットワーク詳細解説
SQL Server のロック概要
3. 마이크로 서비스 아키텍쳐
Oracle Data Guard による高可用性
Ad

Similar to Elastic beanstalk docker_support (20)

PDF
[AWSマイスターシリーズ] AWS Elastic Beanstalk
PDF
Amazon ECS事始め
PDF
Aws elastic beanstalk-handson-summit2012
PDF
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-
PDF
オンプレを少しずつコンテナ化する
PDF
Application Deployment on AWS
PDF
20180313 Amazon Container Services アップデート
PPTX
AWSマイスターシリーズ(Elastic Beanstalk)
PDF
20120416 aws meister-reloaded-aws-elasticbeanstalk-public
PDF
AWSマイスターシリーズReloaded(AWS Beanstalk)
PPTX
サーバ構築・デプロイが簡単に!Elastic beanstalk
PDF
Spring Boot の Web アプリケーションを Docker に載せて AWS ECS で動かしている話
PDF
AWS Blackbelt 2015シリーズ Amazon EC2 Container Service (Amazon ECS)
PDF
MasterCloud Docker Hands-on 20170725
PDF
AWS Black Belt Online Seminar 2017 AWS体験ハンズオン~Deploy with EB CLI編~
PDF
AWS Elastic Beanstalk(初心者向け 超速マスター編)JAWSUG大阪
PDF
Dockerを使ったローカルでの開発から本番環境へのデプロイまで
PPTX
20140621 july techfesta (JTF2014) 突発**むけAWS
PPTX
PHP on Cloud
PDF
アプリ屋もDockerをドカドカ使おう ~ Docker入門
[AWSマイスターシリーズ] AWS Elastic Beanstalk
Amazon ECS事始め
Aws elastic beanstalk-handson-summit2012
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-
オンプレを少しずつコンテナ化する
Application Deployment on AWS
20180313 Amazon Container Services アップデート
AWSマイスターシリーズ(Elastic Beanstalk)
20120416 aws meister-reloaded-aws-elasticbeanstalk-public
AWSマイスターシリーズReloaded(AWS Beanstalk)
サーバ構築・デプロイが簡単に!Elastic beanstalk
Spring Boot の Web アプリケーションを Docker に載せて AWS ECS で動かしている話
AWS Blackbelt 2015シリーズ Amazon EC2 Container Service (Amazon ECS)
MasterCloud Docker Hands-on 20170725
AWS Black Belt Online Seminar 2017 AWS体験ハンズオン~Deploy with EB CLI編~
AWS Elastic Beanstalk(初心者向け 超速マスター編)JAWSUG大阪
Dockerを使ったローカルでの開発から本番環境へのデプロイまで
20140621 july techfesta (JTF2014) 突発**むけAWS
PHP on Cloud
アプリ屋もDockerをドカドカ使おう ~ Docker入門
Ad

More from Amazon Web Services Japan (20)

PDF
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
PDF
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
PDF
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
PDF
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
PDF
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
PDF
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
PPTX
20220409 AWS BLEA 開発にあたって検討したこと
PDF
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
PDF
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
PDF
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
PDF
Amazon QuickSight の組み込み方法をちょっぴりDD
PDF
マルチテナント化で知っておきたいデータベースのこと
PDF
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
PDF
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
PDF
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
PDF
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
PDF
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
PPTX
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
PDF
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
PDF
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
20220409 AWS BLEA 開発にあたって検討したこと
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
Amazon QuickSight の組み込み方法をちょっぴりDD
マルチテナント化で知っておきたいデータベースのこと
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...

Elastic beanstalk docker_support

  • 1. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. AWS  ElasticBeanstalk Docker対応 アマゾン  データサービス  ジャパン株式会社
  • 2. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 2 AWS  ElasticBeanstalk:   構築・デプロイの⾃自動化サービス Instance Amazon  RDSElastic  Load Balancer Instance Auto  scaling  GroupCloudWatch deploy! WAR ZIP Java Python PHP .NET Ruby nodeJS Docker
  • 3. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 3 ElasticBeanstalkの論論理理構成 Application   Environment Version RespositoryURL Environment  Configuration Configuration  Template   Environment URL Environment  Configuration WAR/ZIP WAR/ZIP WAR/ZIP WAR/ZIP   Environment URL Environment  Configuration
  • 4. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 4 ElasticBeanstalkのDockerサポート ! ElasticBeanstalkで任意のDockerコンテナを実⾏行行可能に •  Dockerコンテナとして構築できれば任意のDistribution・任意の ⾔言語で構築した実⾏行行環境をElasticBeanstalkにデプロイ出来る !   さらに、下記のような運⽤用が可能 •  ローカルのコンテナ上でコードを開発&テスト •  同じコンテナをElasticBeanstalk上の本番環境にデプロイ meets
  • 5. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 5 各環境の中には !   ⾃自動で構築されたDocker環境 •  Load-‐‑‒balanced  /  Single  Instance •  各インスタンスに1つの管理理された コンテナ  Application  Environment URL Environment Configuration AWS Management Console Admin SSHUsers Developer ZIP Instance Amazon  RDSElastic  Load Balancer Instance Auto  Scaling  GroupCloudWatch AMI Dockerfile
  • 6. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 6  Environment 各インスタンスの中には EC2 HM AutoScaling Nginx (tcp:80) Docker (tcp: xxxx) コンテナの上げ下げ コンテナとの 接続ポートの更新 コマンド 各インスタンス ・マネージされたコンテナ が1つ ・Host Manager (HM)が コマンドを実行
  • 7. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 7 コンテナの設定記述の仕⽅方 !   次の2種類の記述⽅方式を利利⽤用可能 •  Dockerfile •  ⼀一般的なコンテナの構築に使われるDockerfile •  AWS特有ではないため、どこでも作成・編集・構築が可能 •  コンテナの構築⽅方法を指⽰示するファイルなのでコンテナ起動オプ ションを指定したい場合は不不⼗十分 •  Dockerrun.aws.json •  ElasticBeanstalk独⾃自の形式 •  使⽤用するコンテナイメージ、コンテナから参照するボリュームなど を指定 •  コンテナの構築⽅方法⾃自体は指定できない(要Dockerfileと併⽤用)
  • 8. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 8 Dockerfileの例例 !   いわゆる普通のDockerfile •  EXPOSEで指定したポートがnginxとの接続に使われる 注:nginx経由で外部に開けるポートは1つだけ !   その他注意点 •  FROMとEXPOSEは必須 •  CMDとENTRYPOINTのどちらかは必須
  • 9. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 9 Dockerrun.aws.jsonの例例    プライベートレポジトリを使用する際に必要 S3バケット上に置いた認証情報ファイルを指定 使用すべきイメージ コンテナがEXPOSEするポートを指定 (ElasticBeanstalkが使用するのはContainerPortのみ) コンテナにマウントすべき EC2インスタンスのディレクトリを指定 コンテナ内のログディレクトリを指定
  • 10. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 10 デプロイの仕⽅方 !   デプロイ時のファイル形式も2種類 •  単⼀一ファイル •  Dockerfile  /  Dockerrun.aws.jsonのみのデプロイの場合 •  Pros:  アーカイブを作る必要がなく簡便便 •  Cons:  ElasticBeanstalkの環境カスタマイズやリソースファイルの デプロイ等は出来ない •  ZIPアーカイブ  /  gitでデプロイ •  Dockerfile  /  Dockerrun.aws.jsonあるいは両⽅方を含むアーカイブ •  Pros:  Dockerfileでイメージを構築して起動オプションを指定して 起動したり、環境カスタマイズを⾏行行ったりすることが可能 •  Cons:  アーカイブを作らないといけない 柔軟性とコンテナ記述ファイルのバージョン管理も考慮すると gitで管理してgit aws.pushでデプロイがおすすめ
  • 11. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 11 デプロイ時の動作  (1/4) EC2 HM AutoScaling Nginx (tcp:80) Docker (current, ver 1) 1. Deploy指示 Version Respository Version  1 Version  2
  • 12. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 12 デプロイ時の動作  (2/4) EC2 HM AutoScaling Nginx (tcp:80) Docker (current, ver 1) 1. Deploy指示 Docker (staging, ver 2) 3. Staging コンテナ作成 Version Respository Version  1 Version  2
  • 13. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 13 デプロイ時の動作  (3/4) EC2 HM AutoScaling Nginx (tcp:80) Docker (old, ver 1) 1. Deploy指示 Docker (current, ver 2) 3. Staging コンテナ作成 4. Nginx設定変更 Version Respository Version  1 Version  2
  • 14. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 14 デプロイ時の動作  (4/4) EC2 HM AutoScaling Nginx (tcp:80) Docker (current, ver 2) Version Respository Version  1 Version  2
  • 15. © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 15 S3をプライベートレポジトリとして利利⽤用 Developer 1. docker push4. docker pull 2. deploy registry registry registry registry Docker registry container with AWS credentials Region app app app registry app 3. docker run registry 5. docker stop registry 詳細: http://aws.typepad.com/sajp/2014/06/eb-docker-private-repo.html