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

[Docker build] add separate visibility env vars for different db instance #2362

Merged
merged 4 commits into from
Jan 12, 2022

Conversation

swyxio
Copy link
Contributor

@swyxio swyxio commented Jan 11, 2022

What changed?

add separate visibility env vars for different db instance - some deployment environments, like Render, do not allow for creating another db on the same db instance. There is no hard requirement inside of Temporal, but this assumption is baked into the docker image - so we need to offer separate env vars that people can override.

closes #1388

How did you test it?

not yet tested

Potential risks

n/a

Is hotfix candidate?
no

@swyxio swyxio requested a review from a team January 11, 2022 19:10
Copy link
Member

@yiminc yiminc left a comment

Choose a reason for hiding this comment

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

I'm assuming that if visibility ones are not defined, it fall back to the primary ones.

docker/config_template.yaml Outdated Show resolved Hide resolved
docker/config_template.yaml Outdated Show resolved Hide resolved
@swyxio swyxio enabled auto-merge (squash) January 12, 2022 00:12
@swyxio swyxio merged commit 86605c4 into master Jan 12, 2022
@swyxio swyxio deleted the sw-yx-patch-1 branch January 12, 2022 01:02
@swyxio
Copy link
Contributor Author

swyxio commented Jan 12, 2022

@ yimin if you see this - yes, thats the fallback strategy so it doesnt break any experience for existing users

@codenation-nl
Copy link

How does this MR relate to the temporalio/auto-setup docker container? In this container there is an auto-setup script which creates the temporal and the temporal_visibility databases+schemas. Am I understanding correctly that this script should be updated to also respect the separate temporal visibility config parameters?

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

Successfully merging this pull request may close these issues.

Docker config template should allow different DB address for main and visibility database
4 participants