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
97
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
50
Design a REST API you will love to work with
ujovlado
0
660
Docker for PHP developers - Tips, Tricks & Lessons learned
ujovlado
3
400
Docker ‐ from development to production in minutes (PoSobota #91)
ujovlado
0
290
Non-traditional use of Docker (Nette Camp #3)
ujovlado
0
71
Contributions [lightning talk] (PyconCZ 2015)
ujovlado
0
42
CSS Flexbox (WebElement #35)
ujovlado
0
100
Don't underestimate CSS (WebElement #30)
ujovlado
0
520
Database Migrations in PHP (Posobota #66)
ujovlado
0
80
Other Decks in Programming
See All in Programming
Trial
cairolibrary720
1
130
Polarsの成長: v0.14からv1.0までの変遷と今後の展望
zerebom
1
350
AWS初心者ってどうやってAWSを学ぶ?〜アプリエンジニアがやってよかったアーキテクチャ学習方法〜
yamanashi_ren01
0
190
feature環境をGitHub ActionsとCloudFormationでいい感じに管理する
nealle
2
310
Composing an API the *right* way (Droidcon Berlin 2024)
zsmb
1
450
社内 LT 会を発足し、アウトプット文化を醸成させるために考えたこと・やったこと / Starting internal LT meetings and fostering an output culture
mackey0225
3
120
Play Billing Library 7.0.0 変更点まとめ@potatotips#88
kako351
0
160
わかりやすい正解を捨てて、コトに向き合う - スクラムフェス金沢2024 スポンサーセッション
yusukekokubo
0
170
生成AIをkintoneに連携してみた
hideg
0
230
CSC307 Lecture 10
javiergs
PRO
0
310
データカタログ運用物語 〜令和6年夏の理想と現実〜
kuro_kurorrr
0
110
MIERUNE BBQにおけるユーザー中心設計()
mierune
PRO
1
110
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Producing Creativity
orderedlist
PRO
340
39k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
35
6.3k
The Cost Of JavaScript in 2023
addyosmani
31
4.7k
In The Pink: A Labor of Love
frogandcode
139
22k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
121
18k
Fontdeck: Realign not Redesign
paulrobertlloyd
79
5.1k
Pencils Down: Stop Designing & Start Developing
hursman
118
11k
Designing for humans not robots
tammielis
247
25k
Build your cross-platform service in a week with App Engine
jlugia
227
17k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
224
21k
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