Skip to content

Commit

Permalink
chore: Update Redpanda v23.3.9
Browse files Browse the repository at this point in the history
- Fix build for Podman
- Update Redpanda container
  • Loading branch information
christophd committed Mar 26, 2024
1 parent d8fb096 commit e7e35fe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ public class RedpandaSettings {

private static final String REDPANDA_VERSION_PROPERTY = REDPANDA_PROPERTY_PREFIX + "version";
private static final String REDPANDA_VERSION_ENV = REDPANDA_ENV_PREFIX + "REDPANDA_VERSION";
private static final String REDPANDA_VERSION_DEFAULT = "v23.1.19";
private static final String REDPANDA_VERSION_DEFAULT = "v23.3.9";

private static final String REDPANDA_SERVICE_NAME_PROPERTY = REDPANDA_PROPERTY_PREFIX + "service.name";
private static final String REDPANDA_SERVICE_NAME_ENV = REDPANDA_ENV_PREFIX + "REDPANDA_SERVICE_NAME";
private static final String REDPANDA_SERVICE_NAME_DEFAULT = "yaks-redpanda";

private static final String REDPANDA_IMAGE_NAME_PROPERTY = REDPANDA_PROPERTY_PREFIX + "image.name";
private static final String REDPANDA_IMAGE_NAME_ENV = REDPANDA_ENV_PREFIX + "REDPANDA_IMAGE_NAME";
private static final String REDPANDA_IMAGE_NAME_DEFAULT = "docker.redpanda.com/vectorized/redpanda";
private static final String REDPANDA_IMAGE_NAME_DEFAULT = "redpandadata/redpanda";

private static final String STARTUP_TIMEOUT_PROPERTY = REDPANDA_PROPERTY_PREFIX + "startup.timeout";
private static final String STARTUP_TIMEOUT_ENV = REDPANDA_ENV_PREFIX + "STARTUP_TIMEOUT";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,15 @@ public void startRedpanda() {
.withNetwork(Network.newNetwork())
.withNetworkAliases(serviceName)
.withEnv(env)
.waitingFor(Wait.forLogMessage(".*Started Kafka API server.*", 1)
.withStartupTimeout(Duration.of(startupTimeout, SECONDS)));
.waitingFor(Wait.forLogMessage(".*Successfully started Redpanda!.*", 1)
.withStartupTimeout(Duration.of(startupTimeout, SECONDS)))
// TODO: Remove once Redpanda container works with Podman
. withCreateContainerCmdModifier(cmd -> {
cmd.withEntrypoint();
cmd.withEntrypoint("/entrypoint-tc.sh");
cmd.withUser("root:root");
})
.withCommand("redpanda", "start", "--mode=dev-container", "--smp=1", "--memory=1G");

redpandaContainer.start();

Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/resources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion script/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export CGO_ENABLED=0

mkdir -p build/_output/bin
eval go build "$build_flags" -o build/_output/bin/yaks ./cmd/manager/*.go
docker build -t $image -f build/Dockerfile .
docker build --load -t $image -f build/Dockerfile .

0 comments on commit e7e35fe

Please sign in to comment.