SlideShare une entreprise Scribd logo
1  sur  38
Télécharger pour lire hors ligne
3,21
Code in container
By Lino «Jan» Telera
About me…
• Lino «Jan» Telera
• Blogger (http://blog.linoproject.net)
• Ex developer SOA and Frontend
• System administrator, cloud architect, CNA coach at LineaCom
• VCP4-5-6 VCP-Cloud VCP-DT vExpert 2015,2016,2017
• VMworld 2016 official blogger
• VMUG.it Leader board member
• TechFieldDay delegate since 2016
• DevOPS enthusiast and VMware «code» member
Agenda
• Cloud Native Application and DevOps concepts
• WTH is a Container
• Container Architecture
• Write a Code in Container
• Deploy a container in-premise and off-premise
• DEMO and questions
• Eat, drink, funs
Traditional VS Cloud Native Application
Old application issues (SOA, Tier-1, 3-Tier,…)
• Big team work
• Orchestrating well! or big failure comes!
• Single purpose or customer driven
• Operations and Scaling nightmare
• DR/DB???
Infrastrure Team
Developement
Team
Single Application
Dedicated
infrastructure
Patch, bugtrace,
evolutions
Operations,
capacity, scaling
Software
architect
Infrastructure
architect
Deploy
Deploy Timeline (if all goes well)
Wait
infrastructure
T > 1 month
Write code
Write
Integrations
Wait deploy Wait operations
Developement
workcycle
Sysadmin is an
Hostage…
Cloud Native Application
StateLess StateFull
Data routing and governance
Microservices Container
business
Temp data
SQL NoSQL Bigdata
Cloud services Cloud
Storage
DNS Certificate Orchestrator Cloud connector Proxy connector
Infrastructure
DevOps
Workcycle
What is a container
• Isolated instances that include
• Library
• Tools
• Business logic
• Most fashion: Docker
• More and more vendors are «in container» (and sometimes you don’t
know!)
• Software as a service
• Platform as a service
• Infrastructure as a service
• Monitoring, backup and orchestrators
• Storage and computing systems (HCI)
• Software defined Network
What is not a container
• VM 2.0
• Framework or Library
• An operative system
• Persisent isolated instances
• New hosting systems
The container paradigm
• Write your code
• Encapsulate in a «box»
• Deploy without Sysadmin
• Scale start/stop/increase and reduce (app scaling)
• Integrate, patch and deliver (Continous integration)
Deploy Timeline
Choose your
cloud
infrastructure
Write code Build Container
Deploy
Container
Scale container
Commit into GIT Commit into Hub Multiple projects
Continous
integration
Stack IT
Hardware In premise
Computing Storage
CloudVirtual Infrastructure
Virtual Machine Virtual Machine Virtual Machine
Management Tools
Contai
ner
Contai
ner
Contai
ner
Contai
ner
SQL
NoSQL
Storage
aaS
Contai
ner
Contai
ner
Contai
ner
Contai
ner
Networking
Contai
ner
Inside a container host
Virtual Machine = Container Hosts
Linux OS
Container Engine
Storage area
Network Driver
Container
Storage Arera
Image
Container
Container
Container
Public / Private
Image Registry
Container Host1
Application in container Step1
Container 1
NoSQL
ui
business
User
request
Container Host1
Application in container Step2
Container 1
NoSQL
ui User
request
Container 2
business
Container Host1
Application in container Step3a
Container 1
NoSQL
ui User
request
Container 2
business
Container Host2
Container 3
business
Container Host1
Application in container Step3b
Container 1
NoSQL
ui User
request
Container 2
business
Container Host2
Container 2
dup
business
dispatch
Container Host1
Application in container Step4
Container 1
NoSQL
ui User
request
Container 2
business
Container Host2
Container 3
business
Your datacenter in a box with Docker
• Like an homelab WAF (Wife Acceptance Factor)
• Location
• Size
• Noise
• Power and Cooling
• Cost
• Your PC/MAC! (64bit, VT, 8GB RAM)
• «Single» package installation from
https://www.docker.com/products/docker-toolbox
• Build your own with Vmware/Photon/Docker-machine…
• Use your Development Tool
• Amazon EC2???
OS
Virtualization SW Local Folder
Docker Engine Docker CLI
Container Container
Container Container
Just an example: Architecture
Python code
Lib web (with
dependencies)
http://webpy.org/
Port 80
Just an example – The code
#!/usr/bin/env python
import web
urls = (
'/say_hello', 'say_hello'
)
app = web.application(urls, globals())
class say_hello:
def GET(self):
return "hello from container"
if __name__ == "__main__":
app.run()
Just an example – Dockerfile 1
FROM ubuntu:trusty
MAINTAINER Lino Telera Linoproject.net <linotelera@gmail.com>
# Install base packages
RUN apt-get update && 
DEBIAN_FRONTEND=noninteractive apt-get -yq install 
python 
python-pip python-dev build-essential 
openssh-server 
libffi-dev libssl-dev 
git
Just an example – Dockerfile 2
RUN pip install --upgrade pip
RUN pip install --upgrade virtualenv
RUN pip install requests[security]
RUN pip install pyopenssl ndg-httpsclient pyasn1
WORKDIR /opt/services/
RUN easy_install web.py
Just an example – Dockerfile 1
EXPOSE 80
ADD ws.py /opt/services/ws.py
CMD ["python", "/opt/services/ws.py","80"]
Just an example – Build,Publish,Deploy, Run
• Docker build . –t=”linoproject/ws1”
• Docker login
• Docker push linoproject/ws1:latest
• Docker push linoproject/ws1:1
• docker run -d -p 80:80 
--name ws1 linoproject/ws1
Demo… and questions
What will happen?
Not all application are container «ready»
• UI, business and data separation rule the decision
• Tier-1 are born to be in a same «container»… No chance to be a CNA
• Some old application could be in container (drupal, wordpress,…)
when is possibile:
• Separate business and data logic
• Federate and/or be a web service
• Microsoft applications?
• Starting with Windows 2016 container could be a Nano-instance with
Win64bit code
Data logic nightmare
• Containers are not persistent!
• Containers could share data but split-brain may occurs!
• Data separation should be handled everywhere
• Working data
• Primitive
• Derivate
• Configuration data
• Messages
• Use DB in container in two cases:
• LAB
• Single instance
• Container could be a good database proxy connector (eg.: Nifi with
Hadoop)
Who is working on
• Docker! (in premise and datacenter)
• Amazon
• EC2
• EC2 Container service (ECS)
• Vmware
• In premise Photon, VIC
• vCloudAir or Partner Service Provider (vCloud Director)
• Microsoft
• Azure
• Windows Server 2016 «nano server in container»
VMware and Microsoft announcements
• Windows 2016 comes with native container
• Docker hub has windows and linux contianer images
• Windows Server could deliver both windows (aka native) and linux container
(hyper-v)
• VMware (https://vmware.github.io/)
• Photon and Photon controller (opensource!)
• Admiral and Harbor (management and registry)
• vSphere Integrated Container
• Good for sysadmin management
• Good for Security (NSX and microsegmentation)
• 100.000 Users and 200 local groups
• 1 local group in Italy: vmugit (http://www.vmug.it)
• In Italy (since 2016) new devops track!
• Italian Events in 2017
• Meeting north 5 Apr Padova
• Meeting south 9 May Rome
• User Conference 2017 14 Nov Milan
• Next??? Stay tuned!
• VMUG is your place! Join and share your experience!
Summary
• Containers…
• Not all applications are ready for docker
• A lot of old applications could be «dockerized»
• DevOPS with Freedom & Control!
• Code, Build, Integrate, Deploy
• Make IT better and don’t stress your Sysadmin
• You must try (Docker toolbox, Photon… Windows Server 2016)
Online resources
• My Blog: http://blog.linoproject.net
• Experience with Bigdata and containers
• Good presentation by Stephen Foskett at Emerging Technology
Summit 2016
• https://www.youtube.com/watch?v=hT6tROPVdXU
• Blog http://www.it20.info/ by Massimo ReFerrè
• Blog http://cormachogan.com/ by Cormac Hogan
• VMware CNA on github https://vmware.github.io/
• Docker https://www.docker.com/
Questions
Thanks… and…
Lino Telera
linotelera@gmail.com
http://blog.linoproject.net
@linotelera
Thanks to Brewbox!!!!!!!
Cobox, CRIT, Lineacom
Lino Telera
linotelera@gmail.com
http://blog.linoproject.net
@linotelera

Contenu connexe

Tendances

Docker Registry V2
Docker Registry V2Docker Registry V2
Docker Registry V2Docker, Inc.
 
Docker, a new LINUX container technology based light weight virtualization
Docker, a new LINUX container technology based light weight virtualizationDocker, a new LINUX container technology based light weight virtualization
Docker, a new LINUX container technology based light weight virtualizationSuresh Balla
 
Immutable infrastructure with Docker and EC2
Immutable infrastructure with Docker and EC2Immutable infrastructure with Docker and EC2
Immutable infrastructure with Docker and EC2dotCloud
 
Docker - A high level introduction to dockers and containers
Docker - A high level introduction to dockers and containersDocker - A high level introduction to dockers and containers
Docker - A high level introduction to dockers and containersDr Ganesh Iyer
 
Nginx conference 2015
Nginx conference 2015Nginx conference 2015
Nginx conference 2015ING-IT
 
The Next Generation Cloud: Unleashing the Power of the Unikernal
The Next Generation Cloud: Unleashing the Power of the UnikernalThe Next Generation Cloud: Unleashing the Power of the Unikernal
The Next Generation Cloud: Unleashing the Power of the UnikernalAll Things Open
 
Docker in a big company
Docker in a big companyDocker in a big company
Docker in a big companyDocker, Inc.
 
OSCON: Unikernels and Docker: From revolution to evolution
OSCON: Unikernels and Docker: From revolution to evolutionOSCON: Unikernels and Docker: From revolution to evolution
OSCON: Unikernels and Docker: From revolution to evolutionDocker, Inc.
 
Containers and microservices for realists
Containers and microservices for realistsContainers and microservices for realists
Containers and microservices for realistsKarthik Gaekwad
 
Docker intro
Docker introDocker intro
Docker introspiddy
 
Docker and Containers overview - Docker Workshop
Docker and Containers overview - Docker WorkshopDocker and Containers overview - Docker Workshop
Docker and Containers overview - Docker WorkshopJonas Rosland
 
DockerCon SF 2015: DHE/DTR
DockerCon SF 2015: DHE/DTRDockerCon SF 2015: DHE/DTR
DockerCon SF 2015: DHE/DTRDocker, Inc.
 
Building a smarter application Stack by Tomas Doran from Yelp
Building a smarter application Stack by Tomas Doran from YelpBuilding a smarter application Stack by Tomas Doran from Yelp
Building a smarter application Stack by Tomas Doran from YelpdotCloud
 
Are VM Passé?
Are VM Passé? Are VM Passé?
Are VM Passé? dotCloud
 
Why Docker
Why DockerWhy Docker
Why DockerdotCloud
 
Opinionated containers and the future of game servers by Brendan Fosberry
Opinionated containers and the future of game servers by Brendan FosberryOpinionated containers and the future of game servers by Brendan Fosberry
Opinionated containers and the future of game servers by Brendan FosberryDocker, Inc.
 
Hypervisor "versus" Linux Containers with Docker !
Hypervisor "versus" Linux Containers with Docker !Hypervisor "versus" Linux Containers with Docker !
Hypervisor "versus" Linux Containers with Docker !Francisco Gonçalves
 
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
Automating CICD Pipeline with GitLab and Docker Containers for Java ApplicationsAutomating CICD Pipeline with GitLab and Docker Containers for Java Applications
Automating CICD Pipeline with GitLab and Docker Containers for Java ApplicationsJelastic Multi-Cloud PaaS
 
DCEU 18: App-in-a-Box with Docker Application Packages
DCEU 18: App-in-a-Box with Docker Application PackagesDCEU 18: App-in-a-Box with Docker Application Packages
DCEU 18: App-in-a-Box with Docker Application PackagesDocker, Inc.
 
Weave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 RecapWeave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 RecapPatrick Chanezon
 

Tendances (20)

Docker Registry V2
Docker Registry V2Docker Registry V2
Docker Registry V2
 
Docker, a new LINUX container technology based light weight virtualization
Docker, a new LINUX container technology based light weight virtualizationDocker, a new LINUX container technology based light weight virtualization
Docker, a new LINUX container technology based light weight virtualization
 
Immutable infrastructure with Docker and EC2
Immutable infrastructure with Docker and EC2Immutable infrastructure with Docker and EC2
Immutable infrastructure with Docker and EC2
 
Docker - A high level introduction to dockers and containers
Docker - A high level introduction to dockers and containersDocker - A high level introduction to dockers and containers
Docker - A high level introduction to dockers and containers
 
Nginx conference 2015
Nginx conference 2015Nginx conference 2015
Nginx conference 2015
 
The Next Generation Cloud: Unleashing the Power of the Unikernal
The Next Generation Cloud: Unleashing the Power of the UnikernalThe Next Generation Cloud: Unleashing the Power of the Unikernal
The Next Generation Cloud: Unleashing the Power of the Unikernal
 
Docker in a big company
Docker in a big companyDocker in a big company
Docker in a big company
 
OSCON: Unikernels and Docker: From revolution to evolution
OSCON: Unikernels and Docker: From revolution to evolutionOSCON: Unikernels and Docker: From revolution to evolution
OSCON: Unikernels and Docker: From revolution to evolution
 
Containers and microservices for realists
Containers and microservices for realistsContainers and microservices for realists
Containers and microservices for realists
 
Docker intro
Docker introDocker intro
Docker intro
 
Docker and Containers overview - Docker Workshop
Docker and Containers overview - Docker WorkshopDocker and Containers overview - Docker Workshop
Docker and Containers overview - Docker Workshop
 
DockerCon SF 2015: DHE/DTR
DockerCon SF 2015: DHE/DTRDockerCon SF 2015: DHE/DTR
DockerCon SF 2015: DHE/DTR
 
Building a smarter application Stack by Tomas Doran from Yelp
Building a smarter application Stack by Tomas Doran from YelpBuilding a smarter application Stack by Tomas Doran from Yelp
Building a smarter application Stack by Tomas Doran from Yelp
 
Are VM Passé?
Are VM Passé? Are VM Passé?
Are VM Passé?
 
Why Docker
Why DockerWhy Docker
Why Docker
 
Opinionated containers and the future of game servers by Brendan Fosberry
Opinionated containers and the future of game servers by Brendan FosberryOpinionated containers and the future of game servers by Brendan Fosberry
Opinionated containers and the future of game servers by Brendan Fosberry
 
Hypervisor "versus" Linux Containers with Docker !
Hypervisor "versus" Linux Containers with Docker !Hypervisor "versus" Linux Containers with Docker !
Hypervisor "versus" Linux Containers with Docker !
 
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
Automating CICD Pipeline with GitLab and Docker Containers for Java ApplicationsAutomating CICD Pipeline with GitLab and Docker Containers for Java Applications
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
 
DCEU 18: App-in-a-Box with Docker Application Packages
DCEU 18: App-in-a-Box with Docker Application PackagesDCEU 18: App-in-a-Box with Docker Application Packages
DCEU 18: App-in-a-Box with Docker Application Packages
 
Weave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 RecapWeave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 Recap
 

Similaire à 321 codeincontainer brewbox

Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013dotCloud
 
Intro Docker october 2013
Intro Docker october 2013Intro Docker october 2013
Intro Docker october 2013dotCloud
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to DockerAditya Konarde
 
Docker introduction
Docker introductionDocker introduction
Docker introductiondotCloud
 
Demystifying Containerization Principles for Data Scientists
Demystifying Containerization Principles for Data ScientistsDemystifying Containerization Principles for Data Scientists
Demystifying Containerization Principles for Data ScientistsDr Ganesh Iyer
 
Cloudsolutionday 2016: DevOps workflow with Docker on AWS
Cloudsolutionday 2016: DevOps workflow with Docker on AWSCloudsolutionday 2016: DevOps workflow with Docker on AWS
Cloudsolutionday 2016: DevOps workflow with Docker on AWSAWS Vietnam Community
 
Intro to Docker October 2013
Intro to Docker October 2013Intro to Docker October 2013
Intro to Docker October 2013Docker, Inc.
 
The challenge of application distribution - Introduction to Docker (2014 dec ...
The challenge of application distribution - Introduction to Docker (2014 dec ...The challenge of application distribution - Introduction to Docker (2014 dec ...
The challenge of application distribution - Introduction to Docker (2014 dec ...Sébastien Portebois
 
Docker & aPaaS: Enterprise Innovation and Trends for 2015
Docker & aPaaS: Enterprise Innovation and Trends for 2015Docker & aPaaS: Enterprise Innovation and Trends for 2015
Docker & aPaaS: Enterprise Innovation and Trends for 2015WaveMaker, Inc.
 
Serverless brewbox
Serverless   brewboxServerless   brewbox
Serverless brewboxLino Telera
 
Dockers and kubernetes
Dockers and kubernetesDockers and kubernetes
Dockers and kubernetesDr Ganesh Iyer
 
Intro to Docker November 2013
Intro to Docker November 2013Intro to Docker November 2013
Intro to Docker November 2013Docker, Inc.
 
Dockerize the World
Dockerize the WorldDockerize the World
Dockerize the Worlddamovsky
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker IntroductionPeng Xiao
 

Similaire à 321 codeincontainer brewbox (20)

Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
 
OpenStack Summit
OpenStack SummitOpenStack Summit
OpenStack Summit
 
Intro Docker october 2013
Intro Docker october 2013Intro Docker october 2013
Intro Docker october 2013
 
Webinar Docker Tri Series
Webinar Docker Tri SeriesWebinar Docker Tri Series
Webinar Docker Tri Series
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Docker-Intro
Docker-IntroDocker-Intro
Docker-Intro
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Docker
DockerDocker
Docker
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Demystifying Containerization Principles for Data Scientists
Demystifying Containerization Principles for Data ScientistsDemystifying Containerization Principles for Data Scientists
Demystifying Containerization Principles for Data Scientists
 
Cloudsolutionday 2016: DevOps workflow with Docker on AWS
Cloudsolutionday 2016: DevOps workflow with Docker on AWSCloudsolutionday 2016: DevOps workflow with Docker on AWS
Cloudsolutionday 2016: DevOps workflow with Docker on AWS
 
Intro to Docker October 2013
Intro to Docker October 2013Intro to Docker October 2013
Intro to Docker October 2013
 
The challenge of application distribution - Introduction to Docker (2014 dec ...
The challenge of application distribution - Introduction to Docker (2014 dec ...The challenge of application distribution - Introduction to Docker (2014 dec ...
The challenge of application distribution - Introduction to Docker (2014 dec ...
 
Docker & aPaaS: Enterprise Innovation and Trends for 2015
Docker & aPaaS: Enterprise Innovation and Trends for 2015Docker & aPaaS: Enterprise Innovation and Trends for 2015
Docker & aPaaS: Enterprise Innovation and Trends for 2015
 
Serverless brewbox
Serverless   brewboxServerless   brewbox
Serverless brewbox
 
Dockers and kubernetes
Dockers and kubernetesDockers and kubernetes
Dockers and kubernetes
 
Intro to Docker November 2013
Intro to Docker November 2013Intro to Docker November 2013
Intro to Docker November 2013
 
Are VMs Passé?
Are VMs Passé?Are VMs Passé?
Are VMs Passé?
 
Dockerize the World
Dockerize the WorldDockerize the World
Dockerize the World
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 

Dernier

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 

Dernier (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 

321 codeincontainer brewbox

  • 1. 3,21 Code in container By Lino «Jan» Telera
  • 2. About me… • Lino «Jan» Telera • Blogger (http://blog.linoproject.net) • Ex developer SOA and Frontend • System administrator, cloud architect, CNA coach at LineaCom • VCP4-5-6 VCP-Cloud VCP-DT vExpert 2015,2016,2017 • VMworld 2016 official blogger • VMUG.it Leader board member • TechFieldDay delegate since 2016 • DevOPS enthusiast and VMware «code» member
  • 3. Agenda • Cloud Native Application and DevOps concepts • WTH is a Container • Container Architecture • Write a Code in Container • Deploy a container in-premise and off-premise • DEMO and questions • Eat, drink, funs
  • 4. Traditional VS Cloud Native Application Old application issues (SOA, Tier-1, 3-Tier,…) • Big team work • Orchestrating well! or big failure comes! • Single purpose or customer driven • Operations and Scaling nightmare • DR/DB??? Infrastrure Team Developement Team Single Application Dedicated infrastructure Patch, bugtrace, evolutions Operations, capacity, scaling Software architect Infrastructure architect Deploy
  • 5. Deploy Timeline (if all goes well) Wait infrastructure T > 1 month Write code Write Integrations Wait deploy Wait operations
  • 8. Cloud Native Application StateLess StateFull Data routing and governance Microservices Container business Temp data SQL NoSQL Bigdata Cloud services Cloud Storage DNS Certificate Orchestrator Cloud connector Proxy connector Infrastructure
  • 10. What is a container • Isolated instances that include • Library • Tools • Business logic • Most fashion: Docker • More and more vendors are «in container» (and sometimes you don’t know!) • Software as a service • Platform as a service • Infrastructure as a service • Monitoring, backup and orchestrators • Storage and computing systems (HCI) • Software defined Network
  • 11. What is not a container • VM 2.0 • Framework or Library • An operative system • Persisent isolated instances • New hosting systems
  • 12. The container paradigm • Write your code • Encapsulate in a «box» • Deploy without Sysadmin • Scale start/stop/increase and reduce (app scaling) • Integrate, patch and deliver (Continous integration)
  • 13. Deploy Timeline Choose your cloud infrastructure Write code Build Container Deploy Container Scale container Commit into GIT Commit into Hub Multiple projects Continous integration
  • 14. Stack IT Hardware In premise Computing Storage CloudVirtual Infrastructure Virtual Machine Virtual Machine Virtual Machine Management Tools Contai ner Contai ner Contai ner Contai ner SQL NoSQL Storage aaS Contai ner Contai ner Contai ner Contai ner Networking Contai ner
  • 15. Inside a container host Virtual Machine = Container Hosts Linux OS Container Engine Storage area Network Driver Container Storage Arera Image Container Container Container Public / Private Image Registry
  • 16. Container Host1 Application in container Step1 Container 1 NoSQL ui business User request
  • 17. Container Host1 Application in container Step2 Container 1 NoSQL ui User request Container 2 business
  • 18. Container Host1 Application in container Step3a Container 1 NoSQL ui User request Container 2 business Container Host2 Container 3 business
  • 19. Container Host1 Application in container Step3b Container 1 NoSQL ui User request Container 2 business Container Host2 Container 2 dup business dispatch
  • 20. Container Host1 Application in container Step4 Container 1 NoSQL ui User request Container 2 business Container Host2 Container 3 business
  • 21. Your datacenter in a box with Docker • Like an homelab WAF (Wife Acceptance Factor) • Location • Size • Noise • Power and Cooling • Cost • Your PC/MAC! (64bit, VT, 8GB RAM) • «Single» package installation from https://www.docker.com/products/docker-toolbox • Build your own with Vmware/Photon/Docker-machine… • Use your Development Tool • Amazon EC2??? OS Virtualization SW Local Folder Docker Engine Docker CLI Container Container Container Container
  • 22. Just an example: Architecture Python code Lib web (with dependencies) http://webpy.org/ Port 80
  • 23. Just an example – The code #!/usr/bin/env python import web urls = ( '/say_hello', 'say_hello' ) app = web.application(urls, globals()) class say_hello: def GET(self): return "hello from container" if __name__ == "__main__": app.run()
  • 24. Just an example – Dockerfile 1 FROM ubuntu:trusty MAINTAINER Lino Telera Linoproject.net <linotelera@gmail.com> # Install base packages RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install python python-pip python-dev build-essential openssh-server libffi-dev libssl-dev git
  • 25. Just an example – Dockerfile 2 RUN pip install --upgrade pip RUN pip install --upgrade virtualenv RUN pip install requests[security] RUN pip install pyopenssl ndg-httpsclient pyasn1 WORKDIR /opt/services/ RUN easy_install web.py
  • 26. Just an example – Dockerfile 1 EXPOSE 80 ADD ws.py /opt/services/ws.py CMD ["python", "/opt/services/ws.py","80"]
  • 27. Just an example – Build,Publish,Deploy, Run • Docker build . –t=”linoproject/ws1” • Docker login • Docker push linoproject/ws1:latest • Docker push linoproject/ws1:1 • docker run -d -p 80:80 --name ws1 linoproject/ws1
  • 29. Not all application are container «ready» • UI, business and data separation rule the decision • Tier-1 are born to be in a same «container»… No chance to be a CNA • Some old application could be in container (drupal, wordpress,…) when is possibile: • Separate business and data logic • Federate and/or be a web service • Microsoft applications? • Starting with Windows 2016 container could be a Nano-instance with Win64bit code
  • 30. Data logic nightmare • Containers are not persistent! • Containers could share data but split-brain may occurs! • Data separation should be handled everywhere • Working data • Primitive • Derivate • Configuration data • Messages • Use DB in container in two cases: • LAB • Single instance • Container could be a good database proxy connector (eg.: Nifi with Hadoop)
  • 31. Who is working on • Docker! (in premise and datacenter) • Amazon • EC2 • EC2 Container service (ECS) • Vmware • In premise Photon, VIC • vCloudAir or Partner Service Provider (vCloud Director) • Microsoft • Azure • Windows Server 2016 «nano server in container»
  • 32. VMware and Microsoft announcements • Windows 2016 comes with native container • Docker hub has windows and linux contianer images • Windows Server could deliver both windows (aka native) and linux container (hyper-v) • VMware (https://vmware.github.io/) • Photon and Photon controller (opensource!) • Admiral and Harbor (management and registry) • vSphere Integrated Container • Good for sysadmin management • Good for Security (NSX and microsegmentation)
  • 33. • 100.000 Users and 200 local groups • 1 local group in Italy: vmugit (http://www.vmug.it) • In Italy (since 2016) new devops track! • Italian Events in 2017 • Meeting north 5 Apr Padova • Meeting south 9 May Rome • User Conference 2017 14 Nov Milan • Next??? Stay tuned! • VMUG is your place! Join and share your experience!
  • 34. Summary • Containers… • Not all applications are ready for docker • A lot of old applications could be «dockerized» • DevOPS with Freedom & Control! • Code, Build, Integrate, Deploy • Make IT better and don’t stress your Sysadmin • You must try (Docker toolbox, Photon… Windows Server 2016)
  • 35. Online resources • My Blog: http://blog.linoproject.net • Experience with Bigdata and containers • Good presentation by Stephen Foskett at Emerging Technology Summit 2016 • https://www.youtube.com/watch?v=hT6tROPVdXU • Blog http://www.it20.info/ by Massimo ReFerrè • Blog http://cormachogan.com/ by Cormac Hogan • VMware CNA on github https://vmware.github.io/ • Docker https://www.docker.com/
  • 38. Thanks to Brewbox!!!!!!! Cobox, CRIT, Lineacom Lino Telera linotelera@gmail.com http://blog.linoproject.net @linotelera