Task #13441

Improve Dockerfile layers caching

Added by José Raddaoui Marín 6 months ago. Updated 3 months ago.

Status:VerifiedStart date:11/20/2020
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:Docker
Target version:Release 2.7.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

On the Docker Compose environment, rebuilding the AtoM services after any code change causes a full recreation of the containers. The Docker cache is not used due to the order of the layers in the Dockerfile, where the source code is copied to the containers on an initial step, causing the invalidation of the cache for the following layers.

History

#1 Updated by José Raddaoui Marín 6 months ago

  • Status changed from New to Code Review

Community PR from Jason Hildebrand: https://github.com/artefactual/atom/pull/1219

#2 Updated by José Raddaoui Marín 3 months ago

  • Assignee changed from José Raddaoui Marín to Steve Breker

#3 Updated by Steve Breker 3 months ago

CR complete - looks great!

#4 Updated by José Raddaoui Marín 3 months ago

  • Status changed from Code Review to Verified
  • Assignee deleted (Steve Breker)
  • Target version changed from Release 2.6.2 to Release 2.7.0

Merged in qa/2.x.

#5 Updated by José Raddaoui Marín 3 months ago

  • Status changed from Verified to Code Review
  • Assignee set to Steve Breker

Found an issue with the Composer deps installation:

https://github.com/artefactual/atom/pull/1250

#6 Updated by Steve Breker 3 months ago

PR looks good!

#7 Updated by Steve Breker 3 months ago

  • Status changed from Code Review to Feedback
  • Assignee changed from Steve Breker to José Raddaoui Marín

#8 Updated by José Raddaoui Marín 3 months ago

  • Status changed from Feedback to Verified
  • Assignee deleted (José Raddaoui Marín)

Merged in qa/2.x, phpunit and others seems to be working.

Also available in: Atom PDF