Skip to content

Commit

Permalink
Bring in second -T instance from #1251
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Feb 2, 2022
1 parent 290881b commit 0fcefa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install/create-kafka-topics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ echo "${_group}Creating additional Kafka topics ..."

# NOTE: This step relies on `kafka` being available from the previous `snuba-api bootstrap` step
# XXX(BYK): We cannot use auto.create.topics as Confluence and Apache hates it now (and makes it very hard to enable)
EXISTING_KAFKA_TOPICS=$($dcr kafka kafka-topics --list --bootstrap-server kafka:9092 2>/dev/null)
EXISTING_KAFKA_TOPICS=$($dcr -T kafka kafka-topics --list --bootstrap-server kafka:9092 2>/dev/null)
NEEDED_KAFKA_TOPICS="ingest-attachments ingest-transactions ingest-events"
for topic in $NEEDED_KAFKA_TOPICS; do
if ! echo "$EXISTING_KAFKA_TOPICS" | grep -wq $topic; then
Expand Down
3 changes: 2 additions & 1 deletion install/ensure-relay-credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ else
# --overwrite) and fail because it is empty.
#
# 2. We need to use -T to avoid additional garbage output cluttering
# credentials.json under Docker Compose 1.x and 2.2.3+.
# credentials.json under Docker Compose 1.x and 2.2.3+. Note that the
# long opt --no-tty doesn't exist in Docker Compose 1.

creds="$dcr --no-deps -T relay credentials"
$creds generate --stdout > "$RELAY_CREDENTIALS_JSON".tmp
Expand Down

0 comments on commit 0fcefa7

Please sign in to comment.