Skip to content

Commit

Permalink
[CE-357] Fix user dashboard fabric client not work
Browse files Browse the repository at this point in the history
Add yarn.lock file to install special version packages.
Remove package.json for user dashboard in dockerhub.

Change-Id: I34bd007a6fe84702cc552c6bb3f7cb66f52d0d11
Signed-off-by: Haitao Yue <hightall@me.com>
  • Loading branch information
hightall committed May 9, 2018
1 parent 47f3cc6 commit 4b251f0
Show file tree
Hide file tree
Showing 5 changed files with 5,416 additions and 63 deletions.
1 change: 1 addition & 0 deletions docker/user-dashboard/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ MAINTAINER haitao yue "hightall@me.com"
RUN npm install -g requirejs
COPY . /tmp/cello
COPY user-dashboard/package.json /
COPY user-dashboard/yarn.lock /
RUN cd / && yarn install -g --verbose
ENV PATH ${PATH}:/node_modules/.bin
RUN mkdir -p /usr/app
Expand Down
3 changes: 1 addition & 2 deletions dockerhub/latest/user-dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ FROM node:8.9
MAINTAINER haitao yue "hightall@me.com"
RUN npm install -g requirejs
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git
COPY package.json /
RUN cd / && yarn install -g --verbose
RUN cp /tmp/cello/user-dashboard && cp package.json yarn.lock / && cd / && yarn install -g --verbose
ENV PATH ${PATH}:/node_modules/.bin
RUN mkdir -p /usr/app
RUN cp -r /tmp/cello/user-dashboard /usr/app/src
Expand Down
59 changes: 0 additions & 59 deletions dockerhub/latest/user-dashboard/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions user-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"socket.io": "^2.0.4",
"moment": "^2.19.1",
"moment-range": "^3.0.3",
"fabric-client": "^1.0.4",
"fabric-ca-client": "^1.0.4",
"fabric-client": "1.0.5",
"fabric-ca-client": "1.0.5",
"log4js": "^0.6.38",
"uuid4": "^1.0.0",
"fs-extra": "^4.0.2",
Expand Down
Loading

0 comments on commit 4b251f0

Please sign in to comment.