-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-215] Enable user-dashboard in dockerhub
Change-Id: Ia03c2f02206098cac04cfb7869e5e8708638bf7e Signed-off-by: sally <lujjiang@cn.ibm.com>
- Loading branch information
Showing
2 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright IBM Corp, All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
FROM node:9.2 as build_login | ||
MAINTAINER haitao yue "hightall@me.com" | ||
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git | ||
RUN cp -r /tmp/cello/user-dashboard/js /app | ||
RUN mkdir -p /usr/app | ||
RUN cp -r /tmp/cello/user-dashboard /usr/app/src | ||
RUN cd /app && npm install --loglevel http && npm run build | ||
|
||
FROM node:9.2 as build_home | ||
MAINTAINER haitao yue "hightall@me.com" | ||
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git | ||
RUN cp -r /tmp/cello/user-dashboard/js /app | ||
RUN mkdir -p /usr/app | ||
RUN cp -r /tmp/cello/user-dashboard /usr/app/src | ||
RUN cd /app/home && npm install --loglevel http && npm run build | ||
|
||
FROM node:9.2 as build_dashboard | ||
MAINTAINER haitao yue "hightall@me.com" | ||
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git | ||
RUN cp -r /tmp/cello/user-dashboard/js /app | ||
RUN mkdir -p /usr/app | ||
RUN cp -r /tmp/cello/user-dashboard /usr/app/src | ||
RUN cd /app/dashboard && npm install --loglevel http && npm run build | ||
|
||
FROM node:9.2 | ||
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 | ||
ENV PATH ${PATH}:/node_modules/.bin | ||
RUN mkdir -p /usr/app | ||
RUN cp -r /tmp/cello/user-dashboard /usr/app/src | ||
WORKDIR /usr/app/src | ||
ENV FABRIC_VERSION 1.0.5 | ||
RUN cd /tmp && wget -c https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-amd64-${FABRIC_VERSION}/hyperledger-fabric-linux-amd64-${FABRIC_VERSION}.tar.gz \ | ||
&& tar -zxvf hyperledger-fabric-linux-amd64-${FABRIC_VERSION}.tar.gz && mv bin/configtxgen /usr/local/bin/configtxgen | ||
RUN mkdir -p /etc/hyperledger | ||
RUN cp -r /tmp/cello/user-dashboard/fabric/fabric /etc/hyperledger/fabric | ||
COPY --from=build_login /usr/app/src/src/public/js/dist /usr/app/src/src/public/js/dist | ||
COPY --from=build_home /usr/app/src/src/public/js/dist /usr/app/src/src/public/js/dist | ||
COPY --from=build_dashboard /usr/app/src/src/public/js/dist /usr/app/src/src/public/js/dist | ||
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric | ||
EXPOSE 8080 | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"name": "bc-dashboard", | ||
"version": "1.0.0", | ||
"description": "It is the nodeJS version of blockchain dashboard", | ||
"main": "dist", | ||
"dependencies": { | ||
"body-parser": "^1.17.1", | ||
"cookie-parser": "^1.4.3", | ||
"express": "^4.15.2", | ||
"express-session": "^1.15.2", | ||
"gridfs-stream": "^1.1.1", | ||
"mongodb": "^2.2.26", | ||
"mongoose": "^4.13.2", | ||
"multer": "^1.3.0", | ||
"multer-gridfs-storage": "^1.1.1", | ||
"node-uuid": "^1.4.8", | ||
"pug": "^2.0.0-rc.1", | ||
"winston": "^2.3.1", | ||
"request": "^2.81.0", | ||
"consolidate": "^0.14.5", | ||
"swig": "^1.4.2", | ||
"cors": "^2.8.4", | ||
"nodemailer": "^4.2.0", | ||
"socket.io": "^2.0.4", | ||
"moment": "^2.19.1", | ||
"moment-range": "^3.0.3", | ||
"fabric-client": "^1.0.2", | ||
"fabric-ca-client": "^1.0.2", | ||
"log4js": "^0.6.38", | ||
"uuid4": "^1.0.0", | ||
"fs-extra": "^4.0.2", | ||
"express-bearer-token": "^2.1.0", | ||
"express-jwt": "^5.1.0", | ||
"jsonwebtoken": "^7.3.0", | ||
"shelljs": "^0.7.8", | ||
"jsonfile": "^4.0.0", | ||
"rimraf": "^2.6.2", | ||
"express-request-language": "^1.1.15", | ||
"sleep-promise": "^2.0.0", | ||
"request-promise": "^4.2.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.9.0", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"babel-plugin-transform-runtime": "^6.0.0", | ||
"eslint": "^3.1.1", | ||
"pm2": "^2.9.1", | ||
"nodemon": "^1.12.1" | ||
}, | ||
"scripts": { | ||
"start": "pm2 --interpreter babel-node start src/index.js --no-daemon", | ||
"build": "babel src -s --ignore src/public -D -d dist && cp -r src/public dist/", | ||
"dev": "pm2 --interpreter babel-node start src/index.js --no-daemon --watch", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "hightall", | ||
"license": "ISC" | ||
} |