-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve yarn and pipenv experience during development (#803)
Both yarn and pipenv have had to re-create their caches from scratch whenever `docker-compose` is run, which made `bash docker-update.sh` particularly slow. Now they use persistent caches backed by Docker volumes, which should make things faster. We also now mount a `/.yarnrc` at the root of the Docker image to tell yarn to install packages in `/node_modules`, so we don't have to manually pass `--modules-folder` whenever we run yarn ourselves.
- Loading branch information
Showing
4 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--modules-folder /node_modules | ||
--cache-folder /var/yarn-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,5 @@ volumes: | |
unused-node-modules: | ||
python-venv: | ||
pgdata: | ||
yarn-cache: | ||
pipenv-cache: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters