Docker Cookbook


Using Docker Compose to Test Apache Mesos and Marathon on Docker | 197



Download 6,31 Mb.
Pdf ko'rish
bet160/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   156   157   158   159   160   161   162   163   ...   260
Bog'liq
Docker Cookbook

7.2 Using Docker Compose to Test Apache Mesos and Marathon on Docker | 197


- mesosmaster:master
command: --master zk://zk:2181/mesos --zk zk://zk:2181/marathon
ports:

"8080:8080"
mesosslave:
image: garland/mesosphere-docker-mesos-master:latest
ports:

"5051:5051"
links:
- zookeeper:zk
- mesosmaster:master
entrypoint: mesos-slave
environment:
- MESOS_HOSTNAME=192.168.33.10
- MESOS_MASTER=zk://zk:2181/mesos
- MESOS_LOG_DIR=/var/log/mesos
- MESOS_LOGGING_LEVEL=INFO
To access the Marathon sandbox, we started the Mesos slave with
the environment variable 
MESOS_HOSTNAME=192.168.33.10
.
Replace this IP with the IP of your Docker host.
Copy this file into 
docker-compose.yml
and launch Compose:
$ ./docker-compose up -d
Recreating vagrant_zookeeper_1...
Recreating vagrant_mesosmaster_1...
Recreating vagrant_marathon_1...
Recreating vagrant_mesosslave_1...
...
Once the images have been downloaded and the containers started, you will be able
to access the Mesos UI a:5050">t 
:5050">http://:5050
. The Marathon UI will be
available on port 8080 of the same host.
Discussion
If you have cloned the online repository that comes with this book, you are only a
vagrant up
away from running Mesos with Docker:
$ git clone https://github.com/how2dock/docbook.git
$ cd dockbook/ch07/compose
$ vagrant up
$ vagrant ssh
$ cd /vagrant
$ docker-compose -f mesos.yml up -d
You can then manage the containers with the 
docker-compose
command.
198 | Chapter 7: The Docker Ecosystem: Tools



Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   156   157   158   159   160   161   162   163   ...   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