Oryx
Oryx copied to clipboard
`npm install` time is snaillike
Bug Report
- At what date and time did you most recently experience the problem?
Right now, while trying to deploy my code to prod. And all of the previous times.
- Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
Azure Web Apps
- If your repo is publicly available please share its URL:
No
- What happened?
npm install
takes waaaaaaaaaaaaayyyyyyy too long during a node.js deployment on Linux.
- What did you expect or want to happen?
Running npm install
on my local machine takes 30s. In the app service deploy the Running oryx build...
step takes 30m.
-
Local machine
-
-
Azure web app
-
-
How can we reproduce it?
Deploy a node.js app via Continuous deployment to Azure App Service
.
- Do you have log output? Please include between the backticks:
Command: oryx build /home/site/repository -o /home/site/wwwroot --platform nodejs --platform-version 18 -p virtualenv_name= --log-file /tmp/build-debug.log -i /tmp/8dc79cc9231d3f5 -p compress_node_modules=tar-gz | tee /tmp/oryx-build.log
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20230508.1, Commit: 7fe2bf39b357dd68572b438a85ca50b5ecfb4592, ReleaseTagName: 20230508.1
Build Operation ID: 0fffd254537f2724
Repository Commit : 9b3c9f88ccf0ebaa48839326ea5334db51050d7e
OS Type : bullseye
Image Type : githubactions
Detecting platforms...
Detected following platforms:
nodejs: 18.19.1
Version '18.19.1' of platform 'nodejs' is not installed. Generating script to install it...
Detected the following frameworks: Express
Using intermediate directory '/tmp/8dc79cc9231d3f5'.
Copying files to the intermediate directory...
Done in 9 sec(s).
Source directory : /tmp/8dc79cc9231d3f5
Destination directory: /home/site/wwwroot
Downloading and extracting 'nodejs' version '18.19.1' to '/tmp/oryx/platforms/nodejs/18.19.1'...
Detected image debian flavor: bullseye.
Downloaded in 1 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: nodejs...
Done in 2 sec(s).
Removing existing manifest file
Creating directory for command manifest file if it does not exist
Creating a manifest file...
Node Build Command Manifest file created.
Using Node version:
v18.19.1
Using Npm version:
10.2.4
Running 'npm install'...
...
... removing this as it contains information about the project
...
added 1265 packages, and audited 1266 packages in 30m
...
... removing this as it contains information about the project
...
Zipping existing node_modules folder...
Done in 21 sec(s).
Preparing output...
Copying files to destination directory '/home/site/wwwroot'...
Done in 10 sec(s).
Removing existing manifest file
Creating a manifest file...
Manifest file created.
Copying .ostype to manifest output directory.
Done in 1857 sec(s).