Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introdução ao Docker
Search
Gabriel Sobrinho
October 17, 2015
Programming
1
98
Introdução ao Docker
Gabriel Sobrinho
October 17, 2015
Tweet
Share
More Decks by Gabriel Sobrinho
See All by Gabriel Sobrinho
Arquiteturas Multi-Tenant RubyConf 2022
sobrinho
0
200
Introduction to Go
sobrinho
1
91
Casos de otimização em aplicações Ruby on Rails
sobrinho
0
280
Introduction to automated tests (Goiania)
sobrinho
0
120
Introduction to automated tests
sobrinho
3
210
Otimização de Aplicações RoR
sobrinho
1
250
Introdução ao React (Simplificado)
sobrinho
0
140
Algoritmos de pesquisa
sobrinho
0
630
Introdução ao React
sobrinho
0
320
Other Decks in Programming
See All in Programming
Goのエラースタックトレースの歴史と今後
sonatard
9
1.7k
新宿ダンジョンを可視化してみた
satoshi7190
2
280
SIMD Parallel Programming with the Vector API
josepaumard
0
220
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
9
4.2k
Next.js App Router
quramy
11
1.5k
禅の心を手に入れよ
eltociear
1
270
Site Reliability Engineering for GMO
pyama86
8
1.1k
Let's learn code review
riofujimon
2
560
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
560
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
410
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
1k
Ruby Function Composition
bkuhlmann
1
340
Featured
See All Featured
Designing with Data
zakiwarfel
96
4.8k
GraphQLとの向き合い方2022年版
quramy
33
12k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.6k
What's new in Ruby 2.0
geeforr
337
31k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
18
1.6k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
The Illustrated Children's Guide to Kubernetes
chrisshort
32
46k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
22
1.6k
Six Lessons from altMBA
skipperchong
22
3k
Transcript
Introdução a conteinerização de aplicações
GABRIEL SOBRINHO gabrielsobrinho.com github.com/sobrinho twitter.com/sobrinho speakerdeck.com/sobrinho
hite.com.br
None
Docker
Docker • Projeto PaaS da dotcloud • Open source escrito
em Go • Facilita a criação de containers • Linux, OS X, Windows
None
Matrix from hell
Matrix from hell
Soluções
Docker
Docker
None
Instalação
OS X • Necessário rodar uma VM com Linux •
Preferencialmente o VMware Fusion
OS X brew install docker docker-machine docker-machine create --driver=virtualbox docker
eval $(docker-machine env docker)
None
Conceitos
Imagens • Template read-only • Contém os arquivos da sua
aplicação • Geradas a partir de um Dockerfile
Containers • Gerados a partir de uma imagem • Recursos
controlados (CPU, memória, I/O, etc) • Podem ser descartáveis ou persistentes
Dockerfile FROM ruby:2.2 RUN mkdir /usr/src/app WORKDIR /usr/src/app COPY .
/usr/src/app EXPOSE 9292 CMD ["bundle", "exec", "puma", "-t", "4:4"]
Compilando docker build -t app .
Executando docker run app
Volumes • Arquivos persistentes no container • Backups, aplicação, logs,
etc
Volumes
None
Live Demo Murphy pediu para avisar que não irá funcionar
como esperado
None
Brindes
Cupom 15% RAILS_BH_15
http://www.casadocodigo.com.br/products/livro-docker
None
Obrigado!
Dúvidas?
hite.com.br
Referências https://www.docker.com http://infoslack.com/docker/ http://www.casadocodigo.com.br/products/livro-docker