Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

QNAP COSCUP Container Station

4,518 views

Published on

Build CI Service via Container Station of QNAP NAS

Published in: Technology

QNAP COSCUP Container Station

  1. 1. 輕鬆打造持續 整合開發環境 台灣攻城獅 Doro Wu | QNAP 使用 QNAP Docker
  2. 2. Doro Wu https://github.com/fcwu QNAP – Container Station https://goo.gl/ryOqYW
  3. 3. NAS
  4. 4. 正常觀點 • Download BT • Kodi/DLNA • 1080p, 5.1 channel audio, DTS • Backup Data • samba, NFS, btsync
  5. 5. 攻城獅觀點 • Busybox!! • apt/yum !! • HDD layout!!
  6. 6. 攻城獅觀點 這什麼怪系統 (亂入) 你可以抓他們的 toolchain 自己 build 你要的東西 不如 我買台機器自己灌個 Ubuntu 好了 AWS, linode, Azure…
  7. 7. Virtualization • KVM • VNC/Spice • QvPC • Virtual Switch 2014 2015
  8. 8. Virtualization
  9. 9. QvPC
  10. 10. Container Station • ARM and x86 • Docker and LXC • One-click create container/app • Developers • Docker Private Registry • App Repository • Docker Certificate • Container Station API 2015
  11. 11. Web UI
  12. 12. LXC & Docker 輕鬆跑 Linux App真 OS
  13. 13. QvPC? 用 LXC 可以很容易跑出個 Ubuntu 桌面 玩 Game 嗎?裝 Steam 吧!外面有 demo 給它所有的裝置權限
  14. 14. Private Registry 一鍵架設 Docker Private Registry
  15. 15. Access PR 存取現成私有 Docker Registry
  16. 16. Containers in PR 這個功能是玩真的
  17. 17. App Repo 當一個 App 有多個 Containers 時,Private Registry 的功能不大夠,像 GitLab
  18. 18. Docker compose 搭建自己的 Docker App,照標準作業程序
  19. 19. Custom Repo 送 PR 前,想先測試
  20. 20. Container API
  21. 21. Container API
  22. 22. Docker Cert
  23. 23. 持續整合環境 Jenkins CI Server Gitlab VCS Testbed Image Hub Archive polling KVM
  24. 24. Install Infra.
  25. 25. Install Infra.
  26. 26. Install Infra.
  27. 27. Build Executor • Another PC/NAS • Setup ssh key • Setup gitlab key • Install Docker • Install Docker cert. for accessing private registry • Mount archive
  28. 28. Cluster - swarm Jenkins CI Server Gitlab VCS Testbed Image Hub Archive polling KVM
  29. 29. Automate Build, deploy, test
  30. 30. • Dockerfile • Jenkins
  31. 31. Dockerfile • Image • build • deploy • test • Deploy tool • pysftp • ansible • fabric
  32. 32. app.sh
  33. 33. Testing Deploy and test on real machine everyday
  34. 34. Development Vagrant Ansible
  35. 35. Packer Builder Provision Post- processing
  36. 36. KVM in Docker Running KVM in docker container with QNAP Container Station https://youtu.be/gxhBcuIFAfU
  37. 37. Slack
  38. 38. Backup
  39. 39. Wrap Up • Virtualization Station • Container Station • ARM and x86 • Docker and LXC • One-click create container/app • Docker Private Registry • App Repository • Docker Certificate • Container Station API • Continuous Integration • Gitlab, Jenkins, Archive • Testbed: KVM, LXC
  40. 40. Hiring • Python • Go • AngularJS/React… dorowu@qnap.com or 104

×