compose icon indicating copy to clipboard operation
compose copied to clipboard

Generating package-lock.json for production branch with mounted volumes during build

Open jelafi opened this issue 6 years ago • 2 comments

Hi,

I'm facing following issue. When I branch my project for a production release I want to be sure which packages are used via npm install. For that reason I do not want to use npm i anymore during each build of the branch but to use npm ci. npm ci is then relying on the package-lock.json

But first for that the day I create the branch I have to genearte all the packe-lock.json. That can be done manually and locally (but is not convenient if I create often new branches). That's why I wanted to create a build that I run once. Idea of this build is to start a build for the whole project (with docker-compose) and mounting the source code volumes. Doing that I'm able to copy in the source code repository all the packages-lock.json

After this intitial branching build I can run a stable build regularly using npm ci.

Without mounting the volumes in the docker-compose I have today to install curl everywhere in the dockers in order to copy the package-lock.json in my binary repo. Then manually I have to copy all the package-lock.json into every source code directory.

This way is very inconvenient.

Wish is to have the possibility during build to mount a volume

The possibility to declare intermediate dockers during build what has been the answers to previous requests for requesting volume mounting during build does not apply here as this is not about the size of the docker but the possibility to create an artifact for generating automatically stable branches.

Thanks for considering this request.

jelafi avatar Apr 24 '20 11:04 jelafi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 17 '22 15:04 stale[bot]

This issue has been automatically closed because it had not recent activity during the stale period.

stale[bot] avatar Apr 25 '22 12:04 stale[bot]