際際滷

際際滷Share a Scribd company logo
for
Dummies
Its all virtual baby!
Miles Session  Januar 2014
Anders Sveen
Virtualisering





Separate maskiner
Forskjellige ressurser
Forskjellige OS
Forskjellig software
The current
 VMWare
 Redhat (KVM)
 Ubuntu
IaaS
 On demand
 Forh奪ndsdefinerte image
 Self service
 Openstack
 Propreit脱rt
PaaS





On demand
Forh奪ndsdefinerte templates
Self service
Raskt

 F淡lg disse patterns s奪 f奪r du:






Automatisk skalering
Drifting og backup av DB
Overv奪kning
Fail over
Minimumsgaranti i forhold til resursser
Virtualisering for utvikling
Vagrant
 Automatisering av Virtualbox
 Bruk og last ned dette imaget
 Koble inn disse mappene
 Sett opp disse portene

 Start/reset/stopp/pause
Docker






Virtualbox pluss Vagrant
Isolasjon
Forskjellige OS
Porter
Mapper

 Produksjonsfokus
 Hastighet
LXC





Linux Containers
En del av Linux Kernel
Cgroups og namespaces
SELinux for sikkerhet?
root@docker-demo:~# lxc-create -t ubuntu -n test
Checking cache download in /var/cache/lxc/saucy/rootfs-amd64 ...
Copy /var/cache/lxc/saucy/rootfs-amd64 to /usr/lib/x86_64-linux-gnu/lxc ...
Copying rootfs to /usr/lib/x86_64-linux-gnu/lxc ...
##
# The default user is 'ubuntu' with password 'ubuntu'!
# Use the 'sudo' command to run tasks as root in the container.
##
root@docker-demo:~# lxc-start -n test -d
root@docker-demo:~# lxc-ls --fancy
NAME STATE
IPV4
IPV6 AUTOSTART
-----------------------------------------test RUNNING 10.0.3.237 NO
root@docker-demo:~# ssh ubuntu@10.0.3.237
ubuntu@10.0.3.237's password:
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
ubuntu@test:~$
LXC
 Etabler egen mappe som filsystem
 Sett opp Cgroups og Namespace slik at det
isoleres
 Start prosesser
 D奪rlig
Docker
 Images
 Repository
 Push
 Pull






Layered filesystem
Mapper
Porter
Dockerfiles
Docker deler
Docker Layered File System
Docker





Raskt
Egne tilpasninger
Virtualisert
Alle containere starter fra samme basis
To image or not
To image or not
This changes everything
 Alle kan virtualisere
 Alle kan virtualisere mye
 Alle kan distribuere fullstendige snapshots av
maskiner
 Det g奪r kjapt
 Det gir fullstendig isolasjon
IaaS? PaaS?





Docker i OpenStack
PaaS har ikke lenger hastighetsfordelen
Trenger fortsatt templates for 奪 komme i gang
Fortsatt utfordring 奪 monitorere, overv奪ke,
skalere og gj淡re failover
Fremover








Openshift skal integrere Docker
Bedre verkt淡y
Andre PaaS l淡sninger
Erstatte Vagrant?
Integrert i Vagrant?
Flere Linux varianter
OS X st淡tte?
What?






Teste software
Teste scripts
Teste nettverk
Isolere inkompatibel software
Flytte oppsett
皆永檎皆珂晦?

More Related Content

More from Anders Sveen (8)

Heroku for Java
Heroku for JavaHeroku for Java
Heroku for Java
Anders Sveen
So you think you can change? - JavaZone 2010
So you think you can change? - JavaZone 2010So you think you can change? - JavaZone 2010
So you think you can change? - JavaZone 2010
Anders Sveen
Pragmatisk integrasjon - JavaZone 2010
Pragmatisk integrasjon - JavaZone 2010Pragmatisk integrasjon - JavaZone 2010
Pragmatisk integrasjon - JavaZone 2010
Anders Sveen
So you think you can change? - XP2010
So you think you can change? - XP2010So you think you can change? - XP2010
So you think you can change? - XP2010
Anders Sveen
Prove it, ship it! - XP2010 Lightning talk
Prove it, ship it! - XP2010 Lightning talkProve it, ship it! - XP2010 Lightning talk
Prove it, ship it! - XP2010 Lightning talk
Anders Sveen
Rules engine vs. domain logic - JavaZone 2009
Rules engine vs. domain logic - JavaZone 2009Rules engine vs. domain logic - JavaZone 2009
Rules engine vs. domain logic - JavaZone 2009
Anders Sveen
Automatisert Testing
Automatisert TestingAutomatisert Testing
Automatisert Testing
Anders Sveen
Smidig Utrulling
Smidig UtrullingSmidig Utrulling
Smidig Utrulling
Anders Sveen
Heroku for Java
Heroku for JavaHeroku for Java
Heroku for Java
Anders Sveen
So you think you can change? - JavaZone 2010
So you think you can change? - JavaZone 2010So you think you can change? - JavaZone 2010
So you think you can change? - JavaZone 2010
Anders Sveen
Pragmatisk integrasjon - JavaZone 2010
Pragmatisk integrasjon - JavaZone 2010Pragmatisk integrasjon - JavaZone 2010
Pragmatisk integrasjon - JavaZone 2010
Anders Sveen
So you think you can change? - XP2010
So you think you can change? - XP2010So you think you can change? - XP2010
So you think you can change? - XP2010
Anders Sveen
Prove it, ship it! - XP2010 Lightning talk
Prove it, ship it! - XP2010 Lightning talkProve it, ship it! - XP2010 Lightning talk
Prove it, ship it! - XP2010 Lightning talk
Anders Sveen
Rules engine vs. domain logic - JavaZone 2009
Rules engine vs. domain logic - JavaZone 2009Rules engine vs. domain logic - JavaZone 2009
Rules engine vs. domain logic - JavaZone 2009
Anders Sveen
Automatisert Testing
Automatisert TestingAutomatisert Testing
Automatisert Testing
Anders Sveen
Smidig Utrulling
Smidig UtrullingSmidig Utrulling
Smidig Utrulling
Anders Sveen

Docker for Dummies