-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Improve docker build/experience"
- Loading branch information
Showing
5 changed files
with
71 additions
and
26 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
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,7 +1,7 @@ | ||
FROM hyperledger/fabric-cop-runtime:_TAG_ | ||
ENV COP_HOME /etc/hyperledger/fabric-cop | ||
RUN mkdir -p /etc/hyperledger/fabric-cop | ||
COPY payload/fabric-cop /usr/local/bin | ||
RUN mv /usr/local/bin/fabric-cop /usr/local/bin/cop | ||
RUN mkdir -p $COP_HOME /var/hyperledger/fabric-cop | ||
COPY payload/cop /usr/local/bin | ||
ADD payload/sampleconfig.tar.bz2 $COP_HOME | ||
EXPOSE 8888 | ||
CMD cop | ||
CMD cop server start -address 0.0.0.0 -config $COP_HOME/cop.json |
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,3 @@ | ||
This directory contains sample configuration data for COP. | ||
|
||
These files will ultimately be loaded as the default in the docker container under /etc/hyperledger/fabric-cop. It is intended that these files will be replaced for production deployment, such as with a volume mount or derived image. |
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,23 @@ | ||
{ | ||
"tls_disable":true, | ||
"users": { | ||
"admin": { | ||
"pass": "adminpw", | ||
"type": "client", | ||
"group": "bank_a", | ||
"attrs": [{"name":"hf.Registrar.Roles","value":"client,peer,validator,auditor"}, {"name":"hf.Registrar.DelegateRoles", "value": "client"}] | ||
} | ||
}, | ||
"groups": { | ||
"banks_and_institutions": { | ||
"banks": ["bank_a", "bank_b", "bank_c"], | ||
"institutions": ["institution_a"] | ||
} | ||
}, | ||
"signing": { | ||
"default": { | ||
"usages": ["cert sign"], | ||
"expiry": "8000h" | ||
} | ||
} | ||
} |
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,20 @@ | ||
{ | ||
"hosts": [ | ||
"myhost.com", | ||
"www.myhost.com" | ||
], | ||
"CN": "admin", | ||
"key": { | ||
"algo": "ecdsa", | ||
"size": 256 | ||
}, | ||
"names": [ | ||
{ | ||
"O": "Hyperledger Fabric", | ||
"OU": "COP", | ||
"L": "Raleigh", | ||
"ST": "North Carolina", | ||
"C": "US" | ||
} | ||
] | ||
} |