forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-2826] Add support for $(DOCKER_NS)
This patch makes it possible to consistently override the namespace of the resulting docker images and the linkages between containers using two new environment variables: BASE_DOCKER_NS DOCKER_NS The default for each is 'hyperledger', which means that by default this patch has no effect. However, a user/CI-process may opt to override this by setting [BASE_]DOCKER_NS to something else. For example: ```DOCKER_NS=nexus.hyperledger.org:5000/ghaskins make docker``` would produce all images under this namespace, like nexus.hyperledger.org:5000/ghaskins/fabric-peer nexus.hyperledger.org:5000/ghaskins/fabric-orderer nexus.hyperledger.org:5000/ghaskins/fabric-ccenv nexus.hyperledger.org:5000/ghaskins/fabric-javaenv Perhaps more importantly, the peer build would provide the variable subsitution for $([BASE_]DOCKER_NS) in the yaml configuration such that the peer may be linked to the proper chaincode container without requiring the yaml file to be rejiggered. Fixes FAB-2826 Change-Id: I532726e726939bac18c15b92f231add4dd80a482 Signed-off-by: Greg Haskins <[email protected]>
- Loading branch information
Showing
16 changed files
with
45 additions
and
34 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
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 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,3 +1,3 @@ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
FROM _BASE_NS_/fabric-baseimage:_BASE_TAG_ | ||
COPY payload/protoc-gen-go /usr/local/bin/ | ||
ADD payload/gotools.tar.bz2 /usr/local/bin/ |
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,4 @@ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
FROM _BASE_NS_/fabric-baseimage:_BASE_TAG_ | ||
COPY payload/chaintool payload/protoc-gen-go /usr/local/bin/ | ||
ADD payload/goshim.tar.bz2 $GOPATH/src/ | ||
RUN mkdir -p /chaincode/input /chaincode/output |
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 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