forked from confluentinc/ksql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
# Copyright 2020 Confluent Inc. | ||
# | ||
# Licensed under the Confluent Community License (the "License"); you may not use | ||
# this file except in compliance with the License. You may obtain a copy of the | ||
# License at | ||
# | ||
# http://www.confluent.io/confluent-community-license | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OF ANY KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations under the License. | ||
|
||
|
||
dub ensure KSQL_CONNECT_BOOTSTRAP_SERVERS | ||
dub ensure KSQL_CONNECT_GROUP_ID | ||
dub ensure KSQL_CONNECT_CONFIG_STORAGE_TOPIC | ||
dub ensure KSQL_CONNECT_OFFSET_STORAGE_TOPIC | ||
dub ensure KSQL_CONNECT_STATUS_STORAGE_TOPIC | ||
dub ensure KSQL_CONNECT_KEY_CONVERTER | ||
dub ensure KSQL_CONNECT_VALUE_CONVERTER | ||
# This is required to avoid config bugs. You should set this to a value that is | ||
# resolvable by all containers. | ||
dub ensure KSQL_CONNECT_REST_ADVERTISED_HOST_NAME | ||
|
||
# Default to 8083, which matches the mesos-overrides. This is here in case we extend the containers to remove the mesos overrides. | ||
if [ -z "$KSQL_CONNECT_REST_PORT" ]; then | ||
export KSQL_CONNECT_REST_PORT=8083 | ||
fi | ||
|
||
if [[ $KSQL_CONNECT_KEY_CONVERTER == "io.confluent.connect.avro.AvroConverter" ]] | ||
then | ||
dub ensure KSQL_CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL | ||
fi | ||
|
||
if [[ $KSQL_CONNECT_VALUE_CONVERTER == "io.confluent.connect.avro.AvroConverter" ]] | ||
then | ||
dub ensure KSQL_CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL | ||
fi | ||
|