Dostaję błąd przy wdrażaniu Elastic Beanstalk, ponieważ nie ma git na instancji. Jedna z zależności w moim pliku package.json jest zależna od repozytorium git i musi być git clone
. Git nie jest zainstalowany w wystąpieniach. Próbowałem zainstalować go poprzez .ebextensions plik .conf podczas wdrażania, poprzez yum
, ale kiedy ssh do instancji go nie ma.Instalowanie git poprzez .ebextensions na Elastic Beanstalk
Pytanie brzmi: jaki jest prawidłowy sposób instalacji i czy istnieje git na instancji Linux działającej na Elastic Beanstalk, zanim zostanie wywołana npm install
?
Oto dziennik ukazujący błąd:
[2015-04-18T09:00:02.815Z] ERROR [1777] : Command execution failed: Activity failed. (ElasticBeanstalk::ActivityFatalError)
caused by: + /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/awslabs/dynamodb-document-js-sdk) undefined
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/awslabs/dynamodb-document-js-sdk) undefined
npm ERR! git clone https://github.com/awslabs/dynamodb-document-js-sdk undefined
npm ERR! git clone https://github.com/awslabs/dynamodb-document-js-sdk undefined
npm ERR! Linux 3.14.35-28.38.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v0.12.0-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v0.12.0-linux-x64/bin/npm" "--production" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
Zobacz [tutaj] (http://stackoverflow.com/questions/13642171/elastic-beanstalk-ruby-raed-to-install-git-so-bundle-install-works-but-i) . –
... i [tutaj] (https://github.com/npm/npm/issues/5967) –
Dzięki @TimBiegeleisen, próbowałem w tym git jako pakiet yum w pliku con .ebextensions, próbowałem drugie podejście także z zależnościami, wciąż takie same. –