Upload
michael-johann
View
279
Download
0
Tags:
Embed Size (px)
Citation preview
E I N F Ü H R U N G I N D O C K E R
M I C H A E L J O H A N N
@ M A L A G A N T W W W. R A I L S - E X P E R T S . C O M
Ü B E R M I C H
• Java / JEE Projekte
• Ruby on Rails / Mobile (native)
• Interims CTO Detox-Delight
• Dozent FH Münster (WS 2014/2015)
• Webentwicklung II
• Buchautor
• Konferenzsprecher
J AVA I S T: W R I T E O N E , R U N E V E R Y W H E R E
D O C K E R I S T: S E T U P O N C E , D E P L O Y E V E R Y W H E R E
J AVA V S D O C K E R
- G A N D A L F D E R G R A U E
„Docker is light weight, allows you to port applications across systems and hardware with ease while containing those applications
and running them in their own secure sandboxed environments“
C O N TA I N E R S I N D V E R Z E I C H N I S S E U N D K Ö N N E N E I N FA C H K O P I E R T W E R D E N
E I N FA C H E I N Z U S E T Z E N
C O N TA I N E R S I N D L E I C H T G E W I C H T E
B A S I E R E N A U F L I N U X C O N TA I N E R N ( L X C )
B E N Ö T I G E N K E I N E V I R T U A L I S I E R U N G S I N F R A S T R U K T U R
I N K R E M E N T E L LI N K R E M E N T E L L
I N K R E M E N T E L LI N K R E M E N T E L L
I N K R E M E N T E L L
D O C K E R F I L E S S I N D S K R I P T E Z U M E R S T E L L E N V O N D O C K E R I M A G E S
B E S C H R E I B U N G V O N I M A G E S
1 2 FA C T O R A P P 1 / 2
• I. Codebase: One codebase tracked in revision control, many deploys
• II. Dependencies: Explicitly declare and isolate dependencies
• III. Config: Store config in the environment
• IV. Backing Services: Treat backing services as attached resources
• V. Build, release, run: Strictly separate build and run stages
• VI. Processes: Execute the app as one or more stateless processes
1 2 FA C T O R A P P 2 / 2
• VII. Port binding: Export services via port binding
• VIII. Concurrency: Scale out via the process model
• IX. Disposability: Maximize robustness with fast startup and graceful shutdown
• X. Dev/prod parity: Keep development, staging, and production as similar as possible
• XI. Logs: Treat logs as event streams
• XII. Admin processes: Run admin/management tasks as one-off processes
O R C H E S T R AT I O N
• dokku - Docker powered mini-Heroku. The smallest PaaS implementation you've ever seen.
• https://github.com/progrium/dokku
• Fig
• http://www.fig.sh/