Develop With Docker
• Vagrant: https://www.vagrantup.com/
• Provision ⼯工具:依腳本建⽴立出需要的 VM 環境
或 Docker Container
• Docker: https://www.docker.com/
• Linux Container 管理⼯工具:依腳本建出需要的
Docker Image
ක೯ᐑྤBT$PEF
Slide 15
Slide 15 text
Develop With Docker
%PDLFS
• Docker 官網
https://www.docker.com/
https://www.docker.com/tryit/ Docker 練習環境
• The Docker Ecosystem: An Introduction to Common
Components
http://bit.ly/1BE2WIc
• Docker 101 - Intro to Docker
http://slidesha.re/1LxLOpD
• 深⼊入浅出Docker(⼀一):Docker核⼼心技术预览
http://bit.ly/1LxLRBN
Slide 16
Slide 16 text
Develop With Docker
%PDLFSWT7.
http://bit.ly/1A6ETAd
Ⴠ
ޮ
Slide 17
Slide 17 text
Develop With Docker
• build a image from the Dockerfile
• run a container from the image
• show the history of a image
• commit changes of a container to a new image
• stop, start, rm a container; rmi a image
%PDLFS$PNNBOE
Slide 18
Slide 18 text
Develop With Docker
%PDLFSGJMF
• Image 建⽴立腳本
FROM ubuntu:14.04.1
RUN apt-get update -y
RUN apt-get install -y cmake
RUN apt-get install -y vim
RUN apt-get install -y wget tree
ADD scripts/bashrc /.bashrc
WORKDIR /data
Slide 19
Slide 19 text
Develop With Docker
Any Question Before Demonstration
Docker Basic Commands
Slide 20
Slide 20 text
Develop With Docker
<˖>ႡЪක೯ᐑྤ
• 設想⼀一下⼀一般的⽂文件會看到什麼...
• 啟動 docker for vendor A
• 把 vendor A 的 toolchain.tgz 解到 /opt/vendorA/
• 開始編譯 XXX Library ⾄至 /opt/vendorA/XXX
• 開始編譯 YYY Library ⾄至 /opt/vendorA/YYY
• 把它 tar 起來,上傳⾄至 s3 後續使⽤用
WTF
Slide 21
Slide 21 text
Develop With Docker
ක೯ᐑྤ
我只想要⼀一個
build-image.sh
Slide 22
Slide 22 text
Develop With Docker
Any Question Before Demonstration
Build Images For VENDORs