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
110
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
220
Introduction to Go
sobrinho
1
110
Casos de otimização em aplicações Ruby on Rails
sobrinho
0
310
Introduction to automated tests (Goiania)
sobrinho
0
140
Introduction to automated tests
sobrinho
3
230
Otimização de Aplicações RoR
sobrinho
1
270
Introdução ao React (Simplificado)
sobrinho
0
150
Algoritmos de pesquisa
sobrinho
0
660
Introdução ao React
sobrinho
0
340
Other Decks in Programming
See All in Programming
Claude Code で Astro blog を Pages から Workers へ移行してみた
codehex
0
150
構文解析器入門
ydah
7
1.9k
ソフトウェア設計とAI技術の活用
masuda220
PRO
25
6.8k
SwiftでMCPサーバーを作ろう!
giginet
PRO
2
200
The Modern View Layer Rails Deserves: A Vision For 2025 And Beyond @ RailsConf 2025, Philadelphia, PA
marcoroth
2
790
AIコーディングエージェント全社導入とセキュリティ対策
hikaruegashira
13
7.7k
副作用と戦う PHP リファクタリング ─ ドメインイベントでビジネスロジックを解きほぐす
kajitack
3
450
11年かかって やっとVibe Codingに 時代が追いつきましたね
yimajo
0
150
Git Sync を超える!OSS で実現する CDK Pull 型デプロイ / Deploying CDK with PipeCD in Pull-style
tkikuc
4
460
DMMを支える決済基盤の技術的負債にどう立ち向かうか / Addressing Technical Debt in Payment Infrastructure
yoshiyoshifujii
4
610
ZeroETLで始めるDynamoDBとS3の連携
afooooil
0
120
リッチエディターを安全に開発・運用するために
unachang113
1
240
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Building a Modern Day E-commerce SEO Strategy
aleyda
42
7.4k
4 Signs Your Business is Dying
shpigford
184
22k
How STYLIGHT went responsive
nonsquared
100
5.7k
Writing Fast Ruby
sferik
628
62k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
The Cult of Friendly URLs
andyhume
79
6.5k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
The Straight Up "How To Draw Better" Workshop
denniskardys
235
140k
Building an army of robots
kneath
306
45k
Visualization
eitanlees
146
16k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
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