Docker cypress ci缺少libgtk-x11-2.0.so.0

Docker cypress ci缺少libgtk-x11-2.0.so.0,docker,circleci,cypress,Docker,Circleci,Cypress,我在用圆词跑柏树。它在使用orb时起作用,但实际上不起作用。我正在尝试启动我的客户端服务器和节点服务器。我好像在docker集装箱里丢了一个包裹什么的 我愿意改回使用cypress orb,但我不知道如何设置它,以便在运行cypress/run > If you are using Docker, we provide containers with all required dependencies installed. ---------- /home/circleci/.cache

我在用圆词跑柏树。它在使用orb时起作用,但实际上不起作用。我正在尝试启动我的客户端服务器和节点服务器。我好像在docker集装箱里丢了一个包裹什么的

我愿意改回使用cypress orb,但我不知道如何设置它,以便在运行
cypress/run

> If you are using Docker, we provide containers with all required dependencies installed.
----------

/home/circleci/.cache/Cypress/3.1.5/Cypress/Cypress: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
----------

Platform: linux (Debian - 8.11)
Cypress Version: 3.1.5
以下是步骤:

docker:
      # specify the version you desire here
      - image: circleci/node:10.8.0
      - image: circleci/postgres:9.6
        environment:
          POSTGRES_USER: postgres
          POSTGRES_DB: dnb
      - image: redis
      - image: cypress/base:10
        environment:
          TERM: xterm
steps:
      - checkout

      - restore_cache:
          keys:
            - v1-deps-{{ .Branch }}-{{ checksum "package.json" }}
            - v1-deps-{{ .Branch }}
            - v1-deps

      - run:
          name: Install Dependencies
          command: npm install

      - save_cache:
          key: v1-deps-{{ .Branch }}-{{ checksum "package.json" }}
          # cache NPM modules and the folder with the Cypress binary
          paths:
            - ~/.npm
            - ~/.cache

      # - run:
      #     name: Run test
      #     command: npm test -- --coverage --forceExit --detectOpenHandles --maxWorkers=10
      #     no_output_timeout: 3m

      # - run:
      #     name: Send codecov coverage report
      #     command: bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info -t

      - run:
          name: run client server
          command: npm start
          background: true

      - run:
          name: Pull server
          command: cd && git clone ....git && ls

      - run:
          name: run node server
          command: cd && cd ..i && npm install && npm run dev:prepare && npm start
          background: true

      - run: npm run cypress:run
docker:
#在此处指定所需的版本
-图:circleci/节点:10.8.0
-图片:circleci/postgres:9.6
环境:
POSTGRES\u用户:POSTGRES
博士后数据库:dnb
-图片:redis
-图片:柏树/底座:10
环境:
术语:xterm
步骤:
-结帐
-还原U缓存:
钥匙:
-v1 deps-{{.Branch}-{{checksum“package.json”}
-v1 deps-{.Branch}
-v1 deps
-运行:
名称:安装依赖项
命令:npm install
-保存缓存:
键:v1 deps-{{.Branch}-{{checksum”package.json}
#使用Cypress二进制文件缓存NPM模块和文件夹
路径:
-~/.npm
-~/.缓存
#-运行:
#名称:运行测试
#命令:npm test--coverage--forceExit--detectOpenHandles--maxWorkers=10
#无输出超时:3m
#-运行:
#名称:发送codecov覆盖率报告

#command:bash您实际上并没有在
cypress/base:10
docker图像中执行cypress

见:

在多映像配置作业中,所有步骤都在由列出的第一个映像创建的容器中执行

您应该尝试以下方法:

docker:
#在此处指定所需的版本
-图片:柏树/底座:10
环境:
术语:xterm
-图片:circleci/postgres:9.6
环境:
POSTGRES\u用户:POSTGRES
博士后数据库:dnb
-图片:redis