Skip to content

Commit b40a1ef

Browse files
committed
[CE-189] Add mongoose support
Add configtx binary in user dashboard Change-Id: I758305c3b324213defb26176303116310bc65c44 Signed-off-by: Haitao Yue <hightall@me.com>
1 parent 1031cb0 commit b40a1ef

File tree

17 files changed

+1288
-16
lines changed

17 files changed

+1288
-16
lines changed

user-dashboard/Dockerfile

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,24 @@
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
6-
FROM hyperledger/cello-baseimage
7-
MAINTAINER li xu cheng "lixucheng@aliyun.com"
6+
FROM node:9.2
7+
MAINTAINER haitao yue "hightall@me.com"
88
RUN npm install -g requirejs
9+
COPY package.json /
10+
RUN cd / && yarn install -g --verbose
11+
RUN yarn add nodemon -g
12+
ENV PATH ${PATH}:/node_modules/.bin
913
RUN mkdir -p /usr/app/src
10-
COPY . /usr/app/src
14+
#COPY . /usr/app/src
1115
WORKDIR /usr/app/src
12-
RUN mv /usr/app/src/js /reactjs && \
13-
cd /reactjs && npm install && npm run build && rm -rf node_modules && \
14-
cd /reactjs/home && npm install && npm run build && rm -rf node_modules && \
15-
cd /usr/app/src && npm install && npm run build && npm cache clean --force
16+
ENV FABRIC_VERSION 1.0.5
17+
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 \
18+
&& tar -zxvf hyperledger-fabric-linux-amd64-${FABRIC_VERSION}.tar.gz && mv bin/configtxgen /usr/local/bin/configtxgen
19+
COPY fabric/fabric /etc/hyperledger/fabric
20+
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
21+
#RUN mv /usr/app/src/js /reactjs && \
22+
# cd /reactjs && npm install && npm run build && rm -rf node_modules && \
23+
# cd /reactjs/home && npm install && npm run build && rm -rf node_modules && \
24+
# cd /usr/app/src && npm install && npm run build && npm cache clean --force
1625
EXPOSE 8080
1726
CMD ["npm", "start"]
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# Copyright IBM Corp. All Rights Reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
6+
---
7+
################################################################################
8+
#
9+
# Profile
10+
#
11+
# - Different configuration profiles may be encoded here to be specified
12+
# as parameters to the configtxgen tool
13+
#
14+
################################################################################
15+
Profiles:
16+
17+
TwoOrgsOrdererGenesis:
18+
Orderer:
19+
<<: *OrdererDefaults
20+
Organizations:
21+
- *OrdererOrg
22+
Consortiums:
23+
SampleConsortium:
24+
Organizations:
25+
- *Org1
26+
- *Org2
27+
TwoOrgsChannel:
28+
Consortium: SampleConsortium
29+
Application:
30+
<<: *ApplicationDefaults
31+
Organizations:
32+
- *Org1
33+
- *Org2
34+
35+
################################################################################
36+
#
37+
# Section: Organizations
38+
#
39+
# - This section defines the different organizational identities which will
40+
# be referenced later in the configuration.
41+
#
42+
################################################################################
43+
Organizations:
44+
45+
# SampleOrg defines an MSP using the sampleconfig. It should never be used
46+
# in production but may be used as a template for other definitions
47+
- &OrdererOrg
48+
# DefaultOrg defines the organization which is used in the sampleconfig
49+
# of the fabric.git development environment
50+
Name: OrdererOrg
51+
52+
# ID to load the MSP definition as
53+
ID: OrdererMSP
54+
55+
# MSPDir is the filesystem path which contains the MSP configuration
56+
MSPDir: crypto-config/ordererOrganizations/example.com/msp
57+
58+
- &Org1
59+
# DefaultOrg defines the organization which is used in the sampleconfig
60+
# of the fabric.git development environment
61+
Name: Org1MSP
62+
63+
# ID to load the MSP definition as
64+
ID: Org1MSP
65+
66+
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
67+
68+
AnchorPeers:
69+
# AnchorPeers defines the location of peers which can be used
70+
# for cross org gossip communication. Note, this value is only
71+
# encoded in the genesis block in the Application section context
72+
- Host: peer0.org1.example.com
73+
Port: 7051
74+
75+
- &Org2
76+
# DefaultOrg defines the organization which is used in the sampleconfig
77+
# of the fabric.git development environment
78+
Name: Org2MSP
79+
80+
# ID to load the MSP definition as
81+
ID: Org2MSP
82+
83+
MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
84+
85+
AnchorPeers:
86+
# AnchorPeers defines the location of peers which can be used
87+
# for cross org gossip communication. Note, this value is only
88+
# encoded in the genesis block in the Application section context
89+
- Host: peer0.org2.example.com
90+
Port: 7051
91+
92+
################################################################################
93+
#
94+
# SECTION: Orderer
95+
#
96+
# - This section defines the values to encode into a config transaction or
97+
# genesis block for orderer related parameters
98+
#
99+
################################################################################
100+
Orderer: &OrdererDefaults
101+
102+
# Orderer Type: The orderer implementation to start
103+
# Available types are "solo" and "kafka"
104+
OrdererType: solo
105+
106+
Addresses:
107+
- orderer.example.com:7050
108+
109+
# Batch Timeout: The amount of time to wait before creating a batch
110+
BatchTimeout: 2s
111+
112+
# Batch Size: Controls the number of messages batched into a block
113+
BatchSize:
114+
115+
# Max Message Count: The maximum number of messages to permit in a batch
116+
MaxMessageCount: 10
117+
118+
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
119+
# the serialized messages in a batch.
120+
AbsoluteMaxBytes: 99 MB
121+
122+
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
123+
# the serialized messages in a batch. A message larger than the preferred
124+
# max bytes will result in a batch larger than preferred max bytes.
125+
PreferredMaxBytes: 512 KB
126+
127+
Kafka:
128+
# Brokers: A list of Kafka brokers to which the orderer connects
129+
# NOTE: Use IP:port notation
130+
Brokers:
131+
- 127.0.0.1:9092
132+
133+
# Organizations is the list of orgs which are defined as participants on
134+
# the orderer side of the network
135+
Organizations:
136+
137+
################################################################################
138+
#
139+
# SECTION: Application
140+
#
141+
# - This section defines the values to encode into a config transaction or
142+
# genesis block for application related parameters
143+
#
144+
################################################################################
145+
Application: &ApplicationDefaults
146+
147+
# Organizations is the list of orgs which are defined as participants on
148+
# the application side of the network
149+
Organizations:

0 commit comments

Comments
 (0)