30
Docker + CI pipeline 高效率ChatBot開發方法 Philipz(鄭淳尹) Modern Web 2017-8-11

Docker + CI pipeline 的高效率 ChatBot 開發方法

Embed Size (px)

Citation preview

Page 1: Docker + CI pipeline 的高效率 ChatBot 開發方法

Docker + CI pipeline高效率ChatBot開發方法

Philipz(鄭淳尹)Modern Web 2017-8-11

Page 2: Docker + CI pipeline 的高效率 ChatBot 開發方法

緣起

Page 3: Docker + CI pipeline 的高效率 ChatBot 開發方法

IM + XMPP

Page 4: Docker + CI pipeline 的高效率 ChatBot 開發方法

IM + XMPP

Page 5: Docker + CI pipeline 的高效率 ChatBot 開發方法

IM + XMPP

Page 6: Docker + CI pipeline 的高效率 ChatBot 開發方法

0803 Flash Crash 閃崩

Page 7: Docker + CI pipeline 的高效率 ChatBot 開發方法

0803 Flash Crash 閃崩

Page 8: Docker + CI pipeline 的高效率 ChatBot 開發方法

ChatBot功能

1. 自動交易現況

2. 選擇權策略

3. 金融新聞

4. 商品資訊

5. 每日未平倉量

Page 9: Docker + CI pipeline 的高效率 ChatBot 開發方法

ChatBot功能

6. 到價警示(個人化服務)

7. 金融知識問答測試

8. 訂閱服務

9. 託播廣告

Page 10: Docker + CI pipeline 的高效率 ChatBot 開發方法

Demo

Page 11: Docker + CI pipeline 的高效率 ChatBot 開發方法

系統架構

Page 12: Docker + CI pipeline 的高效率 ChatBot 開發方法

系統架構

Azure Web App on Linux

Page 13: Docker + CI pipeline 的高效率 ChatBot 開發方法

開發花費之人月

1人+1周

Page 14: Docker + CI pipeline 的高效率 ChatBot 開發方法
Page 15: Docker + CI pipeline 的高效率 ChatBot 開發方法
Page 16: Docker + CI pipeline 的高效率 ChatBot 開發方法

利用微軟相關工具

Visual Studio Code 開發工具Node.js + Bot Framework - 程式範例1, 範例2

Azure Web App on Linux

容器私有儲存庫 - Azure Container Registry

整合自動化測試部署流程 - GitLabAzure CLI 2.0 - Docker image

Page 17: Docker + CI pipeline 的高效率 ChatBot 開發方法

GitHub

GitLab

Jenkins Registry

Page 18: Docker + CI pipeline 的高效率 ChatBot 開發方法

GitHub

GitLab

Jenkins Registry

Page 19: Docker + CI pipeline 的高效率 ChatBot 開發方法

GitLab-RunnerGitLab-Runner

容器開發流程

GitLab-Runner

Web PaaS

Page 20: Docker + CI pipeline 的高效率 ChatBot 開發方法

Demo

Page 21: Docker + CI pipeline 的高效率 ChatBot 開發方法
Page 22: Docker + CI pipeline 的高效率 ChatBot 開發方法

GitLab

Page 23: Docker + CI pipeline 的高效率 ChatBot 開發方法
Page 24: Docker + CI pipeline 的高效率 ChatBot 開發方法

Test Double 測試方法

Page 25: Docker + CI pipeline 的高效率 ChatBot 開發方法

新 Compose 測試方法

The Same

http://testdriven.io/part-four-intro/

Page 26: Docker + CI pipeline 的高效率 ChatBot 開發方法

容器思維

1. 各階段如何使用容器

2. 直接用容器,不再重頭安裝

3. 官方映像檔或依需要客製

4. 營運環境亦使用容器

5. 在易用性與尺寸取得平衡

6. 使用標籤(tag)區分版本

7. 擺脫程式語言限制,善用各語言優點

Page 27: Docker + CI pipeline 的高效率 ChatBot 開發方法

Azure Container Instances

Page 28: Docker + CI pipeline 的高效率 ChatBot 開發方法

延伸閱讀

Page 29: Docker + CI pipeline 的高效率 ChatBot 開發方法

延伸閱讀

Page 30: Docker + CI pipeline 的高效率 ChatBot 開發方法

感謝您的聆聽m(_ _)m