SlideShare a Scribd company logo
1 of 51
http://bit.ly/fiware-docker
http://www.fiware.org
http://lab.fiware.org
Follow @FIWARE on Twitter
Simple Docker hosting FIWARE Lab
Fernando López
Telefonica I+D
Contact email
fernando.lopezaguilar@telefonica.com
@flopezaguilar
Table of content
 Overview
 Basic Set Up: FIWARE set up, docker-machine
 Docker Engine
 Docker-compose
 Docker Swarm
 References
2
Basic Set Up
3
……
Node
….
Node
….
client
client
docker-engine
docker-
machine
docker-
compose
docker-swarm
docker api
Any tool based
on
Docker-apidocker cli
4
Simple Docker hosting on FIWARE
Remotely Managed by Docker Client
FIWARE Lab Cloud Docker Hosting Overview
 Host docker on FIWARE, but control from local docker client
• Docker engine: creates and runs Docker containers.
• Docker Hub: hosted registry service for managing and sharing docker container
images.
• Docker-Compose: defines multi-container applications.
• Docker-Machine: automates container provisioning.
• Docker Swarm: is used to host clustering and containers.
 Prerequisites:
• FIWARE User.
• User’s organization is allowed to allocate at least one floating point IP.
• Install docker on local machine.
5
FIWARE set up: Add security group for
docker-machine
6
 Create ‘docker-machine’
security group.
 Edit security group rules
and add:
SSH: Port 22
Docker Daemon Port 2376
Docker Swarm Master Port: 3376
Auto allocated user ports:
32768-33768
Other User Ports e.g. 8080
FIWARE set up: Allocate at least one public IP
7
FIWARE set up: Get image name and SSH user
 We recommend the use of base images of FIWARE, which are configured to
resolve security issues.
 The values that you need to configure are the following:
 The rest of images are not supported for docker management.
8
Base Image SSH user
base_centos_7 centos
base_debian_8 debian
base_ubuntu_14.04 ubuntu
docker-machine: create docker host on fiware
• You can obtain the following data from the info
button in the cloud.lab.fiware.org:
$ export OS_REGION_NAME=<fiware region, Region in
Info modal window, e.g. 'Spain2‘>
$ export OS_TENANT_NAME=<user’s organization, Tenant
name in Info modal window, e.g. ‘username cloud’>
$ export OS_USERNAME=<user’s email address, User
name in Info modal window, e.g. ‘username@gmail.com’
$ export OS_PASSWORD=<user’s password, your
password in FIWARE Lab>
$ export OS_AUTH_URL=<Authentication URL in Info
modal window >
9
docker-machine: create docker host on fiware
 You need to specify the strategy used to authenticate an user:
$ export OS_AUTH_STRATEGY='keystone’
 Last but not least, you have to specify the User Domain name:
$ export OS_DOMAIN_NAME=‘default’
 I recommend to put all of them in a configuration file.
10
docker-machine: create docker host on fiware
$ docker-machine create --driver openstack --openstack-ssh-user ubuntu --openstack-
image-name base_ubuntu_14.04 --openstack-flavor-name m1.large --openstack-
floatingip-pool public-ext-net-01 --openstack-sec-groups docker-machine --openstack-net-
name node-int-net-01 FIWARE-Docker
11
public-ext-net-01 and
node-inet-net-01 are fixed data
Override our built-in docker settings
12
 Once complete, we want to override our built-in docker settings to point to
our new machine. We can do that by issuing:
$ eval $(docker-machine env FIWARE-Docker)
VERY
IMPORTANT, do
not forget it
Overview of the FIWARE Lab running instance
13
Upgrade your docker machine
 Finally, we want to ensure that our machine is totally up to date by issuing the
following:
$ docker-machine upgrade FIWARE-Docker
14
Get info of the running docker machine
15
Docker Engine
16
Test execution of hello-world container
17
IP Forwarding and MTU configuration
(Ubuntu)
 In order to work with an instance in the FIWARE Lab, it is needed that you
configure the IP Forwarding in this instance. Execute the following command:
docker-machine ssh FIWARE-Docker "sudo sed -i
's/.*net.ipv4.ip_forward=.*/net.ipv4.ip_forward=1/g' /etc/sysctl.conf ; sudo sysctl -p"
 Besides, we need to change the MTU in Spain2 by the value that we have
configured in the network. To do it, execute:
docker-machine ssh FIWARE-Docker "sudo sed -i 's/--label provider=openstack/--label
provider=openstackn--mtu=1400/g' /etc/default/docker ; sudo service docker restart ; sudo
ip link set mtu 1400 dev docker0"
18
IP Forwarding and MTU configuration
(CentOS & Debian)
 In case of CentOS Imagen the configuration of IP Forwarding can be done
with the following command:
$ docker-machine ssh FIWARE-Docker -tt ”sudo /sbin/sysctl -w net.ipv4.ip_forward=1; sudo
sysctl -p"
 Besides, we need to change the MTU in Spain2 by the value that we have
configured in the network. To do it, execute:
$ docker-machine ssh FIWARE-swarm-master -tt "sudo sed -i 's/--label provider=openstack/--
label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl
daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0"
19
Test it out
 We will deploy an easy docker container to test it, please put this Dockerfile
in your folder:
20
Test it out
 Create the image:
$ docker build -t example -f Dockerfile .
21
Test it out
 See the new image running ‘docker images’.
