Skip to content

Commit

Permalink
Fix redpanda tests
Browse files Browse the repository at this point in the history
It seems[^1] that `redpanda` will now throw errors if the advertised
address is set to `0.0.0.0`.

[^1]: (redpanda-data/redpanda#12395)
  • Loading branch information
HeyNonster committed Feb 2, 2024
1 parent cf639ef commit 60dc71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redpanda/lib/testcontainers/redpanda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def _startup_script
startup_script = StringIO.new
startup_script.print("#!/bin/sh\n")
startup_script.print("/usr/bin/rpk redpanda start --mode dev-container")
startup_script.print(" --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092")
startup_script.print(" --advertise-kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://#{host}:#{mapped_port(port)}")
startup_script.print(" --kafka-addr PLAINTEXT://127.0.0.1:29092,OUTSIDE://127.0.0.1:9092")
startup_script.print(" --advertise-kafka-addr PLAINTEXT://127.0.0.1:29092,OUTSIDE://#{host}:#{mapped_port(port)}")
startup_script
end

Expand Down

0 comments on commit 60dc71f

Please sign in to comment.