~/talk

Practical Tips for Build Optimization for GitLab and Docker Users

TalkinRussianat Highload fwdays'19 · on Saturday, 2019-10-05· [devops-and-delivery]
links:none on file
slides:none on file

Practical build-optimization rules for teams using GitLab CI and Docker: treat artifacts, cache, and persistent volumes as different mechanisms (artifacts only within a single pipeline; caches and volumes survive across pipelines), set dependencies=[] to avoid implicit artifact downloads, and prefer persistent volumes or local caches for Gradle dependencies. Enable Gradle dependency cache (remote build cache only if builds run on the same machine) to save ~30s–2min and use compilation caching to save additional seconds; enable Docker layer cache with docker pull + --cache-from and arrange Dockerfile commands so long installs are above frequently changed steps.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03GitLab CI incremental builds
  3. 3:10GitLab CI artifacts cache
  4. 4:13Pipeline artifacts role
  5. 6:23GitLab CI artifact mistakes
  6. 7:49GitLab caching types
  7. 9:16Cache keys impact
  8. 11:43Shared cache in GitLab CI
  9. 13:29Trade-offs with shared cache
  10. 14:34Artifacts vs cache vs volumes
  11. 15:36Gradle build optimizations
  12. 16:21Gradle dependency cache
  13. 16:44Gradle incremental builds
  14. 17:29Gradle remote cache
  15. 18:54Gradle Java compilation
  16. 20:00Gradle optimization analysis
  17. 23:13Gradle optimization tips
  18. 24:14Gradle cache mistakes
  19. 25:59Gradle persistent volumes
  20. 27:07Gradle incremental config
  21. 28:58Docker layer cache
  22. 29:39Docker cache mechanics
  23. 31:03When to use Docker cache
  24. 32:31Dockerfile command order
  25. 34:44Docker cache mistakes
  26. 35:46Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.