Gitlab pipeline running very slow

  docker, gitlab, gitlab-ce, gitlab-ci-runner, gitlab-ee

I am using Gitlab as my DevOps platform and running pipeline in docker container. So i am using docker executor and my runner is running as a docker container.
Below is my gitlab-ci.yml file which is doing nothing but npm install cypress

stages:
  - release

release:
  image: node:12.19.0
  stage: release
  only:
    refs:
      - master
      - alpha
      - /^(([0-9]+).)?([0-9]+).x/
      - /^([0-9]+).([0-9]+).([0-9]+)(?:-([0-9A-Za-z-]+(?:.[0-9A-Za-z-]+)*))?(?:+[0-9A-Za-z-]+)?$/
  before_script:
    - export http_proxy=http://17.14.45.41:8080/
    - export https_proxy=http://17.14.45.41:8080/
    - echo 'strict-ssl=false'>>.npmrc
  script:
    # - npm ci
    - npm install cypress

When i run this job, it takes almost 12 minutes which is hell lot of time. My Gitlab is self hosted and I am using proxy to talk to outside world but I don’t think proxy has any issue because when i do docker pull it works fine and runs instantly.

I don’t know if there is anything I could do or I am missing in Gitlab configuration but if anyone has any ideas please let me know. That will be great help.

Source: Docker Questions

LEAVE A COMMENT