-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1245 lines (1108 loc) · 49.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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Développeurs, gagnez du temps avec le Cloud</title>
<meta name="description" content="Retour d'expérience sur notre gain en productivité grâce à divers PaaS et SaaS">
<meta name="author" content="Christophe Bliard">
<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/black.css" id="theme">
<link rel="stylesheet" href="css/custom.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 data-background="lib/img/heart-cloud.jpg" class="shadow">
<br>
<br>
<h1>Développeurs,</h1>
<h1>Gagnez du temps</h1>
<h1>avec le Cloud</h1>
<p>
<small>Christophe Bliard • <a href="http://twitter.com/cbliard">@cbliard</a></small><br>
<small>Développeur <a href="https://hiptest.net/">Hiptest</a></small>
</p>
<p style="font-size: 0.3em;">Photo par lennysan <img src="lib/img/by-nc-sa.svg" style="vertical-align: middle;"> https://www.flickr.com/photos/lennysan/4403695597/</p>
<aside class="notes">
avant : Dév Python & Java/JEE,
maintenant : Dév Ruby On Rails + emberjs + sysadmin</aside>
</section>
<section data-background="lib/img/heart-cloud.jpg" class="shadow">
<p>Pour passer en plein écran<br>
<small>et cacher la barre d'adresse</small>
</p>
<h2 id="toggle-fullscreen">Cliquer ici</h2>
</section>
<section data-background="lib/img/heart-cloud.jpg" class="shadow">
<h2>Plan</h2>
<p>Cloud ?</p>
<p>Notre usage</p>
<p>Autres usages</p>
<aside class="notes">
C'est un retour d'expérience, donc non exhaustif
Il s'agit d'une discussion, d'un échange
Interventions bienvenues, on est tous là pour apprendre
</aside>
</section>
<section data-background="lib/img/heart-cloud.jpg" class="shadow">
<h2>Cloud Computing</h2>
<h2>IaaS, PaaS, SaaS ?</h2>
<h5>wtf ?...</h5>
<aside class="notes">
Cloud : accès distant à des ressources informatiques à la demande.
Leur fonctionnement n'est pas connu des clients
ressource : capacité de calcul, de stockage, de traitement.
Le Cloud existe depuis longtemps : hotmail dans les années 90, c'était du cloud.
En 2012, une étude de Citrix, 95% des américains déclaraient ne pas utiliser le cloud, alors que la plupart achetaient, stockaient des photos, écoutaient de la musique, géraient leur compte en banque en ligne. 29% pensent que c'est lié à la météo.
http://www.citrix.com/news/announcements/aug-2012/most-americans-confused-by-cloud-computing-according-to-national.html
</aside>
</section>
<section data-background="lib/img/pizza.jpg" class="shadow">
<h2>Pizza !</h2>
<table class="stacked">
<thead>
<th class="fragment invisible" data-fragment-index="9"></th>
<th class="fragment" data-fragment-index="10">Faite maison</th>
<th class="fragment" data-fragment-index="11">Prête à cuire</th>
<th class="fragment" data-fragment-index="12">Livrée à domicile</th>
<th class="fragment" data-fragment-index="13">Sortie restaurant</th>
</thead>
<tbody>
<tr>
<td class="fragment" data-fragment-index="9">Couverts</td>
<td rowspan="9" class="fragment us" data-fragment-index="10"></td>
<td rowspan="5" class="fragment us" data-fragment-index="11"></td>
<td rowspan="2" class="fragment us" data-fragment-index="12"></td>
<td rowspan="9" class="fragment vendor" data-fragment-index="13"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="8">Huile piquante</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="7">Électricité/Gaz</td>
<td rowspan="7" class="fragment vendor" data-fragment-index="12"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="6">Cuisson</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="5">Four</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="4">Fromage</td>
<td rowspan="4" class="fragment vendor" data-fragment-index="11"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="3">Garniture</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="2">Sauce tomate</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="1">Pâte à pizza</td>
</tr>
<tr>
</tbody>
</table>
<p style="font-size: 0.3em;">Photo par djwtwo <img src="lib/img/by-nc-sa.svg" style="vertical-align: middle;"> https://www.flickr.com/photos/djwtwo/9864611814/<br>
<a href="https://www.linkedin.com/pulse/20140730172610-9679881-pizza-as-a-service">Idée originale d'Albert Barron, Sr. Software Client Architect à IBM</a></p>
</section>
<section data-background="lib/img/software.jpg" class="shadow">
<h2>Logiciel !</h2>
<table class="stacked">
<thead>
<th class="fragment invisible" data-fragment-index="9"></th>
<th class="fragment" data-fragment-index="10">Sur site</th>
<th class="fragment" data-fragment-index="11">Infrastructure <small>as a Service</small></th>
<th class="fragment" data-fragment-index="12">Platform <small>as a Service</small></th>
<th class="fragment" data-fragment-index="13">Software <small>as a Service</small></th>
</thead>
<tbody>
<tr>
<td class="fragment" data-fragment-index="9">Applications</td>
<td rowspan="9" class="fragment us" data-fragment-index="10"></td>
<td rowspan="4" class="fragment us" data-fragment-index="11"></td>
<td rowspan="2" class="fragment us" data-fragment-index="12"></td>
<td rowspan="9" class="fragment vendor" data-fragment-index="13"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="8">Données</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="7">Runtime</td>
<td class="fragment mixed" data-fragment-index="12"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="6">Middleware</td>
<td rowspan="6" class="fragment vendor" data-fragment-index="12"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="5">Système (OS)</td>
<td rowspan="2" class="fragment mixed" data-fragment-index="11"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="4">Virtualisation</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="3">Réseau</td>
<td rowspan="3" class="fragment vendor" data-fragment-index="11"></td>
</tr>
<tr>
<td class="fragment" data-fragment-index="2">Stockage</td>
</tr>
<tr>
<td class="fragment" data-fragment-index="1">Serveurs</td>
</tr>
<tr>
</tbody>
</table>
<p style="font-size: 0.3em;">Photo par camknows <img src="lib/img/by-nc-sa.svg" style="vertical-align: middle;"> https://www.flickr.com/photos/camknows/3726757043/</p>
<aside class="notes">
IaaS : Matériel à la demande, migrer
PaaS : Briques logicielles à la demande, construire
SaaS : Logiciel à la demande, Utiliser
</aside>
</section>
<section data-background="lib/img/leaf.jpg" class="shadow">
<h2>Autres aspects</h2>
<ul>
<p class="fragment">Cloud public/privé</p>
<p class="fragment">Paiement à l'usage</p>
<p class="fragment">Mise à jour en continu</p>
<p class="fragment">Flexibilité</p>
<p class="fragment">ATAWAD</p>
</ul>
<p style="font-size: 0.3em; margin-top: 15%">Photo par mightyboybrian <img src="lib/img/by-nc.svg" style="vertical-align: middle;"> https://www.flickr.com/photos/mightyboybrian/5732782815/</p>
<aside class="notes">
Privé : infrastructure dédiée ;
Public : infrastructure mutualisée ;
Paiement à l'usage : nb machines, Go Traffic, nb requêtes, Go stockage ;
Mise à jour continue ;
Flexibilité : on verra après dans les slides, mais il est facile d'ajouter de nouvelles ressources ;
ATAWAD : AnyTime AnyWhere AnyDevice, de plus, pas d'installation => dispo tout de suite.
</aside>
</section>
<section data-transition="zoom" data-background="#4a4a4a">
<a href="https://hiptest.net/"><img style="width: 80%;" src="lib/img/hiptest-logo-full-white.svg"></a>
<p><q>Plateforme SaaS de gestion de tests d'applications Web et mobile
pour tester au rythme des équipes agiles.</q></p>
</section>
<section data-background="lib/img/hiptest-homepage.jpg" data-background-size="100%">
<p> </p>
</section>
<!-- 1 server with continuous deployment -->
<section data-background="lib/img/Infra01.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra02.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra03.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra04.svg" data-background-size="100%"><p> </p></section>
<!-- multiple virtual servers, one full stack -->
<section data-background="lib/img/Infra05.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra06.svg" data-background-size="100%">
<p> </p>
<aside class="notes">
Parler des snowflakes serveurs.
Serveur de gestion de configuration : centraliser la
configuration système des machines dans un référentiel unique.
Installation Denyhost.
Infrastructure as code.
</aside>
</section>
<section data-background="lib/img/Infra07.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra08.svg" data-background-size="100%"><p> </p></section>
<!-- multiple virtual servers, two full stacks -->
<section data-background="lib/img/Infra09.svg" data-background-size="100%"><p> </p></section>
<!-- multiple ci slaves -->
<section data-background="lib/img/Infra10.svg" data-background-size="100%"><p> </p></section>
<!-- add backup server -->
<section data-background="lib/img/Infra11.svg" data-background-size="100%"><p> </p></section>
<!-- add monitoring server -->
<section data-background="lib/img/Infra12.svg" data-background-size="100%"><p> </p></section>
<!-- add elasticsearch server -->
<section data-background="lib/img/Infra13.svg" data-background-size="100%"><p> </p></section>
<section data-transition="fade" data-background="lib/img/measure.jpg" class="shadow">
<p style="padding: 13%"></p>
<h2>Mesurer, c'est un métier</h2>
<p style="font-size: 0.3em; margin-top: 27%">Photo par orkomedix <img src="lib/img/by-nc-sa.svg" style="vertical-align: middle;"> https://www.flickr.com/photos/orkomedix/4413901705/</p>
</section>
<section data-background="#4a4a4a">
<a href="https://newrelic.com/"><img style="width: 60%" src="lib/img/NewRelic-logo-square-w.png"></a>
<p><q>“Constantly monitoring your applications<br>
so you don’t have to.”</q></p>
<aside class="notes">
Plusieurs produits : NR APM, NR Insights, NR Mobile, NR Browser,
NR Synthetics, NR Servers, NR Platform
</aside>
</section>
<section>
<h2>Vue d'ensemble</h2>
<img src="lib/img/NR-apm-1.jpg">
</section>
<section>
<h2>Répartition du temps</h2>
<img src="lib/img/NR-apm-2.jpg">
</section>
<section>
<h2>Arborescence temporelle</h2>
<img src="lib/img/NR-apm-3.jpg">
</section>
<section>
<h2>Métriques serveurs</h2>
<img src="lib/img/NR-servers-1.jpg">
</section>
<!-- add newrelic -->
<section data-background="lib/img/Infra14.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra15.svg" data-background-size="100%">
<p> </p>
<aside class="notes">
Reste à développer: base de données maitre/esclave
+ meilleure répartition de charge.
</aside>
</section>
<section data-background="#4a4a4a">
<a href="https://shellycloud.com/"><img style="width: 80%;" src="lib/img/shellycloud-logo.svg" alt=""></a>
<p><q>“Platform for hosting Ruby and Ruby on Rails apps,<br>
focusing on the developers happiness.”</q></p>
</section>
<section>
<img src="lib/img/shellycloud.png" alt="">
</section>
<section>
<h2>Prix</h2>
<img src="lib/img/shellycloud-price.png" alt="">
<h5>20 € offerts à l'inscription</h5>
</section>
<section>
<h2>Configuration</h2>
<p>Fichier Cloudfile</p>
<pre><code data-trim class="ruby condensed">
hiptest:
ruby_version: 2.1.5
environment: production # RAILS_ENV
domains:
- hiptest.shellyapp.com
- hiptest.net
- www.hiptest.net
servers:
app1:
size: small
thin: 2
app2:
size: small
thin: 2
job1:
size: small
whenever: on
delayed_job: 2
store:
size: large
databases:
- postgresql
elasticsearch: on
</code></pre>
</section>
<section>
<h2>Modification</h2>
<pre class="half-column"><code data-trim class="ruby condensed">
hiptest:
ruby_version: 2.1.5
environment: production # RAILS_ENV
domains:
- hiptest.shellyapp.com
- hiptest.net
- www.hiptest.net
servers:
app1:
size: small
thin: 2
app2:
size: small
thin: 2
job1:
size: small
whenever: on
delayed_job: 2
store:
size: large
databases:
- postgresql
elasticsearch: on
</code></pre>
<pre class="fragment half-column" data-fragment-index="1" data-trim><code data-trim class="ruby condensed">
hiptest:
ruby_version: 2.1.5
environment: production # RAILS_ENV
domains:
- hiptest.shellyapp.com
- hiptest.net
- www.hiptest.net
servers:
app1:
size: small
thin: 2
app2:
size: small
thin: 2
job1:
size: small
whenever: on
delayed_job: 2
store:
size: small
databases:
- postgresql
esearch:
size: small
elasticsearch: on
</code></pre>
<p class="fragment" data-fragment-index="1">On modifie et on pousse</p>
</section>
<section>
<img src="lib/img/shellycloud-diagram.png">
</section>
<section>
<h2>shelly</h2>
<p>Commander son appli du bout des doigts</p>
<pre><code data-trim class="no-highlight">
$ gem install shelly
</code></pre>
<img class="fragment" style="width: 20%" src="lib/img/shellycloud-logo-alone-white.svg">
</section>
<section>
<h2>Connecter son dépôt git</h2>
<pre><code data-trim class="no-highlight">
$ shelly register christophebliard@hiptest.net
Password: [enter your password]
Password confirmation: [enter your password]
Uploading your public SSH key from /home/cbliard/.ssh/id_rsa.pub
Successfully registered!
Check you mailbox for email address confirmation
</code></pre>
<pre class="fragment"><code data-trim class="no-highlight">
$ shelly setup
Setting up example cloud
Running: git remote add shelly git@git.shellycloud.com:example.git
Running: git fetch shelly
Your application is set up.
</code></pre>
</section>
<section>
<h2>Déployer son application en production</h2>
<pre><code data-trim class="no-highlight condensed">
$ git push shelly master
Counting objects: 17, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 1.04 KiB | 0 bytes/s, done.
Total 10 (delta 8), reused 0 (delta 0)
---> Received push to cloud 'hiptest'
---> Checking Gemfile
---> Creating code package... done.
---> Deploying your application
---> Deployment on server app1 started
---> Deployment on server app1 finished
---> Deployment on server job1 started
---> Deployment on server app2 started
---> Deployment on server job1 finished
---> Deployment on server app2 finished
---> Deployment successful
To git@git.shellycloud.com:hiptest.git
3d493f5..7e12026 master -> master
</code></pre>
</section>
<section>
<h2>Logs du déploiement</h2>
<pre><code data-trim class="no-highlight">
$ shelly deploys show last
Log for deploy done on 2015-03-26 at 11:28:03
Starting processes
Eye started! ㋡
Config loaded!
Starting 'rake jobs:work' was successful
Whenever
[write] crontab file updated
# Begin Whenever generated tasks for: /home/app/app/releases/3d493f57740dcc1b6b959faeee30dfbd7e3713de/config/schedule.rb
0 6 * * * /bin/bash -l -c 'cd /home/app/app/releases/3d493f57740dcc1b6b959faeee30dfbd7e3713de && RAILS_ENV=production bundle exec rake intercom:notify --silent >> whenever.log 2>&1'
# End Whenever generated tasks for: /home/app/app/releases/3d493f57740dcc1b6b959faeee30dfbd7e3713de/config/schedule.rb
Running after successful deploy hook
I, [2015-03-26T11:31:22.722120 #3547] INFO -- : Notifying Appsignal of deploy with: revision: 3d493f57740dcc1b6b959faeee30dfbd7e3713de, user: christophebliard@hiptest.net
I, [2015-03-26T11:31:22.777596 #3547] INFO -- : Appsignal has been notified of this deploy!
</code></pre>
</section>
<section>
<h2>Informations</h2>
<pre><code data-trim class="no-highlight condensed">
$ shelly info
Cloud hiptest:
Region: EU
State: running
Deployed commit sha: 3d493f57740dcc1b6b959faeee30dfbd7e3713de
Deployed commit message: Enhance production exception visibility
Deployed by: christophebliard@hiptest.net
Repository URL: git@git.shellycloud.com:hiptest.git
Web server IP: 178.32.77.22, 178.32.77.22
Usage:
Filesystem:
Current: 2.35 GiB
Average: 2.33 GiB
Database:
Current: 864.65 MiB
Average: 817.97 MiB
Traffic:
Incoming: 3.74 GiB
Outgoing: 8.94 GiB
Total: 12.68 GiB
Statistics:
app1:
Load average: 1m: 0.42, 5m: 0.16, 15m: 0.09
CPU: 0.0%, MEM: 63.5%, SWAP: 6.0%
app2:
Load average: 1m: 0.01, 5m: 0.02, 15m: 0.05
CPU: 0.0%, MEM: 69.4%, SWAP: 6.0%
esearch:
Load average: 1m: 0.00, 5m: 0.01, 15m: 0.05
CPU: 0.0%, MEM: 65.6%, SWAP: 4.9%
job1:
Load average: 1m: 0.00, 5m: 0.01, 15m: 0.05
CPU: 0.0%, MEM: 38.7%, SWAP: 9.3%
store:
Load average: 1m: 0.08, 5m: 0.11, 15m: 0.08
CPU: 0.1%, MEM: 17.3%, SWAP: 5.3%
</code></pre>
</section>
<section>
<h2>Logs applicatifs</h2>
<h5 style="text-align: left; margin-left: 5%">Voir</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly logs latest
</code></pre>
<div class="fragment">
<h5 style="text-align: left; margin-left: 5%">Récupérer</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly logs get
Time: 00:00:03 [====================================] 100% Progress | Time: 00:00:03
Log file saved to hiptest.log-20150327.gz
</code></pre>
</div>
<div class="fragment">
<h5 style="text-align: left; margin-left: 5%">À une date précise</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly logs get 26-03-2015
Time: 00:00:05 [====================================] 100% Progress | Time: 00:00:05
Log file saved to hiptest.log-20150326.gz
</code></pre>
</div>
</section>
<section>
<h2>Accès ssh</h2>
<pre><code data-trim class="no-highlight">
$ shelly ssh
app@app2.hiptest [production] ~/app/current $
</code></pre>
<div class="fragment">
<h5 style="text-align: left; margin-left: 5%">Sur un hôte particulier</h5>
<pre><code data-trim class="no-highlight">
$ shelly ssh --server job1
app@job1.hiptest [production] ~/app/current $
</code></pre>
</div>
</section>
<section>
<h2>Console</h2>
<h5 style="text-align: left; margin-left: 5%">Rails</h5>
<pre><code data-trim class="no-highlight">
$ shelly console
Loading production environment (Rails 4.0.13)
2.1.5 :001 >
</code></pre>
<div class="fragment">
<h5 style="text-align: left; margin-left: 5%">PostgreSQL</h5>
<pre><code data-trim class="no-highlight">
$ shelly dbconsole
psql (9.3.5)
Type "help" for help.
hiptest=#
</code></pre>
</div>
</section>
<section>
<h2>Backups de base de données</h2>
<h5 style="text-align: left; margin-left: 5%">Lister</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly backup list -c hiptest
Showing only last 10 backups.
Use --all or -a option to list all backups.
Filename | Size | State
2015.03.23.17.02.26.hiptest.postgresql.tar | 80 MiB | completed
2015.03.24.05.03.10.hiptest.postgresql.tar | 80 MiB | completed
2015.03.24.17.02.32.hiptest.postgresql.tar | 80 MiB | completed
2015.03.25.05.05.24.hiptest.postgresql.tar | 80 MiB | completed
2015.03.25.17.02.51.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.05.10.46.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.10.15.33.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.17.02.43.hiptest.postgresql.tar | 80 MiB | completed
2015.03.27.05.04.54.hiptest.postgresql.tar | 80 MiB | completed
</code></pre>
<div class="fragment">
<h5 style="text-align: left; margin-left: 5%">Récupérer le dernier</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly backup get
Time: 00:00:34 [================================] 100% Progress | Time: 00:00:34
Backup file saved to 2015.03.27.05.04.54.hiptest.postgresql.tar
</code></pre>
</div>
</section>
<section>
<h5 style="text-align: left; margin-left: 5%">Lancer une sauvegarde</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly backup create postgresql
Backup requested. It can take up to several minutes for the backup process to finish.
</code></pre>
<div class="fragment">
<pre><code data-trim class="no-highlight condensed">
$ shelly backup list
Showing only last 10 backups.
Use --all or -a option to list all backups.
Filename | Size | State
2015.03.24.17.02.32.hiptest.postgresql.tar | 80 MiB | completed
2015.03.25.05.05.24.hiptest.postgresql.tar | 80 MiB | completed
2015.03.25.17.02.51.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.05.10.46.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.10.15.33.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.17.02.43.hiptest.postgresql.tar | 80 MiB | completed
2015.03.27.05.04.54.hiptest.postgresql.tar | 80 MiB | completed
2015.03.27.17.02.20.hiptest.postgresql.tar | 80 MiB | completed
. | | in progress
</code></pre>
</div>
<div class="fragment">
<pre><code data-trim class="no-highlight condensed">
# quelques minutes plus tard...
$ shelly backup list
Showing only last 10 backups.
Use --all or -a option to list all backups.
Filename | Size | State
2015.03.24.17.02.32.hiptest.postgresql.tar | 80 MiB | completed
2015.03.25.05.05.24.hiptest.postgresql.tar | 80 MiB | completed
2015.03.25.17.02.51.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.05.10.46.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.10.15.33.hiptest.postgresql.tar | 80 MiB | completed
2015.03.26.17.02.43.hiptest.postgresql.tar | 80 MiB | completed
2015.03.27.05.04.54.hiptest.postgresql.tar | 80 MiB | completed
2015.03.27.17.02.20.hiptest.postgresql.tar | 80 MiB | completed
2015.03.27.17.09.30.hiptest.postgresql.tar | 80 MiB | completed
</code></pre>
</div>
</section>
<section>
<div>
<h5 style="text-align: left; margin-left: 5%">Restaurer une sauvegarde (doc officielle)</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly backup restore 2011.11.26.04.00.10.foo.postgresql.tar.gz
You are about restore database postgres for cloud todo-list-test to state from
2011.11.26.04.00.10.foo.postgresql.tar.gz
I want to restore the database (yes/no): yes
Restore has been scheduled. Wait few minutes till database is restored.
</code></pre>
</div>
<aside class="notes">
Restauration sur poste de dév avec pg_restore
</aside>
</section>
<section>
<h2>Configuration SSL</h2>
<h5 style="text-align: left; margin-left: 5%">Création d'un point d'entrée</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly endpoint create
Endpoint was created for your cloud
Point your domain to private IP address: 10.0.0.1
</code></pre>
<div class="fragment">
<h5 style="text-align: left; margin-left: 5%">Voir le point d'entrée créé</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly endpoint list
Available HTTP endpoints
UUID | IP address | Certificate | SNI
afef1570-9e99-4836-8c87-c997d736506f | 10.0.0.1 | ✗ | ✗
</code></pre>
</div>
<div class="fragment">
<h5 style="text-align: left; margin-left: 5%">Ajout du certificat SSL</h5>
<pre><code data-trim class="no-highlight condensed">
$ shelly endpoint update afef1570-9e99-4836-8c87-c997d736506f server.crt server.key
Endpoint was updated
Deployed certificate on front end servers.
Point your domain to private IP address: 10.0.0.1
</code></pre>
</div>
</section>
<section>
<h2>Et d'autres...</h2>
<pre><code data-trim class="no-highlight condensed">
$ shelly help
Tasks:
shelly add # Add a new cloud
shelly backup <command> # Manage database backups
shelly check # Check if application fulfills Shelly Cloud requirements
shelly config <command> # Manage application configuration files
shelly console # Open application console
shelly database <command> # Manage databases
shelly dbconsole # Run rails dbconsole
shelly delete # Delete the cloud
shelly deploy <command> # View deploy logs
shelly endpoint <command> # Manage application HTTP(S) endpoints
shelly file <command> # Upload and download files to and from persistent storage
shelly help [TASK] # Describe available tasks or one specific task
shelly info # Show basic information about cloud
shelly list # List available clouds
shelly login [EMAIL] # Log into Shelly Cloud
shelly logout # Logout from Shelly Cloud
shelly logs <command> # View application logs
shelly maintenance <command> # Mange application maintenance events
shelly mongoconsole # Run MongoDB console
shelly open # Open application page in browser
shelly organization <command> # View organizations
shelly rake TASK # Run rake task
shelly redeploy # Redeploy application
shelly redis-cli # Run redis-cli
shelly register [EMAIL] # Register new account
shelly setup # Set up git remotes for deployment on Shelly Cloud
shelly ssh # Log into virtual server
shelly start # Start the cloud
shelly stop # Shutdown the cloud
shelly user <command> # Manage collaborators
shelly version # Display shelly version
Options:
[--debug] # Show debug information
-h, [--help] # Describe available tasks or one specific task
</code></pre>
</section>
<section data-background="lib/img/doge.jpg">
<p> </p>
<aside class="notes">
Responsable produit a pu démarrer le service, l'arrêter
Paiement à la consommation
Support excellent
</aside>
</section>
<!-- Use Shelly Cloud -->
<section data-background="lib/img/Infra17.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra18.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra19.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra20.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra21.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra22.svg" data-background-size="100%"><p> </p></section>
<section data-background="#4a4a4a">
<a href="https://www.shippable.com/"><img style="width: 80%;" src="lib/img/shippable-logo-white.png"></a>
<p><q>Ship fast, evolve faster</q></p>
<hr>
<a href="https://circleci.com/"><img style="width: 80%;" src="lib/img/circleci-horizontal-dark.svg"></a>
<p><q>Ship better code, faster.</q></p>
</section>
<section data-background="#4a4a4a">
<a href="https://www.shippable.com/"><img style="width: 80%;" src="lib/img/shippable-logo-white.png"></a>
<p><q>Ship fast, evolve faster</q></p>
</section>
<section>
<h2>Page d'accueil</h2>
<img src="lib/img/shippable-homepage.jpg">
</section>
<section>
<h2>Tableau de bord</h2>
<img src="lib/img/shippable-dashboard.jpg">
</section>
<section>
<h2>Configuration • shippable.yml</h2>
<pre><code data-trim class="ruby condensed">
# Configuration file for Shippable
# Shippable provides continuous integration in the cloud
build_environment: ubuntu1204
language: ruby
rvm:
- 2.1.5
# Enable cached containers, reset with [reset_minion] in commit message.
cache: true
# Enable archiving the shippable/ directory as an artifact to download
archive: true
services:
# sets elasticsearch on localhost, port 9200
- elasticsearch
script:
- rm -f log/test.log
- bin/rspec --format RspecJunitFormatter --out shippable/testresults/rspec.xml
# http://docs.shippable.com/en/latest/config.html#email-notification
notifications:
email:
recipients:
- devs@hiptest.net
on_success: change
on_failure: always
</code></pre>
</section>
<section>
<h2>Personnalisation • shippable.yml</h2>
<pre><code data-trim class="ruby condensed">
env:
global:
# devise_secret_token
- secure: pGUq5116iDVWh6R4/ZOfPxIZj8Vqn4FXS6jmZKyHk99ln20EWX4Ie2xsPSwgFJcOFA==
branches:
only:
- master
before_install: # make chromedriver available
- "curl -o /tmp/chromedriver.zip -L http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip"
- "unzip -o /tmp/chromedriver.zip -d /home/shippable/bin"
- "chmod +x /home/shippable/bin/chromedriver"
- "printf '#!/bin/bash\nexec /usr/bin/chrome --no-sandbox --disable-gpu \"$@\"\n' | sudo tee /usr/bin/google-chrome"
- "sudo chmod +x /home/shippable/bin/chromedriver /usr/bin/google-chrome"
before_script:
- "export DISPLAY=:99.0"
- "/etc/init.d/xvfb start"
after_script:
- "/etc/init.d/xvfb stop"
after_success: # push to production
- "git push shelly master"
after_failure: # save some test logs
- "mv log/test.log shippable/"
</code></pre>
</section>
<section>
<h2>Résultats</h2>
<img src="lib/img/shippable-hiptest-build.jpg">
</section>
<section data-background="#4a4a4a">
<a href="https://circleci.com/"><img style="width: 80%;" src="lib/img/circleci-horizontal-dark.svg"></a>
<p><q>Ship better code, faster.</q></p>
</section>
<section>
<h2>Page d'accueil</h2>
<img src="lib/img/circleci-homepage.jpg">
</section>
<section>
<h2>Tableau de bord</h2>
<img src="lib/img/circleci-dashboard.jpg">
</section>
<section>
<h2>Configuration • circle.yml</h2>
<pre><code data-trim class="ruby condensed">
# Setup services
dependencies:
post:
# install custom version of elasticsearch
# See https://circleci.com/docs/installing-elasticsearch
- wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.3.tar.gz
- tar -xvf elasticsearch-1.0.3.tar.gz
- elasticsearch-1.0.3/bin/elasticsearch: {background: true}
- sleep 10 # wait elasticsearch start
test:
override:
- "bundle exec rspec":
timeout: 3600
</code></pre>
</section>
<section>
<h2>Résultats</h2>
<img src="lib/img/circleci-hiptest-build.jpg">
</section>
<section data-background="lib/img/Infra24.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra25.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra27.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra29.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/stroopwafels.jpg">
<div style="background-color: rgba(255,255,255, 0.8); margin: 0 -20%; padding: 2% 20%">
<a href="https://appsignal.com/"><img src="lib/img/appsignal-logo.svg"></a>
<p style="color: #444;"><q>Your Ruby apps can run smoother.</q></p>
</div>
</section>
<section data-background="lib/img/stroopwafels.jpg">
<img src="lib/img/appsignal-graphs.jpg">
</section>
<section data-background="lib/img/stroopwafels.jpg">
<img src="lib/img/appsignal-errors.jpg">
</section>
<section data-background="lib/img/stroopwafels.jpg">
<img src="lib/img/appsignal-performance.jpg">
</section>
<section data-background="lib/img/stroopwafels.jpg">
<img src="lib/img/appsignal-perf-view1.jpg">
</section>
<section data-background="lib/img/stroopwafels.jpg">
<img src="lib/img/appsignal-perf-view2.jpg">
</section>
<section data-background="lib/img/Infra29.svg" data-background-size="100%"><p> </p></section>
<section data-background="lib/img/Infra30.svg" data-background-size="100%">
<p> </p>
<aside class="notes">
Google docs, calendar, mail, 5€/mois/user,
Intercom pour gestion clients
Zopim chat inline
GitHub pages pour la doc
</aside>
</section>
<section data-background="lib/img/brain-coral-grayed.jpg" data-background-size="100%" class="shadow">
<h2>Que retenir de notre évolution ?</h2>
<p class="fragment">Maintenance fortement réduite</p>
<p class="fragment">Meilleure focalisation sur notre métier</p>
<p class="fragment">Coût similaire</p>
<p class="fragment">Plus de fonctionnalités</p>
<p class="fragment">Plus flexible</p>
<p class="fragment">Moins de contrôle</p>
<p class="fragment">Sécurité des données</p>
<p style="font-size: 0.3em">Photo par HorsePunchKid <img src="lib/img/by-nc-sa.svg" style="vertical-align: middle;"> https://www.flickr.com/photos/horsepunchkid/4393669704/</p>
<aside class="notes">
Sécurité : identité, accès
Conformité
Performances
Mobilité des données
</aside>
</section>
<section data-background="lib/img/macro.jpg" class="shadow">
<p style="padding: 13%"></p>
<h2>Autres acteurs ?</h2>
<p style="font-size: 0.3em; margin-top: 27%">Photo par cobalt <img src="lib/img/by-nc-sa.svg" style="vertical-align: middle;"> https://www.flickr.com/photos/cobalt/3300229318/</p>
<aside class="notes">le fond d'écran : Petosky stone, fossile trouvable uniquement dans
le lac Michigan. Le fossile est appelé "Hexagonaria percarinata". 350 Millions d'années.
</aside>
</section>
<section data-background="lib/img/macro.jpg" class="shadow">
<h2><a href="http://www.paasify.it/">paasify.it</a></h2>
<img src="lib/img/other-paasifyit.jpg">
</section>