Upgrade to Pro — share decks privately, control downloads, hide ads and more …

用 Docker 改善團隊合作模式

用 Docker 改善團隊合作模式

Bo-Yi Wu

July 13, 2016
Tweet

More Decks by Bo-Yi Wu

Other Decks in Technology

Transcript

  1. 傳統架構缺陷 • 維護成本提⾼ (機器硬體維修汰換) • 建置機器複雜 (雖然有寫 Shell Script) •

    24 ⼩時 on call (公司隨時都有⼈加班) • 系統資源常常不夠 14
  2. 25

  3. 27

  4. Develop Server (API) Backend Developer Backend Developer Backend Developer Frontend

    Developer Frontend Developer QA Engineer Deploy Deploy Deploy Testing API API 32
  5. Git • 如何更新程式 – $ git pull origin master •

    如何切換分⽀ – $ git checkout –b xx origin/feature-xx 41
  6. Docker • 啟動 Service – $ docker-compose -p $(PROJECT) up

    –d • 關閉 Service – $ docker-compose -p $(PROJECT) stop • 移除 Service – $ docker-compose -p $(PROJECT) down 42
  7. 54

  8. ⼀⾏指令 • tar xf ../module_cache.tar • npm prune • npm

    install • tar cf ../module_cache.tar node_modules 57
  9. 59

  10. 60

  11. 64