Skip to content

Unable to build bitgo express docker image 9.7.4 #929

@ma1uta

Description

@ma1uta

Environment Details

  • Linux 5.8.0-3-amd64 SMP Debian 5.8.14-1 (2020-10-10) x86_64 GNU/Linux
  • node.js from Dockerfile
  • yarn from Dockerfile
  • 9.7.4
  • testnet and mainnet

Expected Behavior

Successful build docker image for 9.7.4

Current Behavior

Sending build context to Docker daemon   25.4MB
Step 1/14 : FROM node:10 AS builder
 ---> 56387899b840
Step 2/14 : MAINTAINER Tyler Levine <tyler@bitgo.com>
 ---> Using cache
 ---> 830ea64af7d8
Step 3/14 : COPY --chown=node:node . /tmp/bitgo/
 ---> 6e8dc97d9959
Step 4/14 : WORKDIR /tmp/bitgo/modules/express
 ---> Running in fba13c0f8550
Removing intermediate container fba13c0f8550
 ---> c8732dd13b6e
Step 5/14 : RUN npm install npm@latest -g
 ---> Running in c1e9a15dabef
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.14.8
added 17 packages from 3 contributors, removed 18 packages and updated 20 packages in 343.511s
Removing intermediate container c1e9a15dabef
 ---> 8a1c3a2f9687
Step 6/14 : USER node
 ---> Running in 677ed8675377
Removing intermediate container 677ed8675377
 ---> 9eacabe9dd17
Step 7/14 : RUN npm ci && npm prune --production
 ---> Running in b29a3f518a06
npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! 
npm ERR! Invalid: lock file's bitgo@11.6.0 does not satisfy bitgo@^11.7.0
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2020-10-21T05_47_08_170Z-debug.log
The command '/bin/sh -c npm ci && npm prune --production' returned a non-zero code: 1

Possible Solution

"bitgo": "^11.7.0",
requires bitgo 11.7.0
"version": "11.6.0",
requires bitgo 11.6.0
Use the same version bitgo.

Steps to Reproduce

  1. git clone git@github.com:BitGo/BitGoJS.git
  2. git checkout @bitgo/express@9.7.4
  3. docker build -t bitgo-express-latest .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions