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

Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
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
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Recently uploaded (20)

Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
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...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

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