Skip to content

docker build fails: git not found #7

@dwlf

Description

@dwlf

build fails: git not found

$ docker build -t try-cb-nodejs .
Sending build context to Docker daemon 5.433 MB
Sending build context to Docker daemon 
Step 0 : FROM couchbase/server:enterprise-4.0.0-dp
 ---> cddf829eb26a
Step 1 : RUN yum -y install gcc-c++
 ---> Using cache
 ---> 9163a4325c0e
Step 2 : RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D 114F43EE0176B71C7BC219DD50A3051F888C628D
 ---> Using cache
 ---> 17949afdf1c5
Step 3 : ENV NODE_VERSION 0.12.2
 ---> Using cache
 ---> e33190953f72
Step 4 : ENV NPM_VERSION 2.9.1
 ---> Using cache
 ---> d504859a25bf
Step 5 : RUN curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz"     && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc"     && gpg --verify SHASUMS256.txt.asc     && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c -     && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1     && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc     && npm install -g npm@"$NPM_VERSION"     && npm cache clear
 ---> Using cache
 ---> 3a0130efc417
Step 6 : RUN mkdir -p /usr/src/app
 ---> Using cache
 ---> 9317639303d6
Step 7 : WORKDIR /usr/src/app
 ---> Using cache
 ---> 53d64700e003
Step 8 : COPY . /usr/src/app
 ---> Using cache
 ---> d15f852625f4
Step 9 : RUN npm install
 ---> Running in 8d1603acd83c
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/couchbaselabs/node-ottoman.git /root/.npm/_git-remotes/https-github-com-couchbaselabs-node-ottoman-git-e8084cb5: undefined
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/couchbaselabs/node-ottoman.git /root/.npm/_git-remotes/https-github-com-couchbaselabs-node-ottoman-git-e8084cb5: undefined
npm ERR! Linux 4.0.5-boot2docker
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.9.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.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/src/app/npm-debug.log
The command '/bin/sh -c npm install' returned a non-zero code: 1
$ docker inspect d504859a25bf | grep PACK
            "CB_PACKAGE=couchbase-server-enterprise-4.0.0-dp-centos7.x86_64.rpm",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions