首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在码头集装箱中安装量规js插件时出错

在码头集装箱中安装量规js插件时出错
EN

Stack Overflow用户
提问于 2019-11-07 22:17:50
回答 1查看 645关注 0票数 0

在docker映像中安装get量规js插件时出现错误

我正在尝试用所有用于运行我的套件的工具来创建一个映像,然后将它推到docker,这样我每次运行套件时都不需要构建映像。

下面是我用来构建映像的dockerfile

代码语言:javascript
复制
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插件时,会出现一个错误。

代码语言:javascript
复制
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/. no /config/gege.properties:没有这样的文件或目录

即使有错误,它还是成功地结束了。

EN

回答 1

Stack Overflow用户

发布于 2019-11-08 07:05:08

Gauge试图从~/.gauge/config/gauge.properties文件中读取一些全局属性。如果没有文件存在,或者在从文件中获取属性时出错。它用Failed to get configuration from Gauge properties file记录警告并使用默认属性。

查看文档以配置量规属性。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58757676

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档