Skip to content

Commit

Permalink
Merge pull request quarkusio#24003 from ozangunalp/remove_redpanda_im…
Browse files Browse the repository at this point in the history
…age_name_check
  • Loading branch information
gastaldi authored Feb 28, 2022
2 parents d004fdd + eb221b0 commit b4e0afd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Supplier;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import org.apache.kafka.clients.admin.AdminClient;
Expand Down Expand Up @@ -53,9 +52,6 @@ public class DevServicesKafkaProcessor {
private static final Logger log = Logger.getLogger(DevServicesKafkaProcessor.class);
private static final String KAFKA_BOOTSTRAP_SERVERS = "kafka.bootstrap.servers";

private static final Pattern STRIMZI_IMAGE_NAME_PATTERN = Pattern
.compile("(^.*test-container):(\\d+\\.\\d+\\.\\d+|latest)-kafka-(.*)$");

/**
* Label to add to shared Dev Service for Kafka running in containers.
* This allows other applications to discover the running service and use it instead of starting a new instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,11 @@ final class RedPandaKafkaContainer extends GenericContainer<RedPandaKafkaContain
}

// For redpanda, we need to start the broker - see https://vectorized.io/docs/quick-start-docker/
if (dockerImageName.getRepository().equals("vectorized/redpanda")) {
withCreateContainerCmdModifier(cmd -> {
cmd.withEntrypoint("sh");
});
withCommand("-c", "while [ ! -f " + STARTER_SCRIPT + " ]; do sleep 0.1; done; " + STARTER_SCRIPT);
waitingFor(Wait.forLogMessage(".*Started Kafka API server.*", 1));
} else {
throw new IllegalArgumentException("Only vectorized/redpanda images are supported");
}
withCreateContainerCmdModifier(cmd -> {
cmd.withEntrypoint("sh");
});
withCommand("-c", "while [ ! -f " + STARTER_SCRIPT + " ]; do sleep 0.1; done; " + STARTER_SCRIPT);
waitingFor(Wait.forLogMessage(".*Started Kafka API server.*", 1));
}

@Override
Expand Down

0 comments on commit b4e0afd

Please sign in to comment.