Skip to main content

GitHub Codespace and DevContainer

ทำไมต้องใช้

  • เครื่องเก่า สเปกไม่แรง จนแทบไม่อยากลง/เปิด IDE (เช่น VSCode, NeoVim)
  • เน็ตช้า
  • ไม่อยากลง packages ให้รกเครื่อง
  • อยากประหยัดพื้นที่ดิสก์ ไม่อยากใช้ Virtual Environment
  • เจอปัญหา dependencies conflict
  • อยากใช้ runtime บน OS/Arch/Platform อื่น เช่น Linux แต่ไม่อยากใช้ VM
  • เจอปัญหา unsupported OS/Arch/Platform เพราะตกรุ่นไปแล้ว
  • ทีมเจอปัญหา "It works on my machine."

feature

  • เอา repo ไปรันใน GitHub Codespace ก็ได้ หรือเครื่อง Laptop/PC ขอแค่มี Docker
  • มี Image มาตรฐานให้เลือกหลากหลาย
  • มี community features ที่รองรับ tech stack ยอดฮิต
  • Bring-Your-Own-Dockerfile หรือ Bring-Your-Own-Compose ก็ได้ถ้ายังไม่ถูกใจ
  • ทำ System Integration/Continuous Integration ได้ด้วย Docker Compose Watch
  • ต่อกับ CloudFlare Tunnel ออกอินเตอร์เน็ตไว้โชว์ลูกค้าก็ได้