rushstack
rushstack copied to clipboard
[rush] rush install hangs in docker build
Summary
I meet a issue with rush in my CI flow, there is a step "node common/scripts/install-run-rush.js install" in my dockerfile, the ci build with the command docker build, and sometimes this step seems to run succcessfully with output of 'Rush install finished successfully. (33.91 seconds)', but after that it doesn't exit.
Is there something rush still do after rush install output 'rush install finished successfully. (33.91 seconds)' ?
Repro steps
Dockerfile
FROM node:16.15.1-slim as builder
ARG CI_FE_DEBUG
ARG CI_COMMIT_SHA
ARG REPO_GIT_REMOTE_ADDRESS
WORKDIR /home/homework/
COPY . /home/homework/
RUN node common/scripts/install-run-rush.js --help
RUN node common/scripts/install-run-rush.js install
CI command:
docker build -t test .
Expected result: the docker build finish after rush install
Actual result:
as in the docker top screenshot, the rush install doesn't exit and docker build hangs
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@microsoft/rush globally installed version? |
5.129.7 |
rushVersion from rush.json? |
5.129.7 |
useWorkspaces from rush.json? |
true |
| Operating system? | Linux |
| Would you consider contributing a PR? | |
Node.js version (node -v)? |
v16.15.1 |