SlideShare a Scribd company logo
1 of 35
Docker hosting on FIWARE Lab
Remote management with local docker client
Kenneth Nagin
IBM
Cloud Chapter Lead, FIWARE
nagin@il.ibm.com
5
FIWARE Lab Cloud Docker Hosting Overview
• Docker Hub: cloud service for managing and sharing Docker container images, including
FIWARE services, i.e. Generic Enablers (GEs) (http://catalogue.fiware.org/enablers);
• Docker Engine: creates and runs Docker containers; pulls/pushes images from/to
Docker Hub;
• Docker Compose: defines and runs multi-container applications;.
• Docker Swarm: manages a pool of Docker hosts using the full suite of Docker tools.
Because Docker Swarm serves the standard Docker API, any tool that already
communicates with a Docker daemon, e.g. Docker-Compose, can use Swarm to
transparently scale to multiple hosts.
• Docker Machine: creates and manages Docker hosts locally or on cloud providers
(including OpenStack). It can be used to create and manage Docker swam clusters.
• FIWARE Lab Docker Hosting: Docker Containers, Docker machines, and Docker Swarm
clusters can be hosted on the FIWARE lab, but remotely created and managed by local
Docker clients;
Simple Docker hosting on FIWARE
Remotely Managed by Docker Client
……
Region
….
Region
….
client
client
docker-engine
docker-machine
docker-compose
docker-swarm
docker api, openstack api, ssh
any tool based
on
docker-apidocker cli
7
Set up steps
1. Sign up fiware account (https://account.lab.fiware.org/sign_up/)
2. (Optionall) Request Community Upgrade
3. The orgranization automatically associated with your account must be able to
allocate at least on floating point IP and access at least one FIWARE region.
You can create other organizations.
4. In Cloud service
– Allocate a floating point IP
– Create Security Group that exposes ports for daemon, ssh, and any other
ports that are required.
5. Install docker and docker machine on your local computer
6. Use docker-machine to create hosts & swarm clusters on the desired FIWARE
regions
FIWARE set up: Allocate at least one public ip
FIWARE set up: Create Security Group
FIWARE set up: Create Security Group
Required:
• Docker Daemon Port 2376
• SSH: Port 22
Optional:
• Auto allocated user ports:
32768-33768
• Other User Ports e.g. 8080
• Docker Swarm Master Port:
3376
FIWARE set up: List images
14
FIWARE Setup: Get image ID
15
docker-machine create docker host on fiware
export OS_REGION_NAME=<fiware region, e.g. 'Spain2‘>
export OS_TENANT_NAME=<user’s organization, e.g. ‘username cloud'
export OS_USERNAME=<user’s email address, e.g.
‘username@gmail.com’
export OS_PASSWORD=<user’s password>
export OS_AUTH_URL='http://cloud.lab.fi-ware.org:4730/v2.0/'
export OS_AUTH_STRATEGY='keystone'
16
docker-machine create docker host on fiware
docker-machine create -d openstack
--openstack-flavor-id="2"
--openstack-image-name="Ubuntu Server 14.04.1 (x64)"
--openstack-net-name="node-int-net-01"
--openstack-floatingip-pool="public-ext-net-01"
--openstack-sec-groups="docker-machine-sg" docker-host
eval “$(docker-machine env <host name>)”
mongo:
image: mongo:2.6
command: --smallfiles
orion:
image: fiware/orion
links:
- mongo
ports:
- ":1026"
command: -dbhost mongo
27
Docker create swarm container
Save token in $TOKEN
> docker run swarm create
28
Docker Swarm: create master
>export OS_REGION_NAME=Spain2
>docker-machine create
-d openstack
--openstack-flavor-id="2"
--openstack-image-id=$imageID
--openstack-net-name="node-int-net-01"
--openstack-floatingip-pool="public-ext-net-01"
--openstack-sec-groups="docker-machine-sg"
--swarm --swarm-master
--swarm-discovery token://$TOKEN FIWARE-SPAIN2
29
Docker Swarm: create slave
>export OS_REGION_NAME=Crete
>docker-machine create
-d openstack
--openstack-flavor-id="2"
--openstack-image-id=$imageID
--openstack-net-name="node-int-net-01"
--openstack-floatingip-pool="public-ext-net-01"
--openstack-sec-groups="docker-machine-sg"
--swarm
--swarm-discovery token://$TOKEN FIWARE-Crete
docker swarm
• docker-machine ls
>eval “$(docker-machine env --swarm FIWARE-SPAIN2)”
>docker info
>eval $(docker-machine env --swarm FIWARE-SPAIN2)
>docker run hello-world
>docker ps -a
>eval $(docker-machine env --swarm FIWARE-SPAIN2)
>docker-compose up -d
>docker ps
>curl http://147.27.60.99:32768/employees/resources/employees/
>eval $(docker-machine env --swarm FIWARE-SPAIN2)
>docker-compose stop
>docker-compose ps
Simple Docker hosting on FIWARE
Remotely Managed by Docker Client
……
Region
….
Region
….
client
client
docker-engine
docker-machine
docker-compose
docker-swarm
docker api, openstack api, ssh
any tool based
on
docker-apidocker cli

More Related Content

Viewers also liked

Calendario javier jhonatan
Calendario javier jhonatanCalendario javier jhonatan
Calendario javier jhonatanpovedadany
 
Evaluation Question 1: Prep for Interview
Evaluation Question 1: Prep for InterviewEvaluation Question 1: Prep for Interview
Evaluation Question 1: Prep for InterviewSammi Wilde
 
M6d cassandrapresentation
M6d cassandrapresentationM6d cassandrapresentation
M6d cassandrapresentationEdward Capriolo
 
Stop motion evaluation
Stop motion evaluationStop motion evaluation
Stop motion evaluationaq101824
 
Tarea de heramientas de colaboracion digital
Tarea de heramientas de colaboracion digitalTarea de heramientas de colaboracion digital
Tarea de heramientas de colaboracion digitalFabian Garcia
 
Reach.UrFaculty - Govt. Jobs Update Mar 7
Reach.UrFaculty - Govt. Jobs Update Mar 7Reach.UrFaculty - Govt. Jobs Update Mar 7
Reach.UrFaculty - Govt. Jobs Update Mar 7Reshmaurfaculty
 
Angical fest 2011 1º dia 2
Angical fest 2011 1º dia 2Angical fest 2011 1º dia 2
Angical fest 2011 1º dia 2angical-piaui
 
Reach.UrFaculty - Govt. Jobs Update Mar 8
Reach.UrFaculty - Govt. Jobs Update Mar 8Reach.UrFaculty - Govt. Jobs Update Mar 8
Reach.UrFaculty - Govt. Jobs Update Mar 8Reshmaurfaculty
 
ВедаПульс - мировое признание
ВедаПульс -  мировое признаниеВедаПульс -  мировое признание
ВедаПульс - мировое признаниеЕлена Шальнова
 
Introducao ao-estudo-do-lexico-brincando-com-as-palavras
Introducao ao-estudo-do-lexico-brincando-com-as-palavrasIntroducao ao-estudo-do-lexico-brincando-com-as-palavras
Introducao ao-estudo-do-lexico-brincando-com-as-palavrasValéria Araújo Pereira
 
Why would a brand choose to become a sponsor of the Olympics 2012?
Why would a brand choose to become a sponsor of the Olympics 2012?Why would a brand choose to become a sponsor of the Olympics 2012?
Why would a brand choose to become a sponsor of the Olympics 2012?Adecco UK
 
絕了,能把漢字寫成這樣
絕了,能把漢字寫成這樣絕了,能把漢字寫成這樣
絕了,能把漢字寫成這樣Danny Lin
 
Современные технологии управления производством опыт ОК Русал
Современные технологии управления производством опыт ОК РусалСовременные технологии управления производством опыт ОК Русал
Современные технологии управления производством опыт ОК РусалАО "Самрук-Казына"
 
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITACANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITALHA Lou
 

Viewers also liked (19)

Calendario javier jhonatan
Calendario javier jhonatanCalendario javier jhonatan
Calendario javier jhonatan
 
Evaluation Question 1: Prep for Interview
Evaluation Question 1: Prep for InterviewEvaluation Question 1: Prep for Interview
Evaluation Question 1: Prep for Interview
 
Final
FinalFinal
Final
 
M6d cassandrapresentation
M6d cassandrapresentationM6d cassandrapresentation
M6d cassandrapresentation
 
Stop motion evaluation
Stop motion evaluationStop motion evaluation
Stop motion evaluation
 
affTA09 - LampiranA
affTA09 - LampiranAaffTA09 - LampiranA
affTA09 - LampiranA
 
Tarea de heramientas de colaboracion digital
Tarea de heramientas de colaboracion digitalTarea de heramientas de colaboracion digital
Tarea de heramientas de colaboracion digital
 
Reach.UrFaculty - Govt. Jobs Update Mar 7
Reach.UrFaculty - Govt. Jobs Update Mar 7Reach.UrFaculty - Govt. Jobs Update Mar 7
Reach.UrFaculty - Govt. Jobs Update Mar 7
 
Formato planeacion
Formato planeacionFormato planeacion
Formato planeacion
 
Angical fest 2011 1º dia 2
Angical fest 2011 1º dia 2Angical fest 2011 1º dia 2
Angical fest 2011 1º dia 2
 
Reach.UrFaculty - Govt. Jobs Update Mar 8
Reach.UrFaculty - Govt. Jobs Update Mar 8Reach.UrFaculty - Govt. Jobs Update Mar 8
Reach.UrFaculty - Govt. Jobs Update Mar 8
 
Agenda robert guzman
Agenda robert guzmanAgenda robert guzman
Agenda robert guzman
 
ВедаПульс - мировое признание
ВедаПульс -  мировое признаниеВедаПульс -  мировое признание
ВедаПульс - мировое признание
 
Introducao ao-estudo-do-lexico-brincando-com-as-palavras
Introducao ao-estudo-do-lexico-brincando-com-as-palavrasIntroducao ao-estudo-do-lexico-brincando-com-as-palavras
Introducao ao-estudo-do-lexico-brincando-com-as-palavras
 
Why would a brand choose to become a sponsor of the Olympics 2012?
Why would a brand choose to become a sponsor of the Olympics 2012?Why would a brand choose to become a sponsor of the Olympics 2012?
Why would a brand choose to become a sponsor of the Olympics 2012?
 
絕了,能把漢字寫成這樣
絕了,能把漢字寫成這樣絕了,能把漢字寫成這樣
絕了,能把漢字寫成這樣
 
Современные технологии управления производством опыт ОК Русал
Современные технологии управления производством опыт ОК РусалСовременные технологии управления производством опыт ОК Русал
Современные технологии управления производством опыт ОК Русал
 
Destroying property
Destroying propertyDestroying property
Destroying property
 
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITACANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
 

Recently uploaded

Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 

Recently uploaded (20)

Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 

Docker hosting on FIWARE Lab

  • 1. Docker hosting on FIWARE Lab Remote management with local docker client Kenneth Nagin IBM Cloud Chapter Lead, FIWARE nagin@il.ibm.com
  • 2.
  • 3.
  • 4.
  • 5. 5 FIWARE Lab Cloud Docker Hosting Overview • Docker Hub: cloud service for managing and sharing Docker container images, including FIWARE services, i.e. Generic Enablers (GEs) (http://catalogue.fiware.org/enablers); • Docker Engine: creates and runs Docker containers; pulls/pushes images from/to Docker Hub; • Docker Compose: defines and runs multi-container applications;. • Docker Swarm: manages a pool of Docker hosts using the full suite of Docker tools. Because Docker Swarm serves the standard Docker API, any tool that already communicates with a Docker daemon, e.g. Docker-Compose, can use Swarm to transparently scale to multiple hosts. • Docker Machine: creates and manages Docker hosts locally or on cloud providers (including OpenStack). It can be used to create and manage Docker swam clusters. • FIWARE Lab Docker Hosting: Docker Containers, Docker machines, and Docker Swarm clusters can be hosted on the FIWARE lab, but remotely created and managed by local Docker clients;
  • 6. Simple Docker hosting on FIWARE Remotely Managed by Docker Client …… Region …. Region …. client client docker-engine docker-machine docker-compose docker-swarm docker api, openstack api, ssh any tool based on docker-apidocker cli
  • 7. 7 Set up steps 1. Sign up fiware account (https://account.lab.fiware.org/sign_up/) 2. (Optionall) Request Community Upgrade 3. The orgranization automatically associated with your account must be able to allocate at least on floating point IP and access at least one FIWARE region. You can create other organizations. 4. In Cloud service – Allocate a floating point IP – Create Security Group that exposes ports for daemon, ssh, and any other ports that are required. 5. Install docker and docker machine on your local computer 6. Use docker-machine to create hosts & swarm clusters on the desired FIWARE regions
  • 8.
  • 9.
  • 10. FIWARE set up: Allocate at least one public ip
  • 11. FIWARE set up: Create Security Group
  • 12. FIWARE set up: Create Security Group Required: • Docker Daemon Port 2376 • SSH: Port 22 Optional: • Auto allocated user ports: 32768-33768 • Other User Ports e.g. 8080 • Docker Swarm Master Port: 3376
  • 13. FIWARE set up: List images
  • 15. 15 docker-machine create docker host on fiware export OS_REGION_NAME=<fiware region, e.g. 'Spain2‘> export OS_TENANT_NAME=<user’s organization, e.g. ‘username cloud' export OS_USERNAME=<user’s email address, e.g. ‘username@gmail.com’ export OS_PASSWORD=<user’s password> export OS_AUTH_URL='http://cloud.lab.fi-ware.org:4730/v2.0/' export OS_AUTH_STRATEGY='keystone'
  • 16. 16 docker-machine create docker host on fiware docker-machine create -d openstack --openstack-flavor-id="2" --openstack-image-name="Ubuntu Server 14.04.1 (x64)" --openstack-net-name="node-int-net-01" --openstack-floatingip-pool="public-ext-net-01" --openstack-sec-groups="docker-machine-sg" docker-host
  • 17.
  • 18.
  • 19.
  • 20. eval “$(docker-machine env <host name>)”
  • 21.
  • 22.
  • 23. mongo: image: mongo:2.6 command: --smallfiles orion: image: fiware/orion links: - mongo ports: - ":1026" command: -dbhost mongo
  • 24.
  • 25.
  • 26.
  • 27. 27 Docker create swarm container Save token in $TOKEN > docker run swarm create
  • 28. 28 Docker Swarm: create master >export OS_REGION_NAME=Spain2 >docker-machine create -d openstack --openstack-flavor-id="2" --openstack-image-id=$imageID --openstack-net-name="node-int-net-01" --openstack-floatingip-pool="public-ext-net-01" --openstack-sec-groups="docker-machine-sg" --swarm --swarm-master --swarm-discovery token://$TOKEN FIWARE-SPAIN2
  • 29. 29 Docker Swarm: create slave >export OS_REGION_NAME=Crete >docker-machine create -d openstack --openstack-flavor-id="2" --openstack-image-id=$imageID --openstack-net-name="node-int-net-01" --openstack-floatingip-pool="public-ext-net-01" --openstack-sec-groups="docker-machine-sg" --swarm --swarm-discovery token://$TOKEN FIWARE-Crete
  • 31. >eval “$(docker-machine env --swarm FIWARE-SPAIN2)” >docker info
  • 32. >eval $(docker-machine env --swarm FIWARE-SPAIN2) >docker run hello-world >docker ps -a
  • 33. >eval $(docker-machine env --swarm FIWARE-SPAIN2) >docker-compose up -d >docker ps >curl http://147.27.60.99:32768/employees/resources/employees/
  • 34. >eval $(docker-machine env --swarm FIWARE-SPAIN2) >docker-compose stop >docker-compose ps
  • 35. Simple Docker hosting on FIWARE Remotely Managed by Docker Client …… Region …. Region …. client client docker-engine docker-machine docker-compose docker-swarm docker api, openstack api, ssh any tool based on docker-apidocker cli