Skip to content

[rush] rush install hangs in docker build #5048

@luoyu2015

Description

@luoyu2015

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)' ?
Image

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
Image
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for Author

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions