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-unsubscr...@pulsar.apache.org