Docker Cookbook


See Also • Task definition  reference 268 | Chapter 8: Docker in the Cloud



Download 6,31 Mb.
Pdf ko'rish
bet210/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   206   207   208   209   210   211   212   213   ...   260
Bog'liq
Docker Cookbook

See Also
• Task definition 
reference
268 | Chapter 8: Docker in the Cloud


8.14 Starting an Application in the Cloud Using Docker
Support in AWS Beanstalk
Problem
You would like to deploy a Docker-based application in the cloud by just 
pushing
your Dockerfile. You want the cloud service to automatically spin up instances and
configure possible load-balancers.
Solution
Use 
AWS Elastic Beanstalk
. Beanstalk uses AWS EC2 instances, and can automatically
create an elastic load-balancer, create a security group, and monitor the health of your
application and resources. Docker support in Beanstalk was 
announced
in April
2014. Originally, Beanstalk supported only single-container applications, but recently
AWS announced a 
coupling
between AWS ECS and Beanstalk. This coupling allows
you to let Beanstalk use an ECS cluster as an environment for your application and
run multiple containers per instances.
To illustrate Docker support in Beanstalk, you are going to set up a Beanstalk envi‐
ronment using AWS CLI tools, and deploy the 
2048 game
using a single Dockerfile.
This is a variant of the official Beanstalk 
documentation
.
To get started, you will need a few things:
• An AWS account (see 
Figure 8-1
)
• The AWS CLI (see 
Recipe 8.2
)
• Register for Beanstalk by accessing the 
console
 and following the onscreen
instructions
The application deployment consists of three steps:
1. Create a Beanstalk application with 
awscli
.
2. Create a Beanstalk environment based on a Docker software stack (called a 
solu‐
tion stack
in Beanstalk).
3. Create your Dockerfile and deploy it using the 
eb
CLI.
All these steps can be done via the AWS console. This recipe shows
a complete CLI-based deployment, but the output of the 
awscli
calls are truncated.

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   206   207   208   209   210   211   212   213   ...   260




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish