-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
323 lines (265 loc) · 13.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Docker and Microservices</title>
<meta name="description" content="Maritim Devcon Presentation 2015">
<meta name="author" content="Chris Dail">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/moon.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h2>Docker and Microservices</h2>
<h4>Maritime Devcon 2015</h4>
<p>
Chris Dail <a href="http://twitter.com/chrisdail">@chrisdail</a><br />
<small>Director, Software Engineering at <a href="http://www.emc.com/">EMC</a><br />
<a href="http://chrisdail.github.io/talk-docker-microservices/">http://chrisdail.github.io/talk-docker-microservices/</a></small>
</p>
</section>
<section>
<p>Gartner, Inc. forecasts 4.9 billion connected devices in 2015</p>
<p class="fragment">30% over 2014</p>
</section>
<section>
<p>... Predicts 25 billion by 2020</p>
</section>
<!--
<section data-background="images/thirdplatform.png" data-background-size="80%">
</section>
-->
<section>
<h3>The way we build software is Changing</h3>
</section>
<section>
<img src="images/software_box.png">
<h2>Software Products</h2>
</section>
<section>
<img src="images/saas.jpg">
<h2>Software as a Service</h2>
</section>
<section>
<img src="images/oracle.jpg">
<h2>SQL</h2>
</section>
<section>
<img src="images/nosql.gif">
<h2>NoSQL</h2>
</section>
<section data-background="images/vertical.jpg" data-background-size="60%" data-background-transition="zoom">
<h2>Vertical Scaling</h2>
</section>
<section data-background="images/horizontal.jpg" data-background-size="60%" data-background-transition="zoom">
<h2>Horizontal Scaling</h2>
</section>
<section>
<h3>Change in Architecture for Distributed Applications</h3>
</section>
<section>
<img src="images/micro-service-architecture.png">
</section>
<section>
<h2>What are Microservices?</h2>
<blockquote>
“In computing, microservices is a software <strong>architecture style</strong>, in which complex applications are composed of <strong>small, independent processes</strong> communicating with each other using <strong>language-agnostic APIs</strong>. These services are <strong>small, highly decoupled and focus on doing a small task</strong>.” - Wikipedia
</blockquote>
</section>
<section>
<img src="images/micro-services-architecture2.png">
<h3>Monolithic vs Microservices</h3>
</section>
<section>
<img src="images/monolithic-upgrade.png">
<h3>Monolithic Upgrade</h3>
</section>
<section>
<img src="images/micro-upgrade.png">
<h3>Microservices Upgrade</h3>
</section>
<section>
<h3>Change in process</h3>
<p>Change in team organization</p>
</section>
<section>
<img src="images/monolithic-process.png">
<h3>Monolithic Process</h3>
</section>
<section>
<img src="images/micro-process.png">
<h3>Microservices Process</h3>
</section>
<section>
<h3>Benefits</h3>
<ul>
<li>Smaller codebase, easier to understand</li>
<li>Easier to scale independent services</li>
<li>Easier to upgrade, version or replace a service</li>
<li>Faster build/deploy</li>
<li>Choice of technology stack</li>
</ul>
</section>
<section>
<h3>Downside</h3>
<p>Can create messy deployment</p>
</section>
<section data-background="images/docker.png" data-background-size="80%" data-background-transition="zoom">
<h2>Enter Docker</h2>
</section>
<section>
<h3>Docker</h3>
<ul>
<li>Process Isolation using "Containers"</li>
<li>High-level API/CLI to manage Containers</li>
<li>Built on Linux using cgroups, namespaces</li>
<li>Run multiple processes on single machine with separate environments</li>
</ul>
</section>
<section data-background="images/this-is-unix.jpg" data-background-size="85%" data-background-transition="zoom">
<h2>It's a Virtual Machine</h2>
<h2>I know this!</h2>
</section>
<section data-background="images/docker-containers-vms.png" data-background-size="85%" data-background-transition="zoom">
</section>
<section>
<h3>Docker Concepts</h3>
<ul>
<li>Docker uses Union File System</li>
<li>"Layers" are multiple filesystems on top of each other</li>
<li>"Images" are portable, read-only layers</li>
<li>Containers run in a writable filesystem on top of an image</li>
</ul>
</section>
<section data-background="images/layers.png" data-background-size="80%" data-background-transition="zoom">
</section>
<section>
<h3>Docker Containers</h3>
<ul>
<li>Running process on top of an image</li>
<li>Can run multiple containers off the same image</li>
</ul>
</section>
<section>
<h3>Dockerfile</h3>
<ul>
<li>Instructions file to <i>docker build</i></li>
<li>Creates an image based on another image</li>
</ul>
<pre><code># Firefox over VNC
FROM ubuntu
# Install vnc, xvfb in order to create a 'fake' display and firefox
RUN apt-get update && apt-get install -y x11vnc xvfb firefox
RUN mkdir ~/.vnc
# Setup a password
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
# Autostart firefox (might not be the best way, but it does the trick)
RUN bash -c 'echo "firefox" >> /.bashrc'
EXPOSE 5900
CMD ["x11vnc", "-forever", "-usepw", "-create"]</code></pre>
</section>
<section>
<h3>Docker Registry</h3>
<ul>
<li>Central repository for exchanging images</li>
<li>Docker can push and pull from a registry</li>
<li>Public Images on <a href="https://registry.hub.docker.com/">Docker Hub Registry</a></li>
<li>Private Registry</li>
</ul>
</section>
<section>
<h3>The Good</h3>
<ul>
<li>Isolation of services, but more lightweight than VMs</li>
<li>Near bare-metal performance, start as fast as processes</li>
<li>Simple deployment, upgrade</li>
<li>No library compatibility problems</li>
<li>Aligns nicely with Microservices</li>
</ul>
</section>
<section>
<h3>The Bad</h3>
<ul>
<li>Security</li>
<li>Patching for all containers (think Shellshock)</li>
<li>Can be more difficult to debug</li>
<li>Docker is still very new and changing rapidly</li>
</ul>
</section>
<section>
<h2>Demo</h2>
<ul>
<li>Build a distributed application using docker</li>
<li>Simple 'Hello World' API</li>
<li>Run 2 instances and a load balancer</li>
</ul>
</section>
<section>
<h3>Final Thoughts</h3>
<ul>
<li>Microservices:
<ul>
<li>Importance of good APIs (REST) and Versioning</li>
<li><a href="http://12factor.net">12factor.net</a></li>
<li><a href="http://blog.netflix.com/">blog.netflix.com</a></li>
</ul>
</li>
<li>Docker:
<ul>
<li>Not just for production, build environments too</li>
<li><a href="http://boot2docker.io/">boot2docker.io</a></li>
<li>Not just docker. <a href="https://linuxcontainers.org/lxc/introduction/">LXC</a>, <a href="https://linuxcontainers.org/lxd/introduction/">LXD</a>, <a href="https://github.com/coreos/rkt">Rkt</a></li>
<li>Managing Complexity: <a href="https://docs.docker.com/compose/">Docker Compose</a>, <a href="http://www.ansible.com/home">Ansible</a></li>
<li>Platforms: <a href="http://kubernetes.io/">Kubernetes</a>, <a href="https://coreos.com/">CoreOS</a>, <a href="http://mesos.apache.org/">Mesos</a></li>
</ul>
</li>
</ul>
</section>
<section data-background="images/containers.jpg" data-background-transition="zoom">
<h2>Questions?</h2>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>