狠狠撸

狠狠撸Share a Scribd company logo
Hello
2015/01/27 Frank
先说结论
部門中使用Docker佈署
Redmine
Wiki
Jenkins Master
各種環境的 Jenkins Slave
Docker
container and lightweight
virtualization
What is docker?
Golang
Base on Linux LXC...
Lightweight Virtualization
Hello docker
Docker 三劍客
Image
Container
Repository
Why Docker?
更快速的交付和部署
更有效率的虛擬化
更輕鬆的遷移和擴展
更簡單的管理
How?
Namespaces
Control groups
Union file systems
Container format
Docker Commands
docker pull ........ 從倉庫下載image
docker push ........ 上傳image
docker commit ........ 將container的變更疊上image
docker run ...... 創建並運行container
docker ps ..... 查看container
docker images ..... 查看image
docker rm ...... 刪除container
docker build .... 由Dockerfile 建立image
.........
DIY
Use Virtualbox
Download : https://db.tt/rQMd1z6W
Import ovf to virtualbox
username: root
password: 12345678
小試身手-ubuntu sshd
?????????????????????????????????????????
??????????????????????????????????????????????????????
???????????????????????????????????????????????????
MoinMoin Wiki
????????????????????????????????
??????????????????????????????????????????????????????????????????
http://127.0.0.1:8080
Redmine
???????????????????????????????????????????????????????????????????
Redmine + PostgreSQL
???????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????
Start PostgreSQL Container
Start Redmine Container
???????????????????????????????????????????????????????????????????
?????????????????????????
?????????????????????????????????????
Redmine + host volume
???????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????
????????????????????????????????????????
???????????????????????????????????????????????????????????????????
???????????????????????
??????????????????????????????????????????????????????
?????????????????????????????????????
Jenkins
???????????????????????????????????????????????
???????????????????????????????????
???????????????????????????????????????????????????
????????????????????????????????????
?????????????????????????????????????
Jenkins Slave 參上
How ?
Master 新增Slave
利用Docker 起動 Slave
並將設定好的Slave ID傳入
使用 JNLP 連線
Start Jenkins Master
???????????????????????????????????????????????????
???????????????????????????????????????????????????
????????????????????????????????????
?????????????????????????????????????
加入 52842 port 給 JNLP 使用
設定 Master JNLP Port
Manage Jenkins->
Configure Global Security->
Enable security->
TCP port for JNLP slave agents
Change to Fixed:52842
Hello docker
Add Slave
Manage Jenkins->
Manage Nodes->
New Node->
Dumb Slave->
Remote root directory: /home/jenkins
Launch method : launch slave agent via java web start
Tunnel connection through: :52842
Hello docker
新增五个小试身手
Run slave docker image
??????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????
??????????
????????
?????
Hello docker
To Be Continued
Write Dockerfile & Build It
Use Fig Deploy Docker Container
Docker Cluster Management
Q & A

More Related Content

Hello docker