Azure Containers และ ACR

Azure Compute Solutions

Florin Angelescu

Azure Cloud Architect

Azure Container Registry (ACR)

Azure Container Registry

  • บริการ registry ส่วนตัวแบบ fully managed สำหรับ container images
  • ที่เก็บที่ปลอดภัยสำหรับ blueprints ของแอปพลิเคชัน
  • ศูนย์กลางที่ทีมใช้จัดเก็บและจัดระเบียบ blueprints ของแอปพลิเคชัน
Azure Compute Solutions

Azure Container Registry (ACR)

Azure Container Registry

  • รับประกันว่า images เข้าถึงได้เฉพาะผู้ใช้ที่ได้รับอนุญาต และผสานกับบริการ Azure ได้อย่างแน่นแฟ้น
  • ควบคุม lifecycle ของแอปพลิเคชันได้ง่ายขึ้น พร้อมใช้ประโยชน์จากความยืดหยุ่นของ containers
Azure Compute Solutions

เหตุใดจึงควรใช้ ACR?

 

Azure Container Registry

 

 

  • ความปลอดภัยและการควบคุม
    • การยืนยันตัวตนผ่าน Azure Entra ID
    • บังคับใช้ role-based access control
Azure Compute Solutions

เหตุใดจึงควรใช้ ACR?

 

Azure Container Registry

 

  • Geo-replication

    • สามารถ mirror images ไปยัง Azure region ต่าง ๆ ได้
    • ลด latency
    • รับประกัน high availability
  • Deploy เร็วขึ้นและลดความล่าช้า

Azure Compute Solutions

การ push images ไปยัง ACR

Azure Container Registry

  • Build image ในเครื่องด้วย Docker
  • เข้าสู่ระบบ Azure Container Registry
  • Push image
Azure Compute Solutions

การ push images ไปยัง ACR

 

Azure Container Registry

Azure Compute Solutions

การ push images ไปยัง ACR

 

Azure Container Registry

  • เป็นส่วนสำคัญใน CI/CD pipelines
  • Build ใหม่จะถูก push และ deploy โดยอัตโนมัติ
Azure Compute Solutions

การ push images ไปยัง ACR

 

Azure Container Registry

  • ผสานกับ Azure DevOps หรือ GitHub Actions
  • ทำให้กระบวนการตั้งแต่ commit โค้ดจนถึงการ deploy container เป็นแบบอัตโนมัติ
Azure Compute Solutions

การจัดการ images ใน ACR

 

Azure Container Registry

มีคำสั่งสำหรับ:

Azure Compute Solutions

การจัดการ images ใน ACR

 

Azure Container Registry

มีคำสั่งสำหรับ:

 

  • แสดงรายการ repositories
Azure Compute Solutions

การจัดการ images ใน ACR

 

Azure Container Registry

มีคำสั่งสำหรับ:

 

  • แสดงรายการ repositories

 

  • ลบ images ที่ล้าสมัย
Azure Compute Solutions

การจัดการ images ใน ACR

 

Azure Container Registry

มีคำสั่งสำหรับ:

 

  • แสดงรายการ repositories

 

  • ลบ images ที่ล้าสมัย

 

  • ทำให้การ build เป็นแบบอัตโนมัติ
Azure Compute Solutions

การจัดการ images ใน ACR

 

Azure Container Registry

  • Rebuild images เมื่อ base images ได้รับการอัปเดต
  • ดูแลให้แอปพลิเคชันปลอดภัยและทันสมัยอยู่เสมอ
  • ลดงานที่ต้องทำเอง และรักษาความสม่ำเสมอของ environment
Azure Compute Solutions

การ tagging และ versioning

 

Azure Container Registry

 

 

  • Tags มีความสำคัญในการระบุเวอร์ชันของ images
  • การกำหนด tag ที่ดีช่วยให้ทีม rollback ได้รวดเร็วเมื่อ deployment ล้มเหลว
Azure Compute Solutions

การ tagging และ versioning

 

Azure Container Registry

Azure Container Registry

 

 

  • รองรับการทดสอบแบบขนาน:

    • รัน images ที่มี tag หลายตัวพร้อมกันได้
  • Versioning และ tagging ให้ความยืดหยุ่นและความปลอดภัยในการจัดการแอปพลิเคชัน

Azure Compute Solutions

สรุป

Azure Container Registry

  • พื้นฐานที่ปลอดภัยและ scalable สำหรับการจัดการ container lifecycle
  • แอปพลิเคชันพร้อม deploy บน Azure เสมอ โดยมีเวอร์ชันที่ถูกต้องพร้อมใช้งานในเวลาที่เหมาะสม
Azure Compute Solutions

มาฝึกกันเถอะ!

Azure Compute Solutions

Preparing Video For Download...