nisheldo commented on code in PR #22623:
URL: https://github.com/apache/superset/pull/22623#discussion_r1067267954
##########
Dockerfile:
##########
@@ -23,6 +23,7 @@ FROM node:16-slim AS superset-node
ARG NPM_BUILD_CMD="build"
ENV BUILD_CMD=${NPM_BUILD_CMD}
+ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
Review Comment:
@villebro - this is the error you get without the fix
> [superset-node 7/8] RUN /frontend-mem-nag.sh && cd
/app/superset-frontend && npm ci:
#18 0.141 Memory check Ok [12.1407 GB free]
#18 108.2 npm notice
#18 108.2 npm notice New major version of npm available! 7.24.2 -> 9.2.0
#18 108.2 npm notice Changelog:
<https://github.com/npm/cli/releases/tag/v9.2.0>
#18 108.2 npm notice Run `npm install -g [email protected]` to update!
#18 108.2 npm notice
#18 108.2 npm ERR! code 1
#18 108.2 npm ERR! path /app/superset-frontend/node_modules/puppeteer
#18 108.2 npm ERR! command failed
#18 108.2 npm ERR! command sh -c node install.js
#18 108.2 npm ERR! The chromium binary is not available for arm64.
#18 108.2 npm ERR! If you are on Ubuntu, you can install with:
#18 108.2 npm ERR!
#18 108.2 npm ERR! sudo apt install chromium
#18 108.2 npm ERR!
#18 108.2 npm ERR!
#18 108.2 npm ERR! sudo apt install chromium-browser
#18 108.2 npm ERR!
#18 108.2 npm ERR!
/app/superset-frontend/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
#18 108.2 npm ERR! throw new Error();
#18 108.2 npm ERR! ^
#18 108.2 npm ERR!
#18 108.2 npm ERR! Error
#18 108.2 npm ERR! at
/app/superset-frontend/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115:27
#18 108.2 npm ERR! at FSReqCallback.oncomplete (node:fs:202:21)
#18 108.3
#18 108.3 npm ERR! A complete log of this run can be found in:
#18 108.3 npm ERR! /root/.npm/_logs/2023-01-11T17_24_26_860Z-debug.log
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]