在Docker上运行多个柏树套件

发布于 2025-02-11 19:11:46 字数 1054 浏览 0 评论 0原文

我试图在Docker上运行柏树套件,但只有两次跑步中,有没有办法实现多个跑步?

这是撰写文件:

version: '3.2'
services:
  suite1:
    container_name: suite1
    image: 'cyp1'
    environment:
      - CYPRESS_environment=test
    working_dir: /test
    network_mode: 'host'
    volumes:
      - ./:/test
      - /dev/shm:/dev/shm
    command: '--browser chrome --spec cypress/integration/wfo/speech-iq/configuration/**'
  suite2:
    container_name: suite2
    image: 'cyp2'
    environment:
      - CYPRESS_environment=test
    working_dir: /test1
    network_mode: 'host'
    volumes:
      - ./:/test1
      - /dev/shm:/dev/shm
    command: '--browser chrome --spec cypress/integration/siq/speech-iq/configuration/**'

错误:

suite2    | Xvfb exited with a non zero exit code.
suite2    | 
suite2    | There was a problem spawning Xvfb.
suite2    | 
suite2    | This is likely a problem with your system, permissions, or installation of Xvfb.

请建议。谢谢!

I am trying to run cypress suites on docker compose but out of two only one runs, is there a way to fulfill multiple runs?

Here is the compose file:

version: '3.2'
services:
  suite1:
    container_name: suite1
    image: 'cyp1'
    environment:
      - CYPRESS_environment=test
    working_dir: /test
    network_mode: 'host'
    volumes:
      - ./:/test
      - /dev/shm:/dev/shm
    command: '--browser chrome --spec cypress/integration/wfo/speech-iq/configuration/**'
  suite2:
    container_name: suite2
    image: 'cyp2'
    environment:
      - CYPRESS_environment=test
    working_dir: /test1
    network_mode: 'host'
    volumes:
      - ./:/test1
      - /dev/shm:/dev/shm
    command: '--browser chrome --spec cypress/integration/siq/speech-iq/configuration/**'

Error:

suite2    | Xvfb exited with a non zero exit code.
suite2    | 
suite2    | There was a problem spawning Xvfb.
suite2    | 
suite2    | This is likely a problem with your system, permissions, or installation of Xvfb.

Please advise. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文