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

How DIP_INFRA_POSTGRES_IMAGE_TAG is provided? #1

Closed
nilcolor opened this issue Apr 4, 2024 · 2 comments
Closed

How DIP_INFRA_POSTGRES_IMAGE_TAG is provided? #1

nilcolor opened this issue Apr 4, 2024 · 2 comments
Labels
question Further information is requested

Comments

@nilcolor
Copy link

nilcolor commented Apr 4, 2024

There is the DIP_INFRA_POSTGRES_IMAGE_TAG env that represents PG version. But it is not clear how to provide a value for this one. Is it provided from the main dip setup via

environment:
  DIP_INFRA_POSTGRES_IMAGE_TAG: 12

(this way it is still yields "WARN[0000] The "DIP_INFRA_POSTGRES_IMAGE_TAG" variable is not set. Defaulting to a blank string.")
Or there is another way?

@bibendi
Copy link
Owner

bibendi commented Apr 4, 2024

You should not touch DIP_INFRA_POSTGRES_IMAGE_TAG in your dip.yml.

If you want to use a specific version of Postgres, you can use the following code in your dip.yml

infra:
  postgres:
    git: https://github.com/bibendi/dip-postgres.git
    ref: v15

https://github.com/bibendi/dip-postgres/blob/v15/.env
https://github.com/bibendi/dip?tab=readme-ov-file#dip-infra

@bibendi bibendi closed this as completed Apr 4, 2024
@bibendi bibendi added the question Further information is requested label Apr 4, 2024
@nilcolor
Copy link
Author

nilcolor commented Apr 4, 2024

Oh, I see. So, that ref: is not simply the branch you want to clone but also works as a tag. Got it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants