Skip to content

feat: Update docker image to Apache Pulsar 4.0 LTS#1294

Closed
keshramjith wants to merge 4 commits intotestcontainers:developfrom
keshramjith:issue-1291
Closed

feat: Update docker image to Apache Pulsar 4.0 LTS#1294
keshramjith wants to merge 4 commits intotestcontainers:developfrom
keshramjith:issue-1291

Conversation

@keshramjith
Copy link

@keshramjith keshramjith commented Nov 9, 2024

What does this PR do?

  • Upgraded the default Apache Pulsar docker image to 4.0 LTS.
  • Changed user to root, to create secret.key for auth.
  • Fixed start up to use correct secret.key file.
  • Remove deprecated usage of apply-config-from-env-with-prefix.py causing 'standalone' cluster to disappear.

Why is it important?

To use the latest version of Apache Pulsar 4.0 LTS to allow developers to take advantage of the new features by having a working testing environment.

Related issues

@netlify
Copy link

netlify bot commented Nov 9, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 472c289
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/67309e4eb31477000878d9de
😎 Deploy Preview https://deploy-preview-1294--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@keshramjith keshramjith marked this pull request as ready for review November 9, 2024 12:43
@keshramjith keshramjith changed the title Issue 1291 feat: Update docker image to Apache Pulsar 4.0 LTS Nov 9, 2024
@HofmeisterAn HofmeisterAn added enhancement New feature or request module An official Testcontainers module labels Nov 10, 2024
public sealed class PulsarBuilder : ContainerBuilder<PulsarBuilder, PulsarContainer, PulsarConfiguration>
{
public const string PulsarImage = "apachepulsar/pulsar:3.0.6";
public const string PulsarImage = "apachepulsar/pulsar:4.0.0";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public const string PulsarImage = "apachepulsar/pulsar:4.0.0";
public const string PulsarImage = "apachepulsar/pulsar:3.0.6";

As mentioned in the issue, we don't update the image version unless it is absolutely necessary. We try to maintain backward compatibility.

.WithPortBinding(PulsarBrokerDataPort, true)
.WithPortBinding(PulsarWebServicePort, true)
.WithFunctionsWorker(false)
.WithCreateParameterModifier(parameterModifier => parameterModifier.User = "root")
Copy link
Collaborator

@HofmeisterAn HofmeisterAn Nov 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this issue is just about permission changes, can't we store the key somewhere else? For example, SecretKeyFilePath = "/pulsar/data/.pulsar/secret.key" should work. This makes the change in PulsarContainer unnecessary too.

@rafek1241
Copy link
Contributor

Lack of documentation update if you change the docker version (docs/modules/index.md)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request module An official Testcontainers module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Upgrade Testcontainers.Pulsar to use Apache Pulsar v4.0.0

3 participants