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

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

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

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
@@ -4,7 +4,7 @@ namespace Testcontainers.Pulsar;
[PublicAPI]
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.

@@ -87,6 +87,7 @@ protected override PulsarBuilder Init()
.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.

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
2 participants