Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix async i/o error and move startup script #19736

Merged
merged 1 commit into from
Aug 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ private static final class RedPandaKafkaContainer extends GenericContainer<RedPa

private String hostName = null;

private static final String STARTER_SCRIPT = "/redpanda.sh";
private static final String STARTER_SCRIPT = "/var/lib/redpanda/redpanda.sh";

private RedPandaKafkaContainer(DockerImageName dockerImageName, int fixedExposedPort, String serviceName,
boolean useSharedNetwork) {
Expand Down Expand Up @@ -360,7 +360,7 @@ protected void containerIsStarting(InspectContainerResponse containerInfo, boole

// Start and configure the advertised address
String command = "#!/bin/bash\n";
command += "/usr/bin/rpk redpanda start --check=false --node-id 0 ";
command += "/usr/bin/rpk redpanda start --check=false --node-id 0 --smp 1 ";
command += "--kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 ";
command += String.format("--advertise-kafka-addr PLAINTEXT://%s:29092,OUTSIDE://%s:%d", getHostToUse(),
getHostToUse(), getPortToUse());
Expand Down