You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/07 03:55:43 UTC
[GitHub] [pulsar] flowchartsman added a comment to the discussion: pulsar standalone docker image should support initialization of some kind
GitHub user flowchartsman added a comment to the discussion: pulsar standalone docker image should support initialization of some kind
My suggestion would be something like the following:
1) before spinning up the admin endpoint, look for a file in a known location (following mongo's example, this would be something like `/docker-entrypoint-init.d/pulsar-init`
2) If this file is found, process it
3) otherwise, proceed with `sample` tenant/namespace creation
As for the format of the file, one option would be to simply treat it as a newline-separated list of arguments to `pulsar-admin` invocations:
```
tenants create test
namespaces create test/admin
namespaces create test/news
namespaces create test/emails
namespaces set-retention --size-1 --time 3d test/news
namespaces set-publish-rate -m 10 test/emails
```
GitHub link: https://github.com/apache/pulsar/discussions/18781#discussioncomment-4329160
----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org