Проблема сети между контейнерами gitlab-ci

Всем привет! У меня есть этап в gitlab, где я тестирую dev commit на действительность Я использую gitlab-runner в docker, а в runner я использую docker для docker

My stage:

test-dev:
  stage: test
  image: docker:19.03.12
  services:
    - docker:dind
  script:
    - apk add --update npm
    - docker run --rm -d --name=browser_$CI_JOB_ID -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-chrome 
    - npx mocha tests/js/screenshots-* --timeout 50000
    - npx playwright test tests/js/pw_*
    - php artisan test
    - docker stop browser_$CI_JOB_ID

А вот вывод который я получаю из джобы

$ npx mocha tests/js/screenshots-* --timeout 50000
[INFO] Searching for WebDriver executables installed on the current system...
[INFO] ... located chrome
[INFO] Running tests against [chrome]
  [chrome]
    Instagram screenshots
      1) "before all" hook for "Instagram Back to list"
      2) "after all" hook for "Instagram Emoji in comments scrolling"
  [chrome]
    Дополнительные НЕскриншот тесты
      3) "before all" hook for "Подсветка логина во всплывашке"
      4) "after all" hook for "Подсветка логина во всплывашке"
  [chrome]
    TikTok screenshots
      5) "before all" hook for "Back to list"
      6) "after all" hook for "HINT: Here are the main indicators of the channel"
  [chrome]
    Youtube screenshots
      7) "before all" hook for "Back to list"
      8) "after all" hook for "HINT: Here are the main indicators of the channel"
  0 passing (214ms)
  8 failing
  1) [chrome]
       Instagram screenshots
         "before all" hook for "Instagram Back to list":
     Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:295:15)
      at Socket.socketErrorListener (_http_client.js:427:9)
      at emitErrorNT (internal/streams/destroy.js:92:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  2) [chrome]
       Instagram screenshots
         "after all" hook for "Instagram Emoji in comments scrolling":
     TypeError: Cannot read property 'quit' of undefined
      at Context.<anonymous> (tests/js/screenshots-instagram.spec.js:33:40)
      at processImmediate (internal/timers.js:461:21)
  3) [chrome]
       Дополнительные НЕскриншот тесты
         "before all" hook for "Подсветка логина во всплывашке":
     Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:295:15)
      at Socket.socketErrorListener (_http_client.js:427:9)
      at emitErrorNT (internal/streams/destroy.js:92:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  4) [chrome]
       Дополнительные НЕскриншот тесты
         "after all" hook for "Подсветка логина во всплывашке":
     TypeError: Cannot read property 'quit' of undefined
      at Context.<anonymous> (tests/js/screenshots-nonscreen_instagram.spec.js:33:40)
      at processImmediate (internal/timers.js:461:21)
  5) [chrome]
       TikTok screenshots
         "before all" hook for "Back to list":
     Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:295:15)
      at Socket.socketErrorListener (_http_client.js:427:9)
      at emitErrorNT (internal/streams/destroy.js:92:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  6) [chrome]
       TikTok screenshots
         "after all" hook for "HINT: Here are the main indicators of the channel":
     TypeError: Cannot read property 'quit' of undefined
      at Context.<anonymous> (tests/js/screenshots-tiktok.spec.js:32:40)
      at processImmediate (internal/timers.js:461:21)
  7) [chrome]
       Youtube screenshots
         "before all" hook for "Back to list":
     Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:295:15)
      at Socket.socketErrorListener (_http_client.js:427:9)
      at emitErrorNT (internal/streams/destroy.js:92:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  8) [chrome]
       Youtube screenshots
         "after all" hook for "HINT: Here are the main indicators of the channel":
     TypeError: Cannot read property 'quit' of undefined
      at Context.<anonymous> (tests/js/screenshots-youtube.spec.js:32:40)
      at processImmediate (internal/timers.js:461:21)

Как мне расшарить сеть между контейнерами чтобы выполнить тесты?


Ответы (0 шт):