Skip to content

Commit

Permalink
Maybe maybe maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
bai committed Feb 1, 2022
1 parent 88343a0 commit 81c1b9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.7'
services:
zookeeper-1:
image: 'confluentinc/cp-zookeeper:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'confluentinc/cp-zookeeper:7.0.1'
restart: always
environment:
ZOOKEEPER_SERVER_ID: '1'
Expand All @@ -13,7 +13,7 @@ services:
ZOOKEEPER_SYNC_LIMIT: '5'
ZOOKEEPER_MAX_CLIENT_CONNS: '0'
zookeeper-2:
image: 'confluentinc/cp-zookeeper:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'confluentinc/cp-zookeeper:7.0.1'
restart: always
environment:
ZOOKEEPER_SERVER_ID: '2'
Expand All @@ -25,7 +25,7 @@ services:
ZOOKEEPER_SYNC_LIMIT: '5'
ZOOKEEPER_MAX_CLIENT_CONNS: '0'
zookeeper-3:
image: 'confluentinc/cp-zookeeper:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'confluentinc/cp-zookeeper:7.0.1'
restart: always
environment:
ZOOKEEPER_SERVER_ID: '3'
Expand All @@ -37,7 +37,7 @@ services:
ZOOKEEPER_SYNC_LIMIT: '5'
ZOOKEEPER_MAX_CLIENT_CONNS: '0'
kafka-1:
image: 'bitnami/kafka:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'bitnami/kafka:${KAFKA_VERSION:-3.1.0}'
restart: always
environment:
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
Expand All @@ -55,7 +55,7 @@ services:
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: 'false'
ALLOW_PLAINTEXT_LISTENER: 'true'
kafka-2:
image: 'bitnami/kafka:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'bitnami/kafka:${KAFKA_VERSION:-3.1.0}'
restart: always
environment:
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
Expand All @@ -73,7 +73,7 @@ services:
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: 'false'
ALLOW_PLAINTEXT_LISTENER: 'true'
kafka-3:
image: 'bitnami/kafka:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'bitnami/kafka:${KAFKA_VERSION:-3.1.0}'
restart: always
environment:
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
Expand All @@ -91,7 +91,7 @@ services:
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: 'false'
ALLOW_PLAINTEXT_LISTENER: 'true'
kafka-4:
image: 'bitnami/kafka:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'bitnami/kafka:${KAFKA_VERSION:-3.1.0}'
restart: always
environment:
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
Expand All @@ -109,7 +109,7 @@ services:
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: 'false'
ALLOW_PLAINTEXT_LISTENER: 'true'
kafka-5:
image: 'bitnami/kafka:${CONFLUENT_PLATFORM_VERSION:-3.1.0}'
image: 'bitnami/kafka:${KAFKA_VERSION:-3.1.0}'
restart: always
environment:
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
Expand Down
2 changes: 1 addition & 1 deletion functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func prepareDockerTestEnvironment(ctx context.Context, env *testEnvironment) err
c := exec.Command("docker-compose", "up", "-d")
c.Stdout = os.Stdout
c.Stderr = os.Stderr
c.Env = append(os.Environ(), fmt.Sprintf("CONFLUENT_PLATFORM_VERSION=%s", env.KafkaVersion))
c.Env = append(os.Environ(), fmt.Sprintf("KAFKA_VERSION=%s", env.KafkaVersion))
err := c.Run()
if err != nil {
return fmt.Errorf("failed to run docker-compose to start test environment: %w", err)
Expand Down

0 comments on commit 81c1b9c

Please sign in to comment.