SlideShare una empresa de Scribd logo
1 de 34
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Running Docker and Rancher
Locally on Dev Machines
May 26, 2016
#ranchermeetup
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Shannon Williams
Co-Founder/VP Marketing
@smw355
1
Darren Shepherd
Co-Founder/Chief Architect
@ibuildthecloud
Freenode: darren0
#ranchermeetup
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Chris Urwin
DevOps Lead - UK
Rancher Labs
@containerschris
2
Mark Matthews
Principal
ARKM Enterprise
https://uk.linkedin.com/in/mark-
matthews-2965501
#ranchermeetup
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
First things first…
This is a not a !
3 #ranchermeetup
© 2015 Rancher Labs, Inc.4
There are rules for a meetup!
• We won’t be done on time
• Questions are always welcome
• There are no bad questions
• Demo, then demo some more
• Things will break, be patient
#ranchermeetup
© 2015 Rancher Labs, Inc.5
Join the conversation on Twitter
#ranchermeetup
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Agenda
• From Dev to DevOps to Dev - Shannon
• Running Docker and Rancher Locally on Dev Machines – Chris
• Demo: Building a Micro DC - Chris
• User Story: Rancher for our Dev Team – Mark
• Latest Rancher Update – Darren
6 #ranchermeetup
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Rancher Labs
7 #ranchermeetup
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Building a Container Service
8
Container Service
Linux Linux Linux Linux Linux Linux
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
How to deploy a container service
9
Container Service
Linux Linux Linux Linux Linux Linux
App Catalog
Orchestration
Scheduling
Monitoring
Access Control
Network
Storage
Distributed DB
Registry
Engine
Security
Helm, …
Compose, Kubernetes, Marathon,
Swarm, Kubernetes, Mesos, …
cAdvisor, Sysdig, Datadog, …
LDAP, AD, GitHub, …
DockerHub, Quay.io, …
Docker, Rkt, …
Notary, Vault, …
VXLAN, IPSEC, HAProxy, …
Ceph, Gluster, Swift, …
Etcd, Consul, MongoDB, …
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Rancher Overview
10
Microservice Catalog
AD/LDAP
Leverage
existing tools:
- CI/CD
- Code
Repository
- Monitoring
Environment 1 Environment N
…
Network Services Storage Services
Container Orchestration and Scheduling
User Mgmt Ops Mgmt
Environment 2
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .#ranchermeetup
Running Docker
and Rancher
Locally on Dev
Machines
My other data center
is this laptop
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Problem Statement
“I want my developers and testers
to be able to build and test quality
code independently; using the
same toolset as production uses.”
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Some of the problems….
• Multiple developers all trying to update
applications at the same time
• Scheduling conflicts
• No SSL or proxy server
• Data quality/consistency issues
• Network contention
• Environment consistency
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
A potential solution
• Running Docker in the datacentre…run it
locally
• Running Rancher in the datacentre…run it
locally
• On a local hypervisor (or natively)
• Have a common data set
• Useful for Developers and testers
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
What does it look like
MirrorRancher Server
Rancher Agent
Jenkins
Desktop
Virtualisation
Layer
App Stack
Development VM
Shared Folders
© 2015 Rancher Labs, Inc.16
Demo
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
How can Rancher help?
• Gives visibility of application stack
• Can be utilised by less technical resources
• Consistency
• API and GUI
• Load Balancing
• Catalog
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Demo App
Voting App
Redis
queue
Java
Worker
Database
Results
App
Voting App
Voting App
Load
Balancer
© 2015 Rancher Labs, Inc.19
Demo
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
The flow
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Benefits of local dev
• More representative of production
• Distributed build system
• Independent development
• Moves Developers more to Devopers
• Familiarity with tools
• Consistency
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Limitations
• Physical
• The more memory the better
• The fastest disks you can get
• Your imagination…
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
© 2015 Rancher Labs, Inc.
Rancher Dev In A Box
© 2015 Rancher Labs, Inc.
Don't Bash it out, Compose it
 We all start with bash script building and
running docker containers
 We nearly all then use docker-compose instead
 The iced cake is using Rancher Compose for
scaling and interdependent service stack
management
 More composition means more reliable scripting
 How to take full advantage of this?
© 2015 Rancher Labs, Inc.
Mirror Mirror on the Laptop
 Reduces network contention
 Pull in the background today for your build
tomorrow
 A great enabler for fast dev builds
 Faster dev builds for quicker feedback cycles
 Low overhead
© 2015 Rancher Labs, Inc.
CI fingers in all the pies
 Gives a UI for testers - because most teams still
have these
 Can talk to the host file system, dev box,
rancher box
 Make sure you sidekick a data volume, thus
direct code refresh from local git
 Easily switch between projects (stacks off,
stacks on, no need to delete)
 Easy re-deploy from latest code
© 2015 Rancher Labs, Inc.
Rancher++
 Managing containers is a pain, rancher solves
that, so give it to everyone
 Rancher lets everyone easily see memory, io,
network traffic - early diagnosis
 More easily test multi-stack systems - don't
leave that to PTL or Prod, solve the pain early
 Especially for less surprises on your [sticky] session
handling
 Internal registry trick "localhost:5000/"
 Same deployment and management tools as
PTL & Prod
 Low overhead
© 2015 Rancher Labs, Inc.
Thanks!
 Enquiries to
 Mark Matthews
 markmatthews@arkmEnterprises.co.uk
 Chris Urwin
 chris@rancher.com
Hand drawn images and the ARKM logo (c) ARKM Enterprises 2016.
© 2015 Rancher Labs, Inc.
Latest Rancher Enhancements
30
1.0.1
• Rancher Multi-node Simplification
#ranchermeetup
1.1-dev2
• Experimental Mesos support
• F5 Load balancer integration
• Customizable Docker Machine UI
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Getting Started
Rancher and RancherOS are in GitHub – Get Involved!
31 #ranchermeetup
http://github.com/rancher
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
New eBook: Building a CI/CD Pipeline
with Docker & Rancher
32
http://info.rancher.com/cicd-with-docker-ebook
© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
Thank you
rancher.com
#ranchermeetup

Más contenido relacionado

La actualidad más candente

From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016
Shannon Williams
 
Infrasturcure-as-code with Kubernetes and Rancher - September 2019 Online Meetup
Infrasturcure-as-code with Kubernetes and Rancher - September 2019 Online MeetupInfrasturcure-as-code with Kubernetes and Rancher - September 2019 Online Meetup
Infrasturcure-as-code with Kubernetes and Rancher - September 2019 Online Meetup
Shannon Williams
 

La actualidad más candente (20)

Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
Introducing Kubernetes Clusters in Rancher - February 2016 Online MeetupIntroducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
 
Introducing Project Longhorn - April 2016 Rancher Online Meetup
Introducing Project Longhorn - April 2016 Rancher Online MeetupIntroducing Project Longhorn - April 2016 Rancher Online Meetup
Introducing Project Longhorn - April 2016 Rancher Online Meetup
 
From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016
 
More tips and tricks for running containers like a pro - Rancher Online MEetu...
More tips and tricks for running containers like a pro - Rancher Online MEetu...More tips and tricks for running containers like a pro - Rancher Online MEetu...
More tips and tricks for running containers like a pro - Rancher Online MEetu...
 
Building a Scalable CI Platform using Docker, Drone and Rancher
Building a Scalable CI  Platform using Docker, Drone and RancherBuilding a Scalable CI  Platform using Docker, Drone and Rancher
Building a Scalable CI Platform using Docker, Drone and Rancher
 
Securing Container Deployments from Build to Ship to Run - August 2017 - Ranc...
Securing Container Deployments from Build to Ship to Run - August 2017 - Ranc...Securing Container Deployments from Build to Ship to Run - August 2017 - Ranc...
Securing Container Deployments from Build to Ship to Run - August 2017 - Ranc...
 
Supercharging CI/CD with GitLab and Rancher - June 2017 Online Meetup
Supercharging CI/CD with GitLab and Rancher - June 2017 Online MeetupSupercharging CI/CD with GitLab and Rancher - June 2017 Online Meetup
Supercharging CI/CD with GitLab and Rancher - June 2017 Online Meetup
 
Building an Enterprise CaaS with Kubernetes and Rancher 2.0
Building an Enterprise CaaS with Kubernetes and Rancher 2.0Building an Enterprise CaaS with Kubernetes and Rancher 2.0
Building an Enterprise CaaS with Kubernetes and Rancher 2.0
 
Hands-on with Rancher 2.0 and Kubernetes - October 2017 Rancher Online Meetup
Hands-on with Rancher 2.0 and Kubernetes - October 2017 Rancher Online MeetupHands-on with Rancher 2.0 and Kubernetes - October 2017 Rancher Online Meetup
Hands-on with Rancher 2.0 and Kubernetes - October 2017 Rancher Online Meetup
 
Automate CI/CD with Rancher
Automate CI/CD with RancherAutomate CI/CD with Rancher
Automate CI/CD with Rancher
 
Drone presentation
Drone presentationDrone presentation
Drone presentation
 
Infrasturcure-as-code with Kubernetes and Rancher - September 2019 Online Meetup
Infrasturcure-as-code with Kubernetes and Rancher - September 2019 Online MeetupInfrasturcure-as-code with Kubernetes and Rancher - September 2019 Online Meetup
Infrasturcure-as-code with Kubernetes and Rancher - September 2019 Online Meetup
 
An Introduction to Rancher
An Introduction to RancherAn Introduction to Rancher
An Introduction to Rancher
 
Rancher presentation august 2017
Rancher presentation august 2017Rancher presentation august 2017
Rancher presentation august 2017
 
Continuous Delivery at Gogo with Spinnaker and Foremast
Continuous Delivery at Gogo with Spinnaker and ForemastContinuous Delivery at Gogo with Spinnaker and Foremast
Continuous Delivery at Gogo with Spinnaker and Foremast
 
Win Spinnaker with Winnaker - Open Source North Conf 2017
Win Spinnaker with Winnaker - Open Source North Conf 2017Win Spinnaker with Winnaker - Open Source North Conf 2017
Win Spinnaker with Winnaker - Open Source North Conf 2017
 
Rancher Labs - Your own PaaS in action
Rancher Labs - Your own PaaS in actionRancher Labs - Your own PaaS in action
Rancher Labs - Your own PaaS in action
 
CI/CD with Rancher CLI + Jenkins
CI/CD with Rancher CLI + JenkinsCI/CD with Rancher CLI + Jenkins
CI/CD with Rancher CLI + Jenkins
 
Rancher 2.0 Technical Deep Dive
Rancher 2.0 Technical Deep DiveRancher 2.0 Technical Deep Dive
Rancher 2.0 Technical Deep Dive
 
Docker Enables DevOps
Docker Enables DevOpsDocker Enables DevOps
Docker Enables DevOps
 

Destacado

Making things that work with us - Distill
Making things that work with us - DistillMaking things that work with us - Distill
Making things that work with us - Distill
Matteo Collina
 
Making your washing machine talk with a power plant
Making your washing machine talk with a power plantMaking your washing machine talk with a power plant
Making your washing machine talk with a power plant
Matteo Collina
 

Destacado (20)

PHP World DC 2015 - What Can Go Wrong with Agile Development and How to Fix It
PHP World DC 2015 - What Can Go Wrong with Agile Development and How to Fix ItPHP World DC 2015 - What Can Go Wrong with Agile Development and How to Fix It
PHP World DC 2015 - What Can Go Wrong with Agile Development and How to Fix It
 
Redis for your boss
Redis for your bossRedis for your boss
Redis for your boss
 
From Zero to Hero - Nexinto
From Zero to Hero - NexintoFrom Zero to Hero - Nexinto
From Zero to Hero - Nexinto
 
Clocker, the Docker Cloud Maker - Andrea Turli - Codemotion Rome 2015
Clocker, the Docker Cloud Maker - Andrea Turli - Codemotion Rome 2015Clocker, the Docker Cloud Maker - Andrea Turli - Codemotion Rome 2015
Clocker, the Docker Cloud Maker - Andrea Turli - Codemotion Rome 2015
 
90K Reasons Security is a Must - PHPWorld 2014
90K Reasons Security is a Must - PHPWorld 201490K Reasons Security is a Must - PHPWorld 2014
90K Reasons Security is a Must - PHPWorld 2014
 
Making things that work with us - Distill
Making things that work with us - DistillMaking things that work with us - Distill
Making things that work with us - Distill
 
Making your washing machine talk with a power plant
Making your washing machine talk with a power plantMaking your washing machine talk with a power plant
Making your washing machine talk with a power plant
 
CloudFormation vs Terraform vs Ansible
CloudFormation vs Terraform vs AnsibleCloudFormation vs Terraform vs Ansible
CloudFormation vs Terraform vs Ansible
 
Using Rancher and Docker with RightScale at Industrie IT
Using Rancher and Docker with RightScale at Industrie IT Using Rancher and Docker with RightScale at Industrie IT
Using Rancher and Docker with RightScale at Industrie IT
 
Create, test, secure, repeat
Create, test, secure, repeatCreate, test, secure, repeat
Create, test, secure, repeat
 
Hack the Future
Hack the FutureHack the Future
Hack the Future
 
php[world] 2015 Training - Laravel from the Ground Up
php[world] 2015 Training - Laravel from the Ground Upphp[world] 2015 Training - Laravel from the Ground Up
php[world] 2015 Training - Laravel from the Ground Up
 
Engineer - Mastering the Art of Software
Engineer - Mastering the Art of SoftwareEngineer - Mastering the Art of Software
Engineer - Mastering the Art of Software
 
Adding 1.21 Gigawatts to Applications with RabbitMQ (Bulgaria PHP 2016 - Tuto...
Adding 1.21 Gigawatts to Applications with RabbitMQ (Bulgaria PHP 2016 - Tuto...Adding 1.21 Gigawatts to Applications with RabbitMQ (Bulgaria PHP 2016 - Tuto...
Adding 1.21 Gigawatts to Applications with RabbitMQ (Bulgaria PHP 2016 - Tuto...
 
Amp your site an intro to accelerated mobile pages
Amp your site  an intro to accelerated mobile pagesAmp your site  an intro to accelerated mobile pages
Amp your site an intro to accelerated mobile pages
 
Zend Framework Foundations
Zend Framework FoundationsZend Framework Foundations
Zend Framework Foundations
 
Dip Your Toes in the Sea of Security
Dip Your Toes in the Sea of SecurityDip Your Toes in the Sea of Security
Dip Your Toes in the Sea of Security
 
Presentation Bulgaria PHP
Presentation Bulgaria PHPPresentation Bulgaria PHP
Presentation Bulgaria PHP
 
Console Apps: php artisan forthe:win
Console Apps: php artisan forthe:win Console Apps: php artisan forthe:win
Console Apps: php artisan forthe:win
 
Code Coverage for Total Security in Application Migrations
Code Coverage for Total Security in Application MigrationsCode Coverage for Total Security in Application Migrations
Code Coverage for Total Security in Application Migrations
 

Similar a Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016

Similar a Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016 (20)

DevOps as a Pathway to AWS | AWS Public Sector Summit 2016
DevOps as a Pathway to AWS | AWS Public Sector Summit 2016DevOps as a Pathway to AWS | AWS Public Sector Summit 2016
DevOps as a Pathway to AWS | AWS Public Sector Summit 2016
 
ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
 
Austin - Container Days - Docker 101
Austin - Container Days - Docker 101Austin - Container Days - Docker 101
Austin - Container Days - Docker 101
 
DevOps, CLI, APIs, Oh My! Security Gone Agile
DevOps, CLI, APIs, Oh My!  Security Gone AgileDevOps, CLI, APIs, Oh My!  Security Gone Agile
DevOps, CLI, APIs, Oh My! Security Gone Agile
 
Dev Ops without the Ops
Dev Ops without the OpsDev Ops without the Ops
Dev Ops without the Ops
 
How bigtop leveraged docker for build automation and one click hadoop provis...
How bigtop leveraged docker for build automation and  one click hadoop provis...How bigtop leveraged docker for build automation and  one click hadoop provis...
How bigtop leveraged docker for build automation and one click hadoop provis...
 
Using Rancher for highly available deployment services with GoCD and TeamCity
Using Rancher for highly available deployment services with GoCD and TeamCityUsing Rancher for highly available deployment services with GoCD and TeamCity
Using Rancher for highly available deployment services with GoCD and TeamCity
 
Vagrant
VagrantVagrant
Vagrant
 
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as CodeConfoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code
 
Dev ops ci-ap-is-oh-my_security-gone-agile_ut-austin
Dev ops ci-ap-is-oh-my_security-gone-agile_ut-austinDev ops ci-ap-is-oh-my_security-gone-agile_ut-austin
Dev ops ci-ap-is-oh-my_security-gone-agile_ut-austin
 
Handling 1 Billion Requests/hr with Minimal Latency Using Docker
Handling 1 Billion Requests/hr with Minimal Latency Using DockerHandling 1 Billion Requests/hr with Minimal Latency Using Docker
Handling 1 Billion Requests/hr with Minimal Latency Using Docker
 
DevOps is for Everyone - DevOps East
DevOps is for Everyone - DevOps EastDevOps is for Everyone - DevOps East
DevOps is for Everyone - DevOps East
 
JCON_15FactorWorkshop.pptx
JCON_15FactorWorkshop.pptxJCON_15FactorWorkshop.pptx
JCON_15FactorWorkshop.pptx
 
Free Mongo on OpenShift
Free Mongo on OpenShiftFree Mongo on OpenShift
Free Mongo on OpenShift
 
Increasing velocity via serless semantics
Increasing velocity via serless semanticsIncreasing velocity via serless semantics
Increasing velocity via serless semantics
 
Open source applied: Real-world uses
Open source applied: Real-world usesOpen source applied: Real-world uses
Open source applied: Real-world uses
 
ContainerDays NYC 2015: "Container Orchestration Compared: Kubernetes and Doc...
ContainerDays NYC 2015: "Container Orchestration Compared: Kubernetes and Doc...ContainerDays NYC 2015: "Container Orchestration Compared: Kubernetes and Doc...
ContainerDays NYC 2015: "Container Orchestration Compared: Kubernetes and Doc...
 
Docker for developers
Docker for developersDocker for developers
Docker for developers
 
DevOps Unleashed: Strategies that Speed Deployments
DevOps Unleashed: Strategies that Speed DeploymentsDevOps Unleashed: Strategies that Speed Deployments
DevOps Unleashed: Strategies that Speed Deployments
 
Mastering DevOps With Oracle
Mastering DevOps With OracleMastering DevOps With Oracle
Mastering DevOps With Oracle
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016

  • 1. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Running Docker and Rancher Locally on Dev Machines May 26, 2016 #ranchermeetup
  • 2. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Shannon Williams Co-Founder/VP Marketing @smw355 1 Darren Shepherd Co-Founder/Chief Architect @ibuildthecloud Freenode: darren0 #ranchermeetup
  • 3. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Chris Urwin DevOps Lead - UK Rancher Labs @containerschris 2 Mark Matthews Principal ARKM Enterprise https://uk.linkedin.com/in/mark- matthews-2965501 #ranchermeetup
  • 4. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . First things first… This is a not a ! 3 #ranchermeetup
  • 5. © 2015 Rancher Labs, Inc.4 There are rules for a meetup! • We won’t be done on time • Questions are always welcome • There are no bad questions • Demo, then demo some more • Things will break, be patient #ranchermeetup
  • 6. © 2015 Rancher Labs, Inc.5 Join the conversation on Twitter #ranchermeetup
  • 7. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Agenda • From Dev to DevOps to Dev - Shannon • Running Docker and Rancher Locally on Dev Machines – Chris • Demo: Building a Micro DC - Chris • User Story: Rancher for our Dev Team – Mark • Latest Rancher Update – Darren 6 #ranchermeetup
  • 8. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Rancher Labs 7 #ranchermeetup
  • 9. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Building a Container Service 8 Container Service Linux Linux Linux Linux Linux Linux
  • 10. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . How to deploy a container service 9 Container Service Linux Linux Linux Linux Linux Linux App Catalog Orchestration Scheduling Monitoring Access Control Network Storage Distributed DB Registry Engine Security Helm, … Compose, Kubernetes, Marathon, Swarm, Kubernetes, Mesos, … cAdvisor, Sysdig, Datadog, … LDAP, AD, GitHub, … DockerHub, Quay.io, … Docker, Rkt, … Notary, Vault, … VXLAN, IPSEC, HAProxy, … Ceph, Gluster, Swift, … Etcd, Consul, MongoDB, …
  • 11. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Rancher Overview 10 Microservice Catalog AD/LDAP Leverage existing tools: - CI/CD - Code Repository - Monitoring Environment 1 Environment N … Network Services Storage Services Container Orchestration and Scheduling User Mgmt Ops Mgmt Environment 2
  • 12. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .#ranchermeetup Running Docker and Rancher Locally on Dev Machines My other data center is this laptop
  • 13. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Problem Statement “I want my developers and testers to be able to build and test quality code independently; using the same toolset as production uses.”
  • 14. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Some of the problems…. • Multiple developers all trying to update applications at the same time • Scheduling conflicts • No SSL or proxy server • Data quality/consistency issues • Network contention • Environment consistency
  • 15. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . A potential solution • Running Docker in the datacentre…run it locally • Running Rancher in the datacentre…run it locally • On a local hypervisor (or natively) • Have a common data set • Useful for Developers and testers
  • 16. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . What does it look like MirrorRancher Server Rancher Agent Jenkins Desktop Virtualisation Layer App Stack Development VM Shared Folders
  • 17. © 2015 Rancher Labs, Inc.16 Demo
  • 18. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . How can Rancher help? • Gives visibility of application stack • Can be utilised by less technical resources • Consistency • API and GUI • Load Balancing • Catalog
  • 19. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Demo App Voting App Redis queue Java Worker Database Results App Voting App Voting App Load Balancer
  • 20. © 2015 Rancher Labs, Inc.19 Demo
  • 21. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . The flow
  • 22. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Benefits of local dev • More representative of production • Distributed build system • Independent development • Moves Developers more to Devopers • Familiarity with tools • Consistency
  • 23. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Limitations • Physical • The more memory the better • The fastest disks you can get • Your imagination…
  • 24. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .
  • 25. © 2015 Rancher Labs, Inc. Rancher Dev In A Box
  • 26. © 2015 Rancher Labs, Inc. Don't Bash it out, Compose it  We all start with bash script building and running docker containers  We nearly all then use docker-compose instead  The iced cake is using Rancher Compose for scaling and interdependent service stack management  More composition means more reliable scripting  How to take full advantage of this?
  • 27. © 2015 Rancher Labs, Inc. Mirror Mirror on the Laptop  Reduces network contention  Pull in the background today for your build tomorrow  A great enabler for fast dev builds  Faster dev builds for quicker feedback cycles  Low overhead
  • 28. © 2015 Rancher Labs, Inc. CI fingers in all the pies  Gives a UI for testers - because most teams still have these  Can talk to the host file system, dev box, rancher box  Make sure you sidekick a data volume, thus direct code refresh from local git  Easily switch between projects (stacks off, stacks on, no need to delete)  Easy re-deploy from latest code
  • 29. © 2015 Rancher Labs, Inc. Rancher++  Managing containers is a pain, rancher solves that, so give it to everyone  Rancher lets everyone easily see memory, io, network traffic - early diagnosis  More easily test multi-stack systems - don't leave that to PTL or Prod, solve the pain early  Especially for less surprises on your [sticky] session handling  Internal registry trick "localhost:5000/"  Same deployment and management tools as PTL & Prod  Low overhead
  • 30. © 2015 Rancher Labs, Inc. Thanks!  Enquiries to  Mark Matthews  markmatthews@arkmEnterprises.co.uk  Chris Urwin  chris@rancher.com Hand drawn images and the ARKM logo (c) ARKM Enterprises 2016.
  • 31. © 2015 Rancher Labs, Inc. Latest Rancher Enhancements 30 1.0.1 • Rancher Multi-node Simplification #ranchermeetup 1.1-dev2 • Experimental Mesos support • F5 Load balancer integration • Customizable Docker Machine UI
  • 32. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Getting Started Rancher and RancherOS are in GitHub – Get Involved! 31 #ranchermeetup http://github.com/rancher
  • 33. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . New eBook: Building a CI/CD Pipeline with Docker & Rancher 32 http://info.rancher.com/cicd-with-docker-ebook
  • 34. © 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc . Thank you rancher.com #ranchermeetup

Notas del editor

  1. Delivery manager, devops lead Reliable Repeatable tested consistently minimal compromise
  2. Representative data is key. Dockerieze all for dev Apps as close as possible i.e. version
  3. 1- Desktop Machines 2- Virtualisation layer 3- 3 VM’s spinning 1, rancher Server, mirror and a Development VM 4- In the development VM we are going to run a rancher agent container and a Jenkins container 5- We are going to share some data through into the Jenkins server via the shared folders feature 6- We are going to run our app stack in here (this can be anything you like, limited only by resources)
  4. During Jenkins Build- make run-Jenkins 1m 10 This could be any CI, so longs as it can be run in a container and everyone can build in a consistent way then it doesn’t matter what its doing. As part of this build it could be executing unit tests etc I’ve mapped through the drive but you could just as easily have it git pull into the container, my instance monitors the remote git repo and then builds it from the mapped drive. There are pros and cons to both, I like this as I can make changes and run a manual build without needing to check in all the time. Jenkins git build – 5 mins Running multiple hosts locally causes pain as it means you need a repository or a means to get the built containers between the hosts. Overlay network also doesn’t currently work in boot2docker
  5. People like pictures Ba’s can demo even if not technical Can be scripted so all the same and easy to set up Catalog, easily give people access to a version of your app locally
  6. Docker voting app Front end – Python Redis queue Java worker Postrgres DB Restults App Nodejs
  7. Spin up demo app stack, edit a couple of files, watch Jenkins pick up and rebuild Perform an upgrade to voting app to show rolling upgrade Show roll back – discuss benefits Show upgrade to both voting and result app
  8. After check in to git, Jenkins and docker build automated Nothing stopping having rancher automated too
  9. Every laptop becomes a build system Representative data is key. Dockerieze all for dev Apps as close as possible i.e. version