Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 在docker容器中安装gauge js插件时出错_Node.js_Docker_Getgauge - Fatal编程技术网

Node.js 在docker容器中安装gauge js插件时出错

Node.js 在docker容器中安装gauge js插件时出错,node.js,docker,getgauge,Node.js,Docker,Getgauge,在docker映像中安装getgauge js插件时看到错误 我正在尝试使用所有用于运行套件的工具创建映像,然后将其推送到docker repo,这样我就不必每次运行套件时都构建映像 这是我用来构建图像的dockerfile FROM lambci/lambda:build-nodejs8.10 ENV NODE_PATH=./node_modules/:/var/lang/lib/node_modules RUN npm install -g selenium-webdriver RUN np

在docker映像中安装getgauge js插件时看到错误

我正在尝试使用所有用于运行套件的工具创建映像,然后将其推送到docker repo,这样我就不必每次运行套件时都构建映像

这是我用来构建图像的dockerfile

FROM lambci/lambda:build-nodejs8.10
ENV NODE_PATH=./node_modules/:/var/lang/lib/node_modules
RUN npm install -g selenium-webdriver
RUN npm install  -g @getgauge/cli
RUN gauge install js
RUN gauge install json-report
RUN gauge install html-report
RUN gauge  install screenshot
RUN npm install -g superagent
RUN npm install -g  xlsx
RUN useradd jenkins -u 2000 -ms /bin/bash -d /home/jenkins
USER jenkins
WORKDIR /workspace
然后从dockerfile的同一文件夹中运行
docker build.

当它试图使用
gauge install js
命令安装js插件时,我在步骤中遇到了一个错误


Step 5/15 : RUN npm install  -g @getgauge/cli
 ---> Running in 58ff0c551dd7
/var/lang/bin/gauge -> /var/lang/lib/node_modules/@getgauge/cli/bin/gauge

> @getgauge/cli@1.0.6 install /var/lang/lib/node_modules/@getgauge/cli
> node ./src/index.js

Fetching download url for Gauge version 1.0.6
Downloading https://github.com/getgauge/gauge/releases/download/v1.0.6/gauge-1.0.6-linux.x86_64.zip to ./bin
+ @getgauge/cli@1.0.6
added 83 packages in 13.099s
Removing intermediate container 58ff0c551dd7
 ---> 563ea8be6d39
Step 6/15 : RUN gauge install js
 ---> Running in cf7c3e7899ee

Telemetry
---------

This installation of Gauge collects usage data in order to help us improve your experience.
The data is anonymous and doesn't include command-line arguments.
To turn this message off opt in or out by running 'gauge telemetry on' or 'gauge telemetry off'.

Read more about Gauge telemetry at https://gauge.org/telemetry


2019/11/07 22:06:00 Failed to get configuration from Gauge properties file. Error: open /root/.gauge/config/gauge.properties: no such file or directory
.........
[grpc] Success: "/tmp/gauge_temp1573164361831732000/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node" is installed via remote
added 181 packages in 6.963s
Successfully installed plugin 'js' version 2.3.5
这就是我想知道的-2019/11/07 22:06:00未能从仪表属性文件获取配置。错误:打开/root/.gauge/config/gauge.properties:没有这样的文件或目录


即使出现错误,它也会成功完成。

Gauge尝试从
~/.Gauge/config/Gauge.properties
文件中读取一些全局属性。如果从文件获取属性时不存在文件或出现错误。它将警告记录为
无法从仪表属性文件
获取配置,并使用默认属性

查看以配置仪表属性