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
Simplify your dev life with Docker (WebElement Banská Bystrica)
Search
Vladimír Kriška
August 20, 2015
Programming
0
83
Simplify your dev life with Docker (WebElement Banská Bystrica)
Vladimír Kriška
August 20, 2015
Tweet
Share
More Decks by Vladimír Kriška
See All by Vladimír Kriška
Twelve-Factor app with Docker
ujovlado
0
39
Design a REST API you will love to work with
ujovlado
0
630
Docker for PHP developers - Tips, Tricks & Lessons learned
ujovlado
3
370
Docker ‐ from development to production in minutes (PoSobota #91)
ujovlado
0
260
Non-traditional use of Docker (Nette Camp #3)
ujovlado
0
67
Contributions [lightning talk] (PyconCZ 2015)
ujovlado
0
39
CSS Flexbox (WebElement #35)
ujovlado
0
98
Don't underestimate CSS (WebElement #30)
ujovlado
0
510
Database Migrations in PHP (Posobota #66)
ujovlado
0
71
Other Decks in Programming
See All in Programming
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
410
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
110
Milestoner
bkuhlmann
1
400
puregoの活用例
aethiopicuschan
0
220
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
190
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.6k
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
210
Folding Cheat Sheet #1
philipschwarz
PRO
0
210
⼤規模⾔語モデルの拡張(RAG)が 終わったかも知れない件について
nearme_tech
22
15k
今、知っておきたい! 生成AIエージェントの世界
elith
3
340
"config" ってなんだ? / What is "config"?
okashoi
0
210
Java 22 Overview
kishida
1
160
Featured
See All Featured
Clear Off the Table
cherdarchuk
82
310k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
29
6k
Unsuck your backbone
ammeep
662
57k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.8k
Embracing the Ebb and Flow
colly
78
4.1k
Statistics for Hackers
jakevdp
789
220k
Into the Great Unknown - MozCon
thekraken
10
980
The Power of CSS Pseudo Elements
geoffreycrofte
58
5k
Testing 201, or: Great Expectations
jmmastey
27
6.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
10
4.6k
Git: the NoSQL Database
bkeepers
PRO
421
63k
The Invisible Side of Design
smashingmag
293
49k
Transcript
Simplify your dev life with Docker Vladimír Kriška (@ujovlado) WebElement
Banská Bystrica
Past (vedle pasti) • New computer • Install Apache|Nginx, MySQL|PostgreSQL,
PHP, MongoDB, etc., etc. • Start services … start coding After few weeks • OMG this project needs newer version of MySQL • Problems • And problems
Future • New computer • Prepare Dockerfile with exact requirements
• Build it • Run it (with services inside) … start coding After few weeks • OMG this project needs … whatever • Never mind, I'll build a new container • Profit
Yo Dawg, I heard you like computers So I put
computer into computer, So you can computer while you computer
What is Docker? "Docker is an open platform for building,
shipping and running distributed applications."
What is Docker for me? Primary • Engine for working
with containers • Any virtual machine • Testing platform • Tool to not install "shit" to your computer Not yet • Running in production
What really Docker is? Same as your system • Set
of files with "/sbin/init" file So, you can • Take parts of your system and virtualize them without need to virtualize full OS
Containers without Docker (!) https://chimeracoder.github.io/docker-without-docker mkdir debian-tree debootstrap --arch=amd64 unstable
debian-tree systemd-nspawn -D debian-tree/ /bin/bash machinectl list machinectl poweroff debian-tree
OK, let's go Three basic steps 1) Create Dockerfile 2)
Build it 3) Run it
Dockerfile & Build & Run FROM debian:jessie RUN apt-get update
&& apt-get upgrade -y RUN apt-get install nginx -y RUN mkdir -p /data COPY package.tar.gz /data/ EXPOSE 80 docker build -t wblmnt/bb . docker run -i -t --rm -p 8037:80 wblmnt/bb:latest
Case I & Case II Everything in one container •
Easy to start • Same as any virtual machine / container • Need to commit changes at the end (as many times as containers count)
Case III Multiple containers with separate store • For production
environment • Hard to setup • Deployment?
Examples
Thanks