Page MenuHomePhabricator

Do not bust cached apt-install'd dependencies when source files change
ClosedPublic

Authored by jasonbcox on Feb 3 2021, 21:17.

Details

Summary

Copying the source files into the container before installing dependencies with apt-get
forces a cache bust when any Cashtab files change. This saves ~25% (30 seconds) of build time when
rebuilding the docker image.

Test Plan

Run this test plan before and after this patch:

docker build --no-cache -t cashtab .

Change a Cashtab source file, then:

docker build -t cashtab .

Sanity check:

docker run -it -p 9000:80 cashtab

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cachebust-cashtab-apt
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15108
Build 30166: Build Diffcashtab-tests
Build 30165: arc lint + arc unit