Skip to main content
DevOps9 min read

Docker في CI/CD: الأنماط التي قلصت وقت خط الأنابيب بنسبة 82%

التخزين المؤقت للطبقات، البناء متعدد المراحل، BuildKit، وأنماط Docker التي خفضت وقت خط الأنابيب من 45 دقيقة إلى 8 دقائق.

Part ofCloud & Infrastructure->
By Jason TeixeiraMarch 12, 2026
DockerCI/CDGitHub ActionsDevOpsPerformanceKubernetes
Share:
On this page

كان خط أنابيب CI الخاص بي يستغرق 45 دقيقة. الآن يستغرق 8 دقائق. أكبر المكاسب جاءت من تحسين Docker — وليس من أجهزة أسرع.

المشكلة

كل تشغيل CI كان:

  1. سحب الصورة الأساسية (دقيقتان)
  2. تثبيت تبعيات نظام التشغيل (5 دقائق)
  3. تثبيت حزم Python (8 دقائق)
  4. تثبيت حزم Node (6 دقائق)
  5. بناء التطبيق (4 دقائق)
  6. تشغيل الاختبارات (15 دقيقة)
  7. بناء صورة الإنتاج (5 دقائق)

المجموع: ~45 دقيقة. توقف المطورون عن تشغيل خط الأنابيب الكامل. تسللت الأخطاء.

الإصلاح 1: البناء متعدد المراحل (45 → 30 دقيقة)

\

Reader route

article -> proof -> offer

ReadClusterProofScope

cluster

Cloud & Infrastructure

intent

DevOps

route

next step

What to do with this

Turn the note into a build path.

If this topic maps to a real business problem, keep reading the cluster, study the academy path, or route the work into a scoped engagement.

Jason Teixeira
Written by
Jason Teixeira
Founder, Sage Ideas Studio · Principal Engineer
livebuild 5d6c8652026-08-05 06:00Z
// solo studio// no analytics resold// every commit human-reviewed