Configuration 配置SonarQube(Node.JS)从内部服务器下载二进制文件

Configuration 配置SonarQube(Node.JS)从内部服务器下载二进制文件,configuration,sonarqube,binaryfiles,Configuration,Sonarqube,Binaryfiles,我们试图让SonarQube在Docker映像上分析我们的Typescript(Node.JS)项目,但我们遇到了一个错误。如果有帮助,我们将尝试使用Node.JS中的sonarqube扫描模块 遇到的错误如下所示: [17:57:23] Starting analysis... [17:57:24] Getting info from "package.json" file [17:57:24] Checking if executable exists: /root/.s

我们试图让SonarQube在Docker映像上分析我们的Typescript(Node.JS)项目,但我们遇到了一个错误。如果有帮助,我们将尝试使用Node.JS中的sonarqube扫描模块

遇到的错误如下所示:

[17:57:23] Starting analysis...
[17:57:24] Getting info from "package.json" file
[17:57:24] Checking if executable exists: /root/.sonar/native-sonar-scanner/sonar-scanner-4.5.0.2216-linux/bin/sonar-scanner
[17:57:24] Could not find executable in "/root/.sonar/native-sonar-scanner".
[17:57:24] Proceed with download of the platform binaries for SonarScanner...
[17:57:24] Creating /root/.sonar/native-sonar-scanner
[17:57:24] Downloading from https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip
[17:57:24] (executable will be saved in cache folder: /root/.sonar/native-sonar-scanner)
[91m[18:03:53] [0m[91mERROR: impossible to download and extract binary: connect ETIMEDOUT 91.134.125.245:443
[0m[91m[18:03:53] [0m[91m       SonarScanner binaries probably don't exist for your OS (linux).
[0m[91m[18:03:53]        In such situation, the best solution is to install the standard SonarScanner (requires a JVM).
[0m[91m[18:03:53]        Check it out at https://redirect.sonarsource.com/doc/install-configure-scanner.html
现在,如果您从错误中注意到,二进制文件服务器会遇到一个ETIMEDOUT错误,这是因为访问它的服务器来自无法访问外部站点的内部网络

是否可以将SonarQube配置为从内部服务器拉取?如果是这样,我们将如何配置它


非常感谢

我可以在这里通过SonarQube Javascript模块找到文档()

默认情况下,扫描仪二进制文件从下载。要使用自定义镜像,请设置$SONAR\u SCANNER\u mirror。或者下载带有$SONAR\u SCANNER\u版本的精确版本

例如:

输出声纳、扫描仪、镜子=https://npm.taobao.org/mirrors/sonar-scanner/
导出SONAR_SCANNER_VERSION=3.2.0.1227

如果您想将sonarqube与nodejs集成,以分析代码库,发现安全问题、代码气味或任何问题,本文将帮助您进行集成,并生成一份包含详细结果的报告。

我仍然可以访问链接:(它的ip地址为91.134.125.245)。看起来你的声纳在代理或防火墙后面是的,它在代理/防火墙后面。有没有办法配置二进制源url?