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 Postgres configuration in docker configs #2894

Merged

Conversation

enmand
Copy link
Contributor

@enmand enmand commented Dec 9, 2019

This PR adds the required docker configuration for the auto-setup image on Postgres

@claassistantio
Copy link

claassistantio commented Dec 9, 2019

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 67.803% when pulling 63d0cbd on enmand:dan/improvements/docker-autosetup-pg into cba849d on uber:master.

sql:
pluginName: "postgres"
databaseName: {{ default .Env.DBNAME "cadence" }}
connectAddr: "{{ default .Env.POSTGRES_SEEDS "" }}:{{ default .Env.DB_PORT "5432" }}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe this should be SQL_* to match the env vars in the SQL tool?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is fine. We use POSTGRES_SEEDS in https://github.com/uber/cadence/blob/master/environment/env.go#L62

@longquanzheng longquanzheng merged commit ccdf53d into uber:master Dec 9, 2019
@longquanzheng
Copy link
Collaborator

Thanks for doing this ! @enmand

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.

4 participants