-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
upgrade postgres reference to 14 in docs #19416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why this is not postgres:latest
?
Because with latest
we will never need to update it again...
@@ -147,7 +147,7 @@ services: | |||
+ - db | |||
+ | |||
+ db: | |||
+ image: postgres:13 | |||
+ image: postgres:14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ image: postgres:14 | |
+ image: postgres:latest |
@@ -187,7 +187,7 @@ services: | |||
+ - db | |||
+ | |||
+ db: | |||
+ image: postgres:13 | |||
+ image: postgres:14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ image: postgres:14 | |
+ image: postgres:latest |
@@ -172,7 +172,7 @@ services: | |||
+ - db | |||
+ | |||
+ db: | |||
+ image: postgres:13 | |||
+ image: postgres:14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ image: postgres:14 | |
+ image: postgres:latest |
@@ -36,7 +36,7 @@ TEST_MYSQL_HOST=localhost:3306 TEST_MYSQL_DBNAME=test TEST_MYSQL_USERNAME=root T | |||
## 如何使用 pgsql 数据库进行集成测试 | |||
同上,首先在 docker 容器里部署一个 pgsql 数据库 | |||
``` | |||
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:13 #(just ctrl-c to stop db and clean the container) | |||
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:14 #(just ctrl-c to stop db and clean the container) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:14 #(just ctrl-c to stop db and clean the container) | |
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:latest #(just ctrl-c to stop db and clean the container) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m generally always hesitant to document “latest” as the tag someone should use, as it can change meaning without expectation
* giteaofficial/main: [skip ci] Updated translations via Crowdin [skip ci] Updated licenses and gitignores upgrade postgres refrence to 14 (go-gitea#19416)
Upgrading the reference in the docs to PostgreSQL 14