You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have such option to specify where I want to store all project-related autogenerated data like .rush/, .heft/, *.log, etc.
My use-case:
In my monorepo I'm launching each project in own separate docker container. For this within a container I have a concept of main project and dependencies projects. Main project is bind mounted as read/write (RW), and dep-projects are bind mounted as read-only (RO). Let's use this projects graph:
<--- B <----╮
A D <---╮
<--- C <----╯ |
<---------- E
In this case I have 5 docker containers:
Container A has only main project A (RW) and no dep-projects (RO).
Container B has main project B (RW) and dep-project A (RO).
Container C has main project C (RW) and dep-project A (RO).
Container D has main project D (RW) and 2 dep-projects B and C (RO).
Container E has main project E (RW) and 2 dep-projects D and C (RO).
In each container I'm running rush install and it requires:
All projects (package.json) from rush.json (even if I don't need some of them, I guess this has own tracking issue).
Writeable <project>/.rush/ directory.
To solve the first issue in every container for each project except main I'm bind mounting package.json.
To solve the second issue in every container for each project except main I'm creating writeable volume only for these.rush/ directories. And even container A with no deps has 4 such volumes, just because rush install for some reason requires this.
I'd like to move all these .rush/ to something already writeable, e.g. to common/temp/projects-metadata/projectA/.rush/.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
This seems like this could be a situation that is solved using rush deploy? We have seen other devs use this tool with Docker with much some success. Here's a link to the documentation: https://rushjs.io/pages/commands/rush_deploy/
How do you work around rush install creating the node_modules folder in the container? We don't have much understanding on Docker here, so a repro to experience the situation ourselves would be helpful.
Summary
I'd like to have such option to specify where I want to store all project-related autogenerated data like
.rush/
,.heft/
,*.log
, etc.My use-case:
In my monorepo I'm launching each project in own separate docker container. For this within a container I have a concept of main project and dependencies projects. Main project is bind mounted as read/write (RW), and dep-projects are bind mounted as read-only (RO). Let's use this projects graph:
In this case I have 5 docker containers:
In each container I'm running
rush install
and it requires:package.json
) fromrush.json
(even if I don't need some of them, I guess this has own tracking issue).<project>/.rush/
directory.To solve the first issue in every container for each project except main I'm bind mounting
package.json
.To solve the second issue in every container for each project except main I'm creating writeable volume only for these
.rush/
directories. And even container A with no deps has 4 such volumes, just becauserush install
for some reason requires this.I'd like to move all these
.rush/
to something already writeable, e.g. tocommon/temp/projects-metadata/projectA/.rush/
.Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?/cc @octogonz
The text was updated successfully, but these errors were encountered: