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
Desenvolvendo aplicações web com Flask e Docker
Search
felipe
November 20, 2019
Technology
0
20
Desenvolvendo aplicações web com Flask e Docker
felipe
November 20, 2019
Tweet
Share
More Decks by felipe
See All by felipe
Functional Programming with examples
felipemocruha
0
25
Aplicações Flask Resilientes com Envoy e Kubernetes
felipemocruha
0
31
Docker e Kubernetes
felipemocruha
0
31
Emacs
felipemocruha
0
19
Introdução a Python e seu Ecossistema
felipemocruha
0
14
Data Structures and Performance
felipemocruha
0
21
Observability
felipemocruha
0
32
Testes de Software
felipemocruha
0
11
Other Decks in Technology
See All in Technology
変化する開発、進化する体系時代に適応するソフトウェアエンジニアの知識と考え方(JaSST'25 Kansai)
mizunori
1
210
Liquid Glass革新とSwiftUI/UIKit進化
fumiyasac0921
0
210
Snowflake Summit 2025 データエンジニアリング関連新機能紹介 / Snowflake Summit 2025 What's New about Data Engineering
tiltmax3
0
310
Oracle Audit Vault and Database Firewall 20 概要
oracle4engineer
PRO
3
1.7k
急成長を支える基盤作り〜地道な改善からコツコツと〜 #cre_meetup
stefafafan
0
120
How Community Opened Global Doors
hiroramos4
PRO
1
120
2年でここまで成長!AWSで育てたAI Slack botの軌跡
iwamot
PRO
4
700
標準技術と独自システムで作る「つらくない」SaaS アカウント管理 / Effortless SaaS Account Management with Standard Technologies & Custom Systems
yuyatakeyama
3
1.2k
Yamla: Rustでつくるリアルタイム性を追求した機械学習基盤 / Yamla: A Rust-Based Machine Learning Platform Pursuing Real-Time Capabilities
lycorptech_jp
PRO
2
110
監視のこれまでとこれから/sakura monitoring seminar 2025
fujiwara3
11
3.9k
セキュリティの民主化は何故必要なのか_AWS WAF 運用の 10 の苦悩から学ぶ
yoh
1
130
データプラットフォーム技術におけるメダリオンアーキテクチャという考え方/DataPlatformWithMedallionArchitecture
smdmts
5
630
Featured
See All Featured
Side Projects
sachag
455
42k
The Pragmatic Product Professional
lauravandoore
35
6.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
790
RailsConf 2023
tenderlove
30
1.1k
We Have a Design System, Now What?
morganepeng
53
7.7k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Stop Working from a Prison Cell
hatefulcrawdad
270
20k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Transcript
Desenvolvendo aplicações web com Flask e Docker
Conteúdo ➔ O que é Docker e porque isso importa
➔ Estruturando a aplicação ➔ Build e Deploy ➔ Aplicação de exemplo* 1
O que é Docker | VMs vs Docker 2 Fonte:https://docs.docker.com/get-started/#containers-and-virtual-machines
O que é Docker | Arquitetura 3 Fonte: https://docs.docker.com/engine/docker-overview/#docker-architecture
O que é Docker | Imagens e Containers 4 11cd0b38bc34c
0B 582eca42208a3 64B 4c80de2f429bb 276MB 329b145c4ace1 0B h34kh33ld0dd2 9.28kB R/W Layer Container Layer Image Layers
Porque isso importa 5 Python Libs Code Python Libs Code
OS / Environment Virtualenv Docker
Estruturando a aplicação
12 factor app 1. Codebase 2. Dependencies 3. Config 4.
Backing Services 5. Build, release, run 6. Processes 6 7. Port Binding 8. Concurrency 9. Disposability 10. Dev/prod parity 11. Logs 12. Admin Processes
Isolamento de dependências 7
Utilizando logs 8
Bancos de dados como serviços de apoio 9
Build e Deploy
Criando um Dockerfile 10 11cd0b38bc34c 5MB 582eca42208a3 200kB 4c80de2f429bb 276MB
Criando uma imagem do Docker 11
Executando um container 12
Armazenando no Docker Hub 13
Dicas para produção ➔ Use load balancers e/ou proxies reversos
➔ Utilizar um orquestrador de containers (Kubernetes, Swarm, Mesos…) ➔ Seguir boas práticas na criação de imagens ➔ Criar volumes persistentes para os dados ➔ Criar imagens com responsabilidades pequenas 14
Onde encontrar mais ➔ Documentação oficial do Docker - https://docs.docker.com
➔ Creating Effective Docker Images - https://www.youtube.com/watch?v=vlS5EiapiII ➔ 12 factor app - https://12factor.net/ ➔ Miguel Grinberg’s blog - https://blog.miguelgrinberg.com/ ➔ awesome-docker https://github.com/veggiemonk/awesome-docker ➔ https://github.com/humiaozuzu/awesome-flask 15
Obrigado https://gitlab.com/felipemocruha/flask-conf-2018
[email protected]