Page MenuHomePhabricator

[keyserver] Avoid redownloading Node from nvm whenever any files change
ClosedPublic

Authored by ashoat on Jun 5 2022, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 14, 1:34 PM
Unknown Object (File)
Mon, Apr 14, 2:13 AM
Unknown Object (File)
Mon, Apr 14, 1:45 AM
Unknown Object (File)
Sun, Apr 13, 12:40 AM
Unknown Object (File)
Wed, Apr 9, 10:44 AM
Unknown Object (File)
Tue, Apr 8, 6:25 PM
Unknown Object (File)
Tue, Apr 8, 8:32 AM
Unknown Object (File)
Tue, Apr 8, 7:50 AM

Details

Summary

Since we don't download Node until the first time source-nvm.sh is run, that means Node gets downloaded in the prod-build step.

prod-build needs to rerun whenever any files change, but Node should only need to get downloaded when the version changes.

This diff uses Docker build caching to call source-nvm.sh earlier, so that we can make it cheaper to rebuild when a source file changes.

Depends on D4213

Test Plan

Change a file in keyserver/src and make sure that nvm doesn't re-download Node when running the Docker build again

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable