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
How to start with docker
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Toni Van de Voorde
January 27, 2017
Technology
1
210
How to start with docker
Shows some tips & tricks on how to start with docker for php projects.
Toni Van de Voorde
January 27, 2017
Tweet
Share
More Decks by Toni Van de Voorde
See All by Toni Van de Voorde
Jenkins Automation
tonivdv
0
450
Automate jenkins job creation (#phpbnl18)
tonivdv
1
240
Automate jenkins job creation
tonivdv
1
1.3k
How we use docker for our development environment
tonivdv
5
380
Other Decks in Technology
See All in Technology
Agent Skill 是什麼?對軟體產業帶來的變化
appleboy
0
180
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
プラットフォームエンジニアリングはAI時代の開発者をどう救うのか
jacopen
8
4.2k
FastMCP OAuth Proxy with Cognito
hironobuiga
3
110
A4)シラバスを超えて語る、テストマネジメント
moritamasami
0
110
形式手法特論:SMT ソルバで解く認可ポリシの静的解析 #kernelvm / Kernel VM Study Tsukuba No3
ytaka23
1
720
めちゃくちゃ開発するQAエンジニアになって感じたメリットとこれからの課題感
ryuhei0000yamamoto
0
230
Kiroで見直す開発プロセスとAI-DLC
k_adachi_01
0
110
生成AI活用でQAエンジニアにどのような仕事が生まれるか/Support Required of QA Engineers for Generative AI
goyoki
1
350
AlloyDB 奮闘記
hatappi
0
190
LINEヤフーにおけるAIOpsの現在地
lycorptech_jp
PRO
4
1.8k
Mitigating geopolitical risks with local-first software and atproto
ept
0
160
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
14k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
310
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
320
Everyday Curiosity
cassininazir
0
170
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
260
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
So, you think you're a good person
axbom
PRO
2
2k
Prompt Engineering for Job Search
mfonobong
0
210
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.5k
Transcript
How to start with docker Toni Van de Voorde CTO
@ Adlogix.eu / Adsdaq.eu @tonivdv Unconference
Setup • Native on linux • Docker for Mac/Windows •
Docker toolbox
Docker For Mac • Pros • “Native” approach • No
virtualbox (uses lightweight virtualization of mac-os hypervisor framework) • Nice UX • Cons • Shares without NFS • Only 1 virtual machine
Docker Toolbox • Pros • Easy NFS support with docker-machine-nfs
(OSX only) • Not only 1 virtual machine • Use whatever hypervisor you love (virtualbox, xhyve, parallel, vmware, …) • Cons • Less UX ?
Docker Machine Tips Configure ip range per different box dm
create \ -d virtualbox --virtualbox-hostonly-cidr "192.168.70.1/24" --virtualbox-disk-size "10000" docker-test
Docker Machine Tips Embrace speed by activating NFS brew install
docker-machine-nfs $ docker-machine-nfs docker-test https://github.com/adlogix/docker-machine-nfs
General Tips • Dnsmasq + jwilder’s nginx-proxy • Define your
services with docker-compose • Don’t put sensitive data in the images (ssh keys etc) • Still be careful with case sensitivity
How to with ssh? • Mount to container volumes: -
~/.ssh:/root/.ssh • SSH Agent • (hack) Copy to “volume” docker run --rm --name ssh-data -v my-ssh-data:/root/.ssh –v ${USER_PRIVATE_KEY}:/root/.host-ssh:ro busybox sh -c 'cp ~/.host-ssh/* ~/.ssh && chown -R root:root ~/.ssh && chmod -R 400 ~/.ssh’ docker run –v my-ssh-data:/root/.ssh composer ...
Make cli-commands #!/bin/bash cd $(dirname "$0") docker-compose run --rm composer
"$@” #!/bin/bash cd $(dirname "$0") docker-compose run --rm php-cli php "$@"
Demo
Questions?