Skip to content

Commit 433834c

Browse files
author
Krishna Harsha Voora
committed
Initial fix for FAB-1413.
Use platform specific testenv image as base image for orderer kafka behave tests instead of using x86_64 specific openjre image. This ensures 'make behave' works on all platforms (x86_64, ppc64le and s390x). Change-Id: Ib12a3e1162b0bbec19f7c17cd35b2a91dc9afa74 Signed-off-by: Krishna Harsha Voora <[email protected]>
1 parent 4a156cc commit 433834c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ BEHAVE_ENVIRONMENTS = kafka orderer-1-kafka-1 orderer-1-kafka-3
108108
.PHONY: behave-environments $(BEHAVE_ENVIRONMENTS)
109109
behave-environments: $(BEHAVE_ENVIRONMENTS)
110110
$(BEHAVE_ENVIRONMENTS):
111+
@echo "# Generated from Dockerfile.in. DO NOT EDIT!" > bddtests/environments/kafka/Dockerfile
112+
@cat bddtests/environments/kafka/Dockerfile.in | \
113+
sed -e "s|_DOCKER_TAG_|$(DOCKER_TAG)|" >> bddtests/environments/kafka/Dockerfile
111114
@docker-compose --file bddtests/environments/$@/docker-compose.yml build
112115

113116
behave-deps: docker peer build/bin/block-listener behave-environments

bddtests/environments/kafka/Dockerfile bddtests/environments/kafka/Dockerfile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:8u111-jre
1+
FROM hyperledger/fabric-testenv:_DOCKER_TAG_
22

33
ENV SCALA_VERSION=2.11 \
44
KAFKA_VERSION=0.9.0.1 \

0 commit comments

Comments
 (0)