-
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-365] Use eggjs framework rewrite user dashboard
Initial back service for user dashboard, currently only can login, and see empty dashboard page. Removed old unused code in user dashboard. Change-Id: Ia32a1915e3d9ea2db5b8092129cf45d2e7bc114f Signed-off-by: Haitao Yue <hightall@me.com>
- Loading branch information
Showing
589 changed files
with
4,102 additions
and
28,713 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# web site url for user active link | ||
export ROOT_URL?= | ||
WEBROOT=$(subst $(SLASH),$(REPLACE_SLASH),$(ROOT_URL)) | ||
export USER_DASHBOARD_WEBROOT?=/ |
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
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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ COPY src /app | |
RUN cd /app/ && \ | ||
pip install -r requirements.txt && \ | ||
rm -rf /tmp/cello | ||
WORKDIR /app |
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 |
---|---|---|
@@ -1,42 +1,20 @@ | ||
FROM node:8.9 as build_login | ||
MAINTAINER haitao yue "hightall@me.com" | ||
COPY . /tmp/cello | ||
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:8.9 as build_home | ||
MAINTAINER haitao yue "hightall@me.com" | ||
COPY . /tmp/cello | ||
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:8.9 as build_dashboard | ||
MAINTAINER haitao yue "hightall@me.com" | ||
COPY . /tmp/cello | ||
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 | ||
|
||
# Copyright IBM Corp, All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
FROM node:8.9 | ||
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 | ||
COPY user-dashboard/src/package.json / | ||
RUN cd / && yarn install -g | ||
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 | ||
COPY user-dashboard/src /var/www | ||
RUN cd /var/www && ln -sf /node_modules . && npm run build | ||
WORKDIR /var/www | ||
EXPOSE 8080 | ||
|
||
ENV FABRIC_VERSION 1.0.5 | ||
RUN cd /tmp && ARCH=$(echo "$(uname -s|tr '[:upper:]' '[:lower:]'|sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')" | awk '{print tolower($0)}') && echo $ARCH &&wget -c https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${FABRIC_VERSION}/hyperledger-fabric-${ARCH}-${FABRIC_VERSION}.tar.gz && tar -zxvf hyperledger-fabric-${ARCH}-${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 user-dashboard/fabric/fabric /etc/hyperledger/fabric | ||
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric | ||
EXPOSE 8080 | ||
CMD ["npm", "start"] | ||
|
||
CMD ln -sf /node_modules . && npm run 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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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,10 @@ | ||
|
||
# Copyright IBM Corp, All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
FROM node:8.11 | ||
MAINTAINER haitao yue "hightall@me.com" | ||
COPY src/package.json / | ||
RUN cd / && npm install --only=dev | ||
CMD bash -c "ln -sf /node_modules /var/www/node_modules && cd /var/www && npm run lint && npm run lint:ui && rm -rf node_modules" |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.