Установка Bitbucket Pipeline npm завершается с ошибкой «npm ERR! Фатально: невозможно получить доступ» - PullRequest
0 голосов
/ 01 мая 2018

Я пытаюсь запустить тестовые случаи в моем приложении узла, используя Bitbucket pipeline следующим образом.

image: channagayan/node_test:latest

pipelines:
  default:
    - step:
        caches:
          - node
        script: # Modify the commands below to build your repository.
          - cd NodeApi && pwd && npm install
          - npm test

Но он не может дать следующую ошибку

+ cd NodeApi && pwd && npm install
/opt/atlassian/pipelines/agent/build/NodeApi
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://git@github.com/peterbraden/node-opencv.git
npm ERR! 
npm ERR! fatal: unable to access 'https://git@github.com/peterbraden/node-opencv.git/': Problem with the SSL CA cert (path? access rights?)
npm ERR! 
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-05-01T09_15_55_789Z-debug.log

Мой Dockerfile выглядит следующим образом,

FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
  build-essential \
  cmake \
  python-software-properties \
  pkg-config \
  wget \


     && rm -rf /var/lib/apt/lists/*

#node installation goes here....

RUN apt-get update && apt-get install -y git

#opencv installation goes here....

ENV LD_LIBRARY_PATH /usr/local/lib

WORKDIR /usr/src/app

EXPOSE 3001

Похоже, что Bitbucket не выходит в Интернет из док-контейнера. Цени любую помощь, чтобы решить эту проблему.

...