Tag: 浏览器自动化

创builddocker文件来运行基于selenium Javascript的testing

我正在尝试创build一个docker文件来运行基于java脚本的项目的seleniumtesting。 下面是我的docker文件到目前为止: #base image FROM selenium/standalone-chrome #access to the project within docker container – Bundle app source COPY ./seleniumTest/project /app # Install Node.js RUN sudo apt-get update RUN sudo apt-get install –yes curl RUN curl –silent –location https://deb.nodesource.com/setup_8.x | sudo bash – #binding EXPOSE 8080 #Define runtime ENTRYPOINT /app/login.test.js 同时构build并运行$ docker run -p 4000:8080 dockertest2镜像: […]

运行docker映像失败

我期望成功运行docker镜像,但无法访问和获取权限拒绝错误,如下所示。 #base image FROM selenium/standalone-chrome # Install Node.js RUN sudo apt-get update RUN sudo apt-get install –yes curl RUN curl –silent –location https://deb.nodesource.com/setup_8.x | sudo bash #Define runtime ENTRYPOINT /app/login.test.js 为什么被拒绝的权限呢? PS:我改变了包含Dockerfile和自动化testingJS文件的cd dir ( cd dir )。