-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUILD] Refactor make to simplify rules
It is not strictly necessary to create the -src base image since we can just use a volume mount in its place. There is also quite a bit of repetition in the build process right now. Therefore, this patch refactors the build to eliminate the -src image as well as consolidates/simplifies a few things. This sets the stage for more precise Dockerfile tunings (such as EXPOSE/CMD on a per-daemon basis) Change-Id: Ib0ff8e461eb4ba661b201eb519609b3f35ceab13 Signed-off-by: Greg Haskins <gregory.haskins@gmail.com>
- Loading branch information
Showing
7 changed files
with
50 additions
and
71 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
COPY bin/* /usr/local/bin/ | ||
ADD goshim.tar.bz2 $GOPATH/src/ | ||
COPY payload/chaintool payload/protoc-gen-go /usr/local/bin/ | ||
ADD payload/goshim.tar.bz2 $GOPATH/src/ |
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,7 @@ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
RUN mkdir -p /var/hyperledger/db /etc/hyperledger/fabric | ||
COPY payload/orderer /usr/local/bin | ||
COPY payload/orderer.yaml /etc/hyperledger/fabric | ||
WORKDIR /etc/hyperledger/fabric | ||
EXPOSE 5151 | ||
CMD orderer |
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,7 @@ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
ENV PEER_CFG_PATH /etc/hyperledger/fabric | ||
RUN mkdir -p /var/hyperledger/db $PEER_CFG_PATH/msp | ||
COPY payload/peer /usr/local/bin | ||
COPY payload/core.yaml $PEER_CFG_PATH | ||
COPY payload/peer-config.json $PEER_CFG_PATH/msp | ||
CMD peer node start |
This file was deleted.
Oops, something went wrong.