22
Test it out
 Run your new image by typing ‘docker run example’
23
Docker-compose
24
Docker compose: Get and application running
in one command
 Build a simple Python web application running on Docker Compose.
 Test: deploy an application uses the Flask framework and increments a value
in Redis.
25
Create web server
 Create app.py file with the content:
26
Create web server
 Create ‘requirements.txt’.
 Create ‘Dockerfile’.
27
Create web server
 Create image ‘web’.
28
Create web server
 Check the new image ‘web’
29
Define services
 Create a file called ‘docker-compose.yml’ in your project directory and add
the following.
30
Build and run your app with Compose
 From your project directory,
run:
$ docker-compose up
 See the deployed server
running in:
$ http://0.0.0.0:5000
31
KEEP IN MIND,
This port has to be open
in your Security Group
Build and run your app with Compose
 Get the IP of the docker-machine:
 The IP of the server will be:
http://130.206.122.3:5000
32
See the application running
33
Other commands
 See what is currently running:
 Stop your services once you’ve finished with them:
34
Other commands
 Remove stopped containers:
35
Docker Swarm
36
Working with Docker Swarm
37
 Docker Swarm is native clustering for Docker.
 Turn a pool of Docker hosts into a single, virtual Docker host.
Generate a discovery token using the Docker
Swarm image
 Execute the swarm create command in a container.
 Export the token to a variable:
$ export TOKEN=e924ca5408f5e88052d580bee034b145
38
Launch the Swarm manager
 Create a swarm manager under OpenStack:
$ docker-machine create 
-d openstack 
--openstack-ssh-user centos 
--openstack-image-name base_centos_7 
--openstack-flavor-name m1.small 
--openstack-floatingip-pool public-ext-net-01 
--openstack-sec-groups docker-machine 
--openstack-net-name node-int-net-01 
--swarm 
--swarm-master 
--swarm-discovery token://$TOKEN 
FIWARE-swarm-master
39
Docker Swarm: create master
 Remember configure IP Forwarding and MTU in Spain2 region:
$ docker-machine ssh FIWARE-swarm-master -tt "sudo /sbin/sysctl -w net.ipv4.ip_forward=1;
sudo sysctl -p"
 Besides, we need to change the MTU in Spain2 by the value that we have
configured in the network. To do it, execute:
$ docker-machine ssh FIWARE-swarm-master -tt "sudo sed -i 's/--label provider=openstack/--
label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl
daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0"
40
Create a swarm node agents
 Execute the following command to create an agent in Spain region:
$ docker-machine create 
-d openstack 
--openstack-ssh-user debian 
--openstack-image-name base_debian_8 
--openstack-flavor-name m1.small 
--openstack-floatingip-pool public-ext-net-01 
--openstack-sec-groups docker-machine 
--openstack-net-name node-int-net-01 
--swarm 
--swarm-discovery token://$TOKEN 
FIWARE-swarm-agent-00
41
Create a swarm node agents
 Remember configure IP Forwarding and MTU in Spain region:
$ docker-machine ssh FIWARE-swarm-agent-00 -tt "sudo /sbin/sysctl -w net.ipv4.ip_forward=1;
sudo sysctl -p"
 Besides, we need to change the MTU in Spain by the value that we have
configured in the network. To do it, execute:
$ docker-machine ssh FIWARE-swarm-agent-00 -tt "sudo sed -i 's/--label provider=openstack/-
-label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl
daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0"
42
Create a swarm node agents
 Add another agent called swarm-agent-01 in Spain region:
$ docker-machine create 
-d openstack 
--openstack-ssh-user debian 
--openstack-image-name base_debian_8 
--openstack-flavor-name m1.small 
--openstack-floatingip-pool public-ext-net-01 
--openstack-sec-groups docker-machine 
--openstack-net-name node-int-net-01 
--swarm 
--swarm-discovery token://$TOKEN 
FIWARE-swarm-agent-01
 Remember that we are using ‘OS_REGION_NAME=Spain2’ but you can
select any other region in FIWARE Lab.
43
Docker Swarm: create master
 Remember configure IP Forwarding and MTU in Spain region:
$ docker-machine ssh FIWARE-swarm-agent-01 -tt "sudo /sbin/sysctl -w net.ipv4.ip_forward=1;
sudo sysctl -p"
 Besides, we need to change the MTU in Spain by the value that we have
configured in the network. To do it, execute:
$ docker-machine ssh FIWARE-swarm-agent-01 -tt "sudo sed -i 's/--label provider=openstack/-
-label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl
daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0"
44
Working with your swarm
 Point your Docker environment to
the machine running the swarm
master:
$ eval $(docker-machine env -swarm
FIWARE-swarm-master)
 Get information of your new swarm
with command ‘docker info’:
45
Working with your swarm
 Check the images currently running on your swarm.
46
Working with your swarm
 Run hello-world docker and see where was it.
47
References
48
References
 How to work with FIWARE Lab: http://bit.ly/fiware-lab-cloud
 Welcome to the docker Docs: https://docs.docker.com/
 FIWARE Lab: https://cloud.lab.fiware.org
 FIWARE GE docker images: https://hub.docker.com/u/fiware/dashboard/
 FIWARE Catalogue: https://catalogue.fiware.org/
49
50
http://fiware.org
http://lab.fiware.org
Follow @FIWARE on Twitter !
Thanks!

More Related Content

What's hot

How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
How to master OpenStack in 2 hoursOpenCity Community
 
EMC Networker installation Document
EMC Networker installation DocumentEMC Networker installation Document
EMC Networker installation Documentuzzal basak
 
Docker for Ruby Developers
Docker for Ruby DevelopersDocker for Ruby Developers
Docker for Ruby DevelopersAptible
 
Openstack in 10 mins
Openstack in 10 minsOpenstack in 10 mins
Openstack in 10 minsDawood M.S
 
Open Stack compute-service-nova
Open Stack compute-service-novaOpen Stack compute-service-nova
Open Stack compute-service-novaGHANSHYAM MANN
 
OpenStack in 10 minutes with Devstack
OpenStack in 10 minutes with DevstackOpenStack in 10 minutes with Devstack
OpenStack in 10 minutes with DevstackSean Dague
 
How to create a secured cloudera cluster
How to create a secured cloudera clusterHow to create a secured cloudera cluster
How to create a secured cloudera clusterTiago Simões
 
Conf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpractices
Conf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpracticesConf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpractices
Conf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpracticesBrentMatlock
 
Install Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMInstall Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMLaurent Leturgez
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11guzzal basak
 
Provisioning with OSGi Subsystems and Repository using Apache Aries and Felix
Provisioning with OSGi Subsystems and Repository using Apache Aries and FelixProvisioning with OSGi Subsystems and Repository using Apache Aries and Felix
Provisioning with OSGi Subsystems and Repository using Apache Aries and FelixDavid Bosschaert
 
How to configure a hive high availability connection with zeppelin
How to configure a hive high availability connection with zeppelinHow to configure a hive high availability connection with zeppelin
How to configure a hive high availability connection with zeppelinTiago Simões
 
Service Discovery using etcd, Consul and Kubernetes
Service Discovery using etcd, Consul and KubernetesService Discovery using etcd, Consul and Kubernetes
Service Discovery using etcd, Consul and KubernetesSreenivas Makam
 
Quick overview of Openstack architecture
Quick overview of Openstack architectureQuick overview of Openstack architecture
Quick overview of Openstack architectureToni Ramirez
 
Install elasticsearch, logstash and kibana
Install elasticsearch, logstash and kibana Install elasticsearch, logstash and kibana
Install elasticsearch, logstash and kibana Chanaka Lasantha
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Osama Mustafa
 

What's hot (19)

How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
How to master OpenStack in 2 hours
 
EMC Networker installation Document
EMC Networker installation DocumentEMC Networker installation Document
EMC Networker installation Document
 
Docker for Ruby Developers
Docker for Ruby DevelopersDocker for Ruby Developers
Docker for Ruby Developers
 
Openstack in 10 mins
Openstack in 10 minsOpenstack in 10 mins
Openstack in 10 mins
 
Open Stack compute-service-nova
Open Stack compute-service-novaOpen Stack compute-service-nova
Open Stack compute-service-nova
 
OpenStack in 10 minutes with Devstack
OpenStack in 10 minutes with DevstackOpenStack in 10 minutes with Devstack
OpenStack in 10 minutes with Devstack
 
How to create a secured cloudera cluster
How to create a secured cloudera clusterHow to create a secured cloudera cluster
How to create a secured cloudera cluster
 
Kayobe_desc
Kayobe_descKayobe_desc
Kayobe_desc
 
Conf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpractices
Conf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpracticesConf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpractices
Conf2015 d waddle_defense_pointsecurity_deploying_splunksslbestpractices
 
Install Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMInstall Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VM
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
 
Python on exadata
Python on exadataPython on exadata
Python on exadata
 
Provisioning with OSGi Subsystems and Repository using Apache Aries and Felix
Provisioning with OSGi Subsystems and Repository using Apache Aries and FelixProvisioning with OSGi Subsystems and Repository using Apache Aries and Felix
Provisioning with OSGi Subsystems and Repository using Apache Aries and Felix
 
Oracle linux kube
Oracle linux kubeOracle linux kube
Oracle linux kube
 
How to configure a hive high availability connection with zeppelin
How to configure a hive high availability connection with zeppelinHow to configure a hive high availability connection with zeppelin
How to configure a hive high availability connection with zeppelin
 
Service Discovery using etcd, Consul and Kubernetes
Service Discovery using etcd, Consul and KubernetesService Discovery using etcd, Consul and Kubernetes
Service Discovery using etcd, Consul and Kubernetes
 
Quick overview of Openstack architecture
Quick overview of Openstack architectureQuick overview of Openstack architecture
Quick overview of Openstack architecture
 
Install elasticsearch, logstash and kibana
Install elasticsearch, logstash and kibana Install elasticsearch, logstash and kibana
Install elasticsearch, logstash and kibana
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
 

Viewers also liked

FIWARE Lab architecture, an open point to start the installation of a new region
FIWARE Lab architecture, an open point to start the installation of a new regionFIWARE Lab architecture, an open point to start the installation of a new region
FIWARE Lab architecture, an open point to start the installation of a new regionFernando Lopez Aguilar
 
seniorweb.ch - ein soziales Netzwerk
seniorweb.ch - ein soziales Netzwerkseniorweb.ch - ein soziales Netzwerk
seniorweb.ch - ein soziales Netzwerkalfons buehlmann
 
PRESENTACION VALLE DE TENA
PRESENTACION VALLE DE TENAPRESENTACION VALLE DE TENA
PRESENTACION VALLE DE TENAHotel Privilegio
 
Jens_CV_and_Reference_Letter_June 2016
Jens_CV_and_Reference_Letter_June 2016Jens_CV_and_Reference_Letter_June 2016
Jens_CV_and_Reference_Letter_June 2016Jens Rune Brandal
 
PARABÉNS TFUFP!!!
PARABÉNS TFUFP!!!PARABÉNS TFUFP!!!
PARABÉNS TFUFP!!!mjoaocastro
 
Sony emcs-scholarship-2012
Sony emcs-scholarship-2012Sony emcs-scholarship-2012
Sony emcs-scholarship-2012Eiyka Ahmad
 
Leistritz Key Seating Machines
Leistritz Key Seating MachinesLeistritz Key Seating Machines
Leistritz Key Seating MachinesTREVOR MOSS
 
ACCIONA Informa N. 59 - Noviembre 2014
ACCIONA Informa N. 59 - Noviembre 2014ACCIONA Informa N. 59 - Noviembre 2014
ACCIONA Informa N. 59 - Noviembre 2014acciona
 
IV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de Colombia
IV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de ColombiaIV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de Colombia
IV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de Colombiagaiasas
 
Sistemas de-comunicación-por-fibra
Sistemas de-comunicación-por-fibraSistemas de-comunicación-por-fibra
Sistemas de-comunicación-por-fibraDarthuz Kilates
 
Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...
Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...
Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...Department of Health
 
Fiware ops demo meeting (health) (06 07-15)
Fiware ops demo meeting (health) (06 07-15)Fiware ops demo meeting (health) (06 07-15)
Fiware ops demo meeting (health) (06 07-15)Fernando Lopez Aguilar
 
Fiware ops demo meeting (health) (09 06-15)
Fiware ops demo meeting (health) (09 06-15)Fiware ops demo meeting (health) (09 06-15)
Fiware ops demo meeting (health) (09 06-15)Fernando Lopez Aguilar
 
Cloud Portal - Lesson 3. Launching an Instance
Cloud Portal - Lesson 3. Launching an InstanceCloud Portal - Lesson 3. Launching an Instance
Cloud Portal - Lesson 3. Launching an InstanceÁlvaro Alonso González
 
Cloud Portal - Lesson 2. Cloud Portal Overview
Cloud Portal - Lesson 2. Cloud Portal OverviewCloud Portal - Lesson 2. Cloud Portal Overview
Cloud Portal - Lesson 2. Cloud Portal OverviewÁlvaro Alonso González
 

Viewers also liked (20)

FIWARE Lab architecture, an open point to start the installation of a new region
FIWARE Lab architecture, an open point to start the installation of a new regionFIWARE Lab architecture, an open point to start the installation of a new region
FIWARE Lab architecture, an open point to start the installation of a new region
 
What is FIWARE Lab
What is FIWARE LabWhat is FIWARE Lab
What is FIWARE Lab
 
Federating new FIWARE Lab nodes
Federating new FIWARE Lab nodesFederating new FIWARE Lab nodes
Federating new FIWARE Lab nodes
 
Join FIWARE Lab
Join FIWARE LabJoin FIWARE Lab
Join FIWARE Lab
 
seniorweb.ch - ein soziales Netzwerk
seniorweb.ch - ein soziales Netzwerkseniorweb.ch - ein soziales Netzwerk
seniorweb.ch - ein soziales Netzwerk
 
PRESENTACION VALLE DE TENA
PRESENTACION VALLE DE TENAPRESENTACION VALLE DE TENA
PRESENTACION VALLE DE TENA
 
Jens_CV_and_Reference_Letter_June 2016
Jens_CV_and_Reference_Letter_June 2016Jens_CV_and_Reference_Letter_June 2016
Jens_CV_and_Reference_Letter_June 2016
 
PARABÉNS TFUFP!!!
PARABÉNS TFUFP!!!PARABÉNS TFUFP!!!
PARABÉNS TFUFP!!!
 
Sony emcs-scholarship-2012
Sony emcs-scholarship-2012Sony emcs-scholarship-2012
Sony emcs-scholarship-2012
 
Leistritz Key Seating Machines
Leistritz Key Seating MachinesLeistritz Key Seating Machines
Leistritz Key Seating Machines
 
ACCIONA Informa N. 59 - Noviembre 2014
ACCIONA Informa N. 59 - Noviembre 2014ACCIONA Informa N. 59 - Noviembre 2014
ACCIONA Informa N. 59 - Noviembre 2014
 
IV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de Colombia
IV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de ColombiaIV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de Colombia
IV Foro TIC y Sostenibilidad: Futuro de la gestion RAEE de Colombia
 
Sistemas de-comunicación-por-fibra
Sistemas de-comunicación-por-fibraSistemas de-comunicación-por-fibra
Sistemas de-comunicación-por-fibra
 
Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...
Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...
Global Dementia Legacy Event: Canada & France: Dr Etienne Hirsch & Dr Yves Jo...
 
Sanghaya inc
Sanghaya incSanghaya inc
Sanghaya inc
 
Cloud Portal - Lesson 1. Introduction
Cloud Portal - Lesson 1. IntroductionCloud Portal - Lesson 1. Introduction
Cloud Portal - Lesson 1. Introduction
 
Fiware ops demo meeting (health) (06 07-15)
Fiware ops demo meeting (health) (06 07-15)Fiware ops demo meeting (health) (06 07-15)
Fiware ops demo meeting (health) (06 07-15)
 
Fiware ops demo meeting (health) (09 06-15)
Fiware ops demo meeting (health) (09 06-15)Fiware ops demo meeting (health) (09 06-15)
Fiware ops demo meeting (health) (09 06-15)
 
Cloud Portal - Lesson 3. Launching an Instance
Cloud Portal - Lesson 3. Launching an InstanceCloud Portal - Lesson 3. Launching an Instance
Cloud Portal - Lesson 3. Launching an Instance
 
Cloud Portal - Lesson 2. Cloud Portal Overview
Cloud Portal - Lesson 2. Cloud Portal OverviewCloud Portal - Lesson 2. Cloud Portal Overview
Cloud Portal - Lesson 2. Cloud Portal Overview
 

Similar to Simple docker hosting in FIWARE Lab

Docker Security workshop slides
Docker Security workshop slidesDocker Security workshop slides
Docker Security workshop slidesDocker, Inc.
 
Things I've learned working with Docker Support
Things I've learned working with Docker SupportThings I've learned working with Docker Support
Things I've learned working with Docker SupportSujay Pillai
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Ben Hall
 
Simple docker hosting on fiware lab
Simple docker hosting on fiware labSimple docker hosting on fiware lab
Simple docker hosting on fiware labKenneth Nagin
 
Chris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialChris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialCohesive Networks
 
Docker 進階實務班
Docker 進階實務班Docker 進階實務班
Docker 進階實務班Philip Zheng
 
廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班Paul Chao
 
Docker, Kubernetes, and Google Cloud
Docker, Kubernetes, and Google CloudDocker, Kubernetes, and Google Cloud
Docker, Kubernetes, and Google CloudSamuel Chow
 
桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作Philip Zheng
 
Wordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccionWordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccionSysdig
 
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
JDO 2019: Tips and Tricks from Docker Captain - Łukasz LachJDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
JDO 2019: Tips and Tricks from Docker Captain - Łukasz LachPROIDEA
 
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Ben Hall
 
Containerizing Web Application with Docker
Containerizing Web Application with DockerContainerizing Web Application with Docker
Containerizing Web Application with Dockermsyukor
 
How to create your own hack environment
How to create your own hack environmentHow to create your own hack environment
How to create your own hack environmentSumedt Jitpukdebodin
 
Docker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps DevelopmentDocker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps Developmentmsyukor
 
Azure from scratch part 5 By Girish Kalamati
Azure from scratch part 5 By Girish KalamatiAzure from scratch part 5 By Girish Kalamati
Azure from scratch part 5 By Girish KalamatiGirish Kalamati
 
Docker Networking with New Ipvlan and Macvlan Drivers
Docker Networking with New Ipvlan and Macvlan DriversDocker Networking with New Ipvlan and Macvlan Drivers
Docker Networking with New Ipvlan and Macvlan DriversBrent Salisbury
 
Docker workshop DevOpsDays Amsterdam 2014
Docker workshop DevOpsDays Amsterdam 2014Docker workshop DevOpsDays Amsterdam 2014
Docker workshop DevOpsDays Amsterdam 2014Pini Reznik
 
Create and use a Dockerized Aruba Cloud server - CloudConf 2017
Create and use a Dockerized Aruba Cloud server - CloudConf 2017Create and use a Dockerized Aruba Cloud server - CloudConf 2017
Create and use a Dockerized Aruba Cloud server - CloudConf 2017Aruba S.p.A.
 

Similar to Simple docker hosting in FIWARE Lab (20)

Docker Security workshop slides
Docker Security workshop slidesDocker Security workshop slides
Docker Security workshop slides
 
Things I've learned working with Docker Support
Things I've learned working with Docker SupportThings I've learned working with Docker Support
Things I've learned working with Docker Support
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)
 
Simple docker hosting on fiware lab
Simple docker hosting on fiware labSimple docker hosting on fiware lab
Simple docker hosting on fiware lab
 
Chris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialChris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks Tutorial
 
Docker 進階實務班
Docker 進階實務班Docker 進階實務班
Docker 進階實務班
 
廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班
 
Docker
DockerDocker
Docker
 
Docker, Kubernetes, and Google Cloud
Docker, Kubernetes, and Google CloudDocker, Kubernetes, and Google Cloud
Docker, Kubernetes, and Google Cloud
 
桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作
 
Wordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccionWordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccion
 
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
JDO 2019: Tips and Tricks from Docker Captain - Łukasz LachJDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
 
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)
 
Containerizing Web Application with Docker
Containerizing Web Application with DockerContainerizing Web Application with Docker
Containerizing Web Application with Docker
 
How to create your own hack environment
How to create your own hack environmentHow to create your own hack environment
How to create your own hack environment
 
Docker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps DevelopmentDocker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps Development
 
Azure from scratch part 5 By Girish Kalamati
Azure from scratch part 5 By Girish KalamatiAzure from scratch part 5 By Girish Kalamati
Azure from scratch part 5 By Girish Kalamati
 
Docker Networking with New Ipvlan and Macvlan Drivers
Docker Networking with New Ipvlan and Macvlan DriversDocker Networking with New Ipvlan and Macvlan Drivers
Docker Networking with New Ipvlan and Macvlan Drivers
 
Docker workshop DevOpsDays Amsterdam 2014
Docker workshop DevOpsDays Amsterdam 2014Docker workshop DevOpsDays Amsterdam 2014
Docker workshop DevOpsDays Amsterdam 2014
 
Create and use a Dockerized Aruba Cloud server - CloudConf 2017
Create and use a Dockerized Aruba Cloud server - CloudConf 2017Create and use a Dockerized Aruba Cloud server - CloudConf 2017
Create and use a Dockerized Aruba Cloud server - CloudConf 2017
 

More from Fernando Lopez Aguilar

Building the Smart City Platform on FIWARE Lab
Building the Smart City Platform on FIWARE LabBuilding the Smart City Platform on FIWARE Lab
Building the Smart City Platform on FIWARE LabFernando Lopez Aguilar
 
Big Data and Machine Learning with FIWARE
Big Data and Machine Learning with FIWAREBig Data and Machine Learning with FIWARE
Big Data and Machine Learning with FIWAREFernando Lopez Aguilar
 
Operational Dashboards with FIWARE WireCloud
Operational Dashboards with FIWARE WireCloudOperational Dashboards with FIWARE WireCloud
Operational Dashboards with FIWARE WireCloudFernando Lopez Aguilar
 
Creating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
Creating a Context-Aware solution, Complex Event Processing with FIWARE PerseoCreating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
Creating a Context-Aware solution, Complex Event Processing with FIWARE PerseoFernando Lopez Aguilar
 
FIWARE Identity Management and Access Control
FIWARE Identity Management and Access ControlFIWARE Identity Management and Access Control
FIWARE Identity Management and Access ControlFernando Lopez Aguilar
 
Data persistency (draco, cygnus, sth comet, quantum leap)
Data persistency (draco, cygnus, sth comet, quantum leap)Data persistency (draco, cygnus, sth comet, quantum leap)
Data persistency (draco, cygnus, sth comet, quantum leap)Fernando Lopez Aguilar
 
Cloud and Big Data in the agriculture sector
Cloud and Big Data in the agriculture sectorCloud and Big Data in the agriculture sector
Cloud and Big Data in the agriculture sectorFernando Lopez Aguilar
 
Context Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsContext Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsFernando Lopez Aguilar
 

More from Fernando Lopez Aguilar (20)

Introduction to FIWARE technology
Introduction to FIWARE  technologyIntroduction to FIWARE  technology
Introduction to FIWARE technology
 
DW2020 Data Models - FIWARE Platform
DW2020 Data Models - FIWARE PlatformDW2020 Data Models - FIWARE Platform
DW2020 Data Models - FIWARE Platform
 
FIWARE and Smart Data Models
FIWARE and Smart Data ModelsFIWARE and Smart Data Models
FIWARE and Smart Data Models
 
How to deploy a smart city platform?
How to deploy a smart city platform?How to deploy a smart city platform?
How to deploy a smart city platform?
 
Building the Smart City Platform on FIWARE Lab
Building the Smart City Platform on FIWARE LabBuilding the Smart City Platform on FIWARE Lab
Building the Smart City Platform on FIWARE Lab
 
Data Modeling with NGSI, NGSI-LD
Data Modeling with NGSI, NGSI-LDData Modeling with NGSI, NGSI-LD
Data Modeling with NGSI, NGSI-LD
 
FIWARE and Robotics
FIWARE and RoboticsFIWARE and Robotics
FIWARE and Robotics
 
Big Data and Machine Learning with FIWARE
Big Data and Machine Learning with FIWAREBig Data and Machine Learning with FIWARE
Big Data and Machine Learning with FIWARE
 
Operational Dashboards with FIWARE WireCloud
Operational Dashboards with FIWARE WireCloudOperational Dashboards with FIWARE WireCloud
Operational Dashboards with FIWARE WireCloud
 
Creating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
Creating a Context-Aware solution, Complex Event Processing with FIWARE PerseoCreating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
Creating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
 
FIWARE Identity Management and Access Control
FIWARE Identity Management and Access ControlFIWARE Identity Management and Access Control
FIWARE Identity Management and Access Control
 
Data persistency (draco, cygnus, sth comet, quantum leap)
Data persistency (draco, cygnus, sth comet, quantum leap)Data persistency (draco, cygnus, sth comet, quantum leap)
Data persistency (draco, cygnus, sth comet, quantum leap)
 
How to debug IoT Agents
How to debug IoT AgentsHow to debug IoT Agents
How to debug IoT Agents
 
Core Context Management
Core Context ManagementCore Context Management
Core Context Management
 
What is an IoT Agent
What is an IoT AgentWhat is an IoT Agent
What is an IoT Agent
 
FIWARE Overview
FIWARE OverviewFIWARE Overview
FIWARE Overview
 
Overview of the FIWARE Ecosystem
Overview of the FIWARE EcosystemOverview of the FIWARE Ecosystem
Overview of the FIWARE Ecosystem
 
Cloud and Big Data in the agriculture sector
Cloud and Big Data in the agriculture sectorCloud and Big Data in the agriculture sector
Cloud and Big Data in the agriculture sector
 
Berlin OpenStack Summit'18
Berlin OpenStack Summit'18Berlin OpenStack Summit'18
Berlin OpenStack Summit'18
 
Context Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsContext Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basics
 

Recently uploaded

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

Simple docker hosting in FIWARE Lab

  • 1. http://bit.ly/fiware-docker http://www.fiware.org http://lab.fiware.org Follow @FIWARE on Twitter Simple Docker hosting FIWARE Lab Fernando López Telefonica I+D Contact email fernando.lopezaguilar@telefonica.com @flopezaguilar
  • 2. Table of content  Overview  Basic Set Up: FIWARE set up, docker-machine  Docker Engine  Docker-compose  Docker Swarm  References 2
  • 4. …… Node …. Node …. client client docker-engine docker- machine docker- compose docker-swarm docker api Any tool based on Docker-apidocker cli 4 Simple Docker hosting on FIWARE Remotely Managed by Docker Client
  • 5. FIWARE Lab Cloud Docker Hosting Overview  Host docker on FIWARE, but control from local docker client • Docker engine: creates and runs Docker containers. • Docker Hub: hosted registry service for managing and sharing docker container images. • Docker-Compose: defines multi-container applications. • Docker-Machine: automates container provisioning. • Docker Swarm: is used to host clustering and containers.  Prerequisites: • FIWARE User. • User’s organization is allowed to allocate at least one floating point IP. • Install docker on local machine. 5
  • 6. FIWARE set up: Add security group for docker-machine 6  Create ‘docker-machine’ security group.  Edit security group rules and add: SSH: Port 22 Docker Daemon Port 2376 Docker Swarm Master Port: 3376 Auto allocated user ports: 32768-33768 Other User Ports e.g. 8080
  • 7. FIWARE set up: Allocate at least one public IP 7
  • 8. FIWARE set up: Get image name and SSH user  We recommend the use of base images of FIWARE, which are configured to resolve security issues.  The values that you need to configure are the following:  The rest of images are not supported for docker management. 8 Base Image SSH user base_centos_7 centos base_debian_8 debian base_ubuntu_14.04 ubuntu
  • 9. docker-machine: create docker host on fiware • You can obtain the following data from the info button in the cloud.lab.fiware.org: $ export OS_REGION_NAME=<fiware region, Region in Info modal window, e.g. 'Spain2‘> $ export OS_TENANT_NAME=<user’s organization, Tenant name in Info modal window, e.g. ‘username cloud’> $ export OS_USERNAME=<user’s email address, User name in Info modal window, e.g. ‘username@gmail.com’ $ export OS_PASSWORD=<user’s password, your password in FIWARE Lab> $ export OS_AUTH_URL=<Authentication URL in Info modal window > 9
  • 10. docker-machine: create docker host on fiware  You need to specify the strategy used to authenticate an user: $ export OS_AUTH_STRATEGY='keystone’  Last but not least, you have to specify the User Domain name: $ export OS_DOMAIN_NAME=‘default’  I recommend to put all of them in a configuration file. 10
  • 11. docker-machine: create docker host on fiware $ docker-machine create --driver openstack --openstack-ssh-user ubuntu --openstack- image-name base_ubuntu_14.04 --openstack-flavor-name m1.large --openstack- floatingip-pool public-ext-net-01 --openstack-sec-groups docker-machine --openstack-net- name node-int-net-01 FIWARE-Docker 11 public-ext-net-01 and node-inet-net-01 are fixed data
  • 12. Override our built-in docker settings 12  Once complete, we want to override our built-in docker settings to point to our new machine. We can do that by issuing: $ eval $(docker-machine env FIWARE-Docker) VERY IMPORTANT, do not forget it
  • 13. Overview of the FIWARE Lab running instance 13
  • 14. Upgrade your docker machine  Finally, we want to ensure that our machine is totally up to date by issuing the following: $ docker-machine upgrade FIWARE-Docker 14
  • 15. Get info of the running docker machine 15
  • 17. Test execution of hello-world container 17
  • 18. IP Forwarding and MTU configuration (Ubuntu)  In order to work with an instance in the FIWARE Lab, it is needed that you configure the IP Forwarding in this instance. Execute the following command: docker-machine ssh FIWARE-Docker "sudo sed -i 's/.*net.ipv4.ip_forward=.*/net.ipv4.ip_forward=1/g' /etc/sysctl.conf ; sudo sysctl -p"  Besides, we need to change the MTU in Spain2 by the value that we have configured in the network. To do it, execute: docker-machine ssh FIWARE-Docker "sudo sed -i 's/--label provider=openstack/--label provider=openstackn--mtu=1400/g' /etc/default/docker ; sudo service docker restart ; sudo ip link set mtu 1400 dev docker0" 18
  • 19. IP Forwarding and MTU configuration (CentOS & Debian)  In case of CentOS Imagen the configuration of IP Forwarding can be done with the following command: $ docker-machine ssh FIWARE-Docker -tt ”sudo /sbin/sysctl -w net.ipv4.ip_forward=1; sudo sysctl -p"  Besides, we need to change the MTU in Spain2 by the value that we have configured in the network. To do it, execute: $ docker-machine ssh FIWARE-swarm-master -tt "sudo sed -i 's/--label provider=openstack/-- label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0" 19
  • 20. Test it out  We will deploy an easy docker container to test it, please put this Dockerfile in your folder: 20
  • 21. Test it out  Create the image: $ docker build -t example -f Dockerfile . 21
  • 22. Test it out  See the new image running ‘docker images’. 22
  • 23. Test it out  Run your new image by typing ‘docker run example’ 23
  • 25. Docker compose: Get and application running in one command  Build a simple Python web application running on Docker Compose.  Test: deploy an application uses the Flask framework and increments a value in Redis. 25
  • 26. Create web server  Create app.py file with the content: 26
  • 27. Create web server  Create ‘requirements.txt’.  Create ‘Dockerfile’. 27
  • 28. Create web server  Create image ‘web’. 28
  • 29. Create web server  Check the new image ‘web’ 29
  • 30. Define services  Create a file called ‘docker-compose.yml’ in your project directory and add the following. 30
  • 31. Build and run your app with Compose  From your project directory, run: $ docker-compose up  See the deployed server running in: $ http://0.0.0.0:5000 31 KEEP IN MIND, This port has to be open in your Security Group
  • 32. Build and run your app with Compose  Get the IP of the docker-machine:  The IP of the server will be: http://130.206.122.3:5000 32
  • 33. See the application running 33
  • 34. Other commands  See what is currently running:  Stop your services once you’ve finished with them: 34
  • 35. Other commands  Remove stopped containers: 35
  • 37. Working with Docker Swarm 37  Docker Swarm is native clustering for Docker.  Turn a pool of Docker hosts into a single, virtual Docker host.
  • 38. Generate a discovery token using the Docker Swarm image  Execute the swarm create command in a container.  Export the token to a variable: $ export TOKEN=e924ca5408f5e88052d580bee034b145 38
  • 39. Launch the Swarm manager  Create a swarm manager under OpenStack: $ docker-machine create -d openstack --openstack-ssh-user centos --openstack-image-name base_centos_7 --openstack-flavor-name m1.small --openstack-floatingip-pool public-ext-net-01 --openstack-sec-groups docker-machine --openstack-net-name node-int-net-01 --swarm --swarm-master --swarm-discovery token://$TOKEN FIWARE-swarm-master 39
  • 40. Docker Swarm: create master  Remember configure IP Forwarding and MTU in Spain2 region: $ docker-machine ssh FIWARE-swarm-master -tt "sudo /sbin/sysctl -w net.ipv4.ip_forward=1; sudo sysctl -p"  Besides, we need to change the MTU in Spain2 by the value that we have configured in the network. To do it, execute: $ docker-machine ssh FIWARE-swarm-master -tt "sudo sed -i 's/--label provider=openstack/-- label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0" 40
  • 41. Create a swarm node agents  Execute the following command to create an agent in Spain region: $ docker-machine create -d openstack --openstack-ssh-user debian --openstack-image-name base_debian_8 --openstack-flavor-name m1.small --openstack-floatingip-pool public-ext-net-01 --openstack-sec-groups docker-machine --openstack-net-name node-int-net-01 --swarm --swarm-discovery token://$TOKEN FIWARE-swarm-agent-00 41
  • 42. Create a swarm node agents  Remember configure IP Forwarding and MTU in Spain region: $ docker-machine ssh FIWARE-swarm-agent-00 -tt "sudo /sbin/sysctl -w net.ipv4.ip_forward=1; sudo sysctl -p"  Besides, we need to change the MTU in Spain by the value that we have configured in the network. To do it, execute: $ docker-machine ssh FIWARE-swarm-agent-00 -tt "sudo sed -i 's/--label provider=openstack/- -label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0" 42
  • 43. Create a swarm node agents  Add another agent called swarm-agent-01 in Spain region: $ docker-machine create -d openstack --openstack-ssh-user debian --openstack-image-name base_debian_8 --openstack-flavor-name m1.small --openstack-floatingip-pool public-ext-net-01 --openstack-sec-groups docker-machine --openstack-net-name node-int-net-01 --swarm --swarm-discovery token://$TOKEN FIWARE-swarm-agent-01  Remember that we are using ‘OS_REGION_NAME=Spain2’ but you can select any other region in FIWARE Lab. 43
  • 44. Docker Swarm: create master  Remember configure IP Forwarding and MTU in Spain region: $ docker-machine ssh FIWARE-swarm-agent-01 -tt "sudo /sbin/sysctl -w net.ipv4.ip_forward=1; sudo sysctl -p"  Besides, we need to change the MTU in Spain by the value that we have configured in the network. To do it, execute: $ docker-machine ssh FIWARE-swarm-agent-01 -tt "sudo sed -i 's/--label provider=openstack/- -label provider=openstack --mtu=1400/g' /etc/systemd/system/docker.service ; sudo systemctl daemon-reload ; sudo systemctl restart docker ; sudo ip link set mtu 1400 dev docker0" 44
  • 45. Working with your swarm  Point your Docker environment to the machine running the swarm master: $ eval $(docker-machine env -swarm FIWARE-swarm-master)  Get information of your new swarm with command ‘docker info’: 45
  • 46. Working with your swarm  Check the images currently running on your swarm. 46
  • 47. Working with your swarm  Run hello-world docker and see where was it. 47
  • 49. References  How to work with FIWARE Lab: http://bit.ly/fiware-lab-cloud  Welcome to the docker Docs: https://docs.docker.com/  FIWARE Lab: https://cloud.lab.fiware.org  FIWARE GE docker images: https://hub.docker.com/u/fiware/dashboard/  FIWARE Catalogue: https://catalogue.fiware.org/ 49
  • 50. 50