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

Add an initial cadence domain in the Docker image #1622

Closed
sagikazarmark opened this issue Mar 29, 2019 · 1 comment
Closed

Add an initial cadence domain in the Docker image #1622

sagikazarmark opened this issue Mar 29, 2019 · 1 comment

Comments

@sagikazarmark
Copy link
Contributor

IMHO Cadence domain is analogue of a database. Most official database images offer an option (usually an environment variable) to create a domain when the container is first started. This is mostly useful in development environments to avoid manual steps in the quick setup guide.

Something similar would be nice in case of Cadence as well.

Currently the only problem I see is there is no state in the container (which is not a problem per se), but there is no way to track whether the domain is created or not, other than in the cassandra database of course. However, there is no "ensure" option in the cadence CLI. So if the domain creation fails, where is no way to tell if it is because the domain already exists or for some other reason.

A possible solution would be adding an "ensure" command in the cadence CLI that creates the domain in an idempotent way (if necessary).

@meiliang86
Copy link
Contributor

Duplicate of #2343

@meiliang86 meiliang86 marked this as a duplicate of #2343 Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants