Skip to content

Commit c775e93

Browse files
authored
add noauth SR instance to docker-compose file (#1130)
1 parent 746e306 commit c775e93

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
The supplied `docker-compose.yaml` can be used to start a schema registry instance
2-
with basic authentication enabled.
1+
The supplied `docker-compose.yaml` can be used to start two schema registry instances
2+
suitable for use with the integration tests, one with no auth (port 8081) and one with
3+
basic auth (port 8082).

test/Confluent.SchemaRegistry.IntegrationTests/docker-compose.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ services:
44
image: confluentinc/cp-zookeeper
55
environment:
66
ZOOKEEPER_CLIENT_PORT: 2181
7+
zookeeper_2:
8+
image: confluentinc/cp-zookeeper
9+
environment:
10+
ZOOKEEPER_CLIENT_PORT: 2181
711
kafka:
812
image: confluentinc/cp-kafka
913
depends_on:
@@ -14,6 +18,16 @@ services:
1418
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
1519
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
1620
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
21+
kafka_2:
22+
image: confluentinc/cp-kafka
23+
depends_on:
24+
- zookeeper_2
25+
environment:
26+
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT, PLAINTEXT_HOST:PLAINTEXT
27+
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka_2:9092, PLAINTEXT_HOST://localhost:29092
28+
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
29+
KAFKA_ZOOKEEPER_CONNECT: zookeeper_2:2181
30+
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
1731
schema-registry:
1832
image: confluentinc/cp-schema-registry
1933
depends_on:
@@ -32,3 +46,15 @@ services:
3246
SCHEMA_REGISTRY_AUTHENTICATION_REALM: SchemaRegistry
3347
SCHEMA_REGISTRY_AUTHENTICATION_ROLES: Testers
3448
SCHEMA_REGISTRY_OPTS: -Djava.security.auth.login.config=/conf/schema-registry/schema-registry.jaas
49+
schema-registry_2:
50+
image: confluentinc/cp-schema-registry
51+
depends_on:
52+
- zookeeper_2
53+
- kafka_2
54+
ports:
55+
- 8081:8081
56+
environment:
57+
SCHEMA_REGISTRY_HOST_NAME: schema-registry
58+
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka_2:9092
59+
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
60+
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper_2:2181

0 commit comments

Comments
 (0)