Skip to content

Commit

Permalink
FAB-8455 publishes the config files in fabric-binary
Browse files Browse the repository at this point in the history
FAB-8013 This patch creates a config/ directory sibling of bin/, and copies
the config files (*.yaml) to include them in the fabric binary tar
file.

Change-Id: I9c114f8c0a99d36ea8b36e4e01ddab4be9174f9c
Signed-off-by: rameshthoomu <rameshbabu.thoomu@gmail.com>
  • Loading branch information
rameshthoomu committed Feb 23, 2018
1 parent 3d78ddf commit 0c89f7e
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -398,25 +398,14 @@ release/%/install: $(PROJECT_FILES)
@chmod +x $(@D)/bin/get-docker-images.sh

.PHONY: dist
dist: dist-clean release
cd release/$(MARCH) && tar -czvf hyperledger-fabric-$(MARCH).$(PROJECT_VERSION).tar.gz *
dist: dist-clean dist/$(MARCH)

dist-all: dist-clean release-all $(patsubst %,dist/%, $(RELEASE_PLATFORMS))
dist-all: dist-clean $(patsubst %,dist/%, $(RELEASE_PLATFORMS))

dist/windows-amd64:
cd release/windows-amd64 && tar -czvf hyperledger-fabric-windows-amd64.$(PROJECT_VERSION).tar.gz *

dist/darwin-amd64:
cd release/darwin-amd64 && tar -czvf hyperledger-fabric-darwin-amd64.$(PROJECT_VERSION).tar.gz *

dist/linux-amd64:
cd release/linux-amd64 && tar -czvf hyperledger-fabric-linux-amd64.$(PROJECT_VERSION).tar.gz *

dist/linux-ppc64le:
cd release/linux-ppc64le && tar -czvf hyperledger-fabric-linux-ppc64le.$(PROJECT_VERSION).tar.gz *

dist/linux-s390x:
cd release/linux-s390x && tar -czvf hyperledger-fabric-linux-s390x.$(PROJECT_VERSION).tar.gz *
dist/%: release/%
mkdir -p release/$(@F)/config
cp -r sampleconfig/*.yaml release/$(@F)/config
cd release/$(@F) && tar -czvf hyperledger-fabric-$(@F).$(PROJECT_VERSION).tar.gz *

.PHONY: protos
protos: buildenv
Expand Down

0 comments on commit 0c89f7e

Please sign in to comment.