Skip to content

Commit b0633b7

Browse files
FAB-7234 remove couchdb, kafka, zk from build
This should be merged after https://gerrit.hyperledger.org/r/c/15637/ remove couchdb, kafka, zk from build add in pull and tag for published images Change-Id: I3e63eb67ee31c154ccab98ee130fd92f7855c092 Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
1 parent 8e8a8d8 commit b0633b7

File tree

11 files changed

+16
-592
lines changed

11 files changed

+16
-592
lines changed

Makefile

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# - unit-test-clean - cleans unit test state (particularly from docker)
3737

3838
BASE_VERSION = 1.1.0-alpha
39-
PREV_VERSION = 1.0.0-preview
39+
PREV_VERSION = 1.1.0-preview
4040
# Allow to build as a submodule setting the main project to
4141
# the PROJECT_NAME env variable, for example,
4242
# export PROJECT_NAME=hyperledger/fabric-test
@@ -95,7 +95,7 @@ PROJECT_FILES = $(shell git ls-files | grep -v ^test | grep -v ^unit-test | \
9595
grep -v ^.git | grep -v ^examples | grep -v ^devenv | grep -v .png$ | \
9696
grep -v ^LICENSE )
9797
RELEASE_TEMPLATES = $(shell git ls-files | grep "release/templates")
98-
IMAGES = peer orderer ccenv javaenv buildenv testenv zookeeper kafka couchdb tools
98+
IMAGES = peer orderer ccenv javaenv buildenv testenv tools
9999
RELEASE_PLATFORMS = windows-amd64 darwin-amd64 linux-amd64 linux-ppc64le linux-s390x
100100
RELEASE_PKGS = configtxgen cryptogen configtxlator peer orderer
101101

@@ -114,6 +114,15 @@ checks: license spelling linter unit-test behave
114114

115115
desk-check: license spelling linter verify behave
116116

117+
.PHONY: docker-thirdparty
118+
docker-thirdparty:
119+
docker pull $(DOCKER_NS)/fabric-couchdb:$(PREV_TAG)
120+
docker tag $(DOCKER_NS)/fabric-couchdb:$(PREV_TAG) $(DOCKER_NS)/fabric-couchdb
121+
docker pull $(DOCKER_NS)/fabric-zookeeper:$(PREV_TAG)
122+
docker tag $(DOCKER_NS)/fabric-zookeeper:$(PREV_TAG) $(DOCKER_NS)/fabric-zookeeper
123+
docker pull $(DOCKER_NS)/fabric-kafka:$(PREV_TAG)
124+
docker tag $(DOCKER_NS)/fabric-kafka:$(PREV_TAG) $(DOCKER_NS)/fabric-kafka
125+
117126
.PHONY: spelling
118127
spelling:
119128
@scripts/check_spelling.sh
@@ -163,25 +172,20 @@ buildenv: build/image/buildenv/$(DUMMY)
163172
build/image/testenv/$(DUMMY): build/image/buildenv/$(DUMMY)
164173
testenv: build/image/testenv/$(DUMMY)
165174

166-
couchdb: build/image/couchdb/$(DUMMY)
167-
168-
kafka: build/image/kafka/$(DUMMY)
169-
170-
zookeeper: build/image/zookeeper/$(DUMMY)
171-
172-
unit-test: unit-test-clean peer-docker testenv couchdb
175+
unit-test: unit-test-clean peer-docker testenv
173176
cd unit-test && docker-compose up --abort-on-container-exit --force-recreate && docker-compose down
174177

175178
unit-tests: unit-test
176179

177-
verify: unit-test-clean peer-docker testenv couchdb
180+
verify: unit-test-clean peer-docker testenv
178181
cd unit-test && JOB_TYPE=VERIFY docker-compose up --abort-on-container-exit --force-recreate && docker-compose down
179182

180183
# Generates a string to the terminal suitable for manual augmentation / re-issue, useful for running tests by hand
181184
test-cmd:
182185
@echo "go test -tags \"$(GO_TAGS)\" -ldflags \"$(GO_LDFLAGS)\""
183186

184-
docker: $(patsubst %,build/image/%/$(DUMMY), $(IMAGES))
187+
docker: docker-thirdparty $(patsubst %,build/image/%/$(DUMMY), $(IMAGES))
188+
185189
native: peer orderer configtxgen cryptogen configtxlator
186190

187191
behave-deps: docker peer build/bin/block-listener configtxgen cryptogen
@@ -259,12 +263,6 @@ build/image/testenv/payload: build/docker/bin/orderer \
259263
build/docker/bin/peer \
260264
build/sampleconfig.tar.bz2 \
261265
images/testenv/install-softhsm2.sh
262-
build/image/zookeeper/payload: images/zookeeper/docker-entrypoint.sh
263-
build/image/kafka/payload: images/kafka/docker-entrypoint.sh \
264-
images/kafka/kafka-run-class.sh
265-
build/image/couchdb/payload: images/couchdb/docker-entrypoint.sh \
266-
images/couchdb/local.ini \
267-
images/couchdb/vm.args
268266
build/image/tools/payload: build/docker/bin/cryptogen \
269267
build/docker/bin/configtxgen \
270268
build/docker/bin/configtxlator \

docker-env.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ BASE_DOCKER_TAG=$(ARCH)-$(BASEIMAGE_RELEASE)
5858

5959
DOCKER_NS ?= hyperledger
6060
DOCKER_TAG=$(ARCH)-$(PROJECT_VERSION)
61+
PREV_TAG=$(ARCH)-$(PREV_VERSION)
6162

6263
BASE_DOCKER_LABEL=org.hyperledger.fabric
6364

images/couchdb/Dockerfile.in

Lines changed: 0 additions & 80 deletions
This file was deleted.

images/couchdb/docker-entrypoint.sh

Lines changed: 0 additions & 49 deletions
This file was deleted.

images/couchdb/local.ini

Lines changed: 0 additions & 73 deletions
This file was deleted.

images/couchdb/vm.args

Lines changed: 0 additions & 28 deletions
This file was deleted.

images/kafka/Dockerfile.in

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)