Fix #8208: OpenMetadata server supports Postgres 15 (#12370)

* Fix #8208: OpenMetadata server supports Postgres 15

* fix: PSQL 15 Initial scripts to make database owners for permissions

* Update to generic base image tag

* fix: type for airflow username

---------

Co-authored-by: Akash Jain <15995028+akash-jain-10@users.noreply.github.com>
Co-authored-by: Akash-Jain <Akash.J@deuexsolutions.com>
This commit is contained in:
Sriharsha Chintalapani 2023-08-01 22:43:28 -07:00 committed by GitHub
parent 402f4bc04c
commit 43e06357a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
FROM postgres:14
FROM postgres:15
WORKDIR /docker-entrypoint-initdb.d
COPY docker/postgresql/postgres-script.sql .
RUN chmod -R 775 /docker-entrypoint-initdb.d

View File

@ -2,7 +2,7 @@ CREATE DATABASE openmetadata_db;
CREATE DATABASE airflow_db;
CREATE USER openmetadata_user WITH PASSWORD 'openmetadata_password';
CREATE USER airflow_user WITH PASSWORD 'airflow_pass';
GRANT ALL PRIVILEGES ON DATABASE openmetadata_db TO openmetadata_user;
GRANT ALL PRIVILEGES ON DATABASE airflow_db TO airflow_user;
ALTER DATABASE openmetadata_db OWNER TO openmetadata_user;
ALTER DATABASE airflow_db OWNER TO airflow_user;
ALTER USER airflow_user SET search_path = public;
commit;

View File

@ -39,7 +39,7 @@ You can refer a sample script [here](https://github.com/open-metadata/OpenMetada
{%/note%}
## Postgres (version between 12.0 and 14.6)
## Postgres (version between 12.0 or greater)
To install Postgres see the instructions for your operating system (OS) at [Postgres Download](https://www.postgresql.org/download/)
{%note%}

View File

@ -228,7 +228,7 @@ We support
- Amazon RDS (MySQL) engine version 8 or greater
- Amazon OpenSearch (ElasticSearch) engine version upto 7.10 or Amazon OpenSearch engine version upto 1.3
- Amazon RDS (PostgreSQL) engine version between 12 and 14.6
- Amazon RDS (PostgreSQL) engine version 12 or greater
Note:-
When using AWS Services the SearchType Configuration for elastic search should be `opensearch`, for both cases ElasticSearch and OpenSearch,

View File

@ -233,7 +233,7 @@ We support
- Amazon RDS (MySQL) engine version 8 or greater
- Amazon OpenSearch (ElasticSearch) engine version upto 7.10 or Amazon OpenSearch engine version upto 1.3
- Amazon RDS (PostgreSQL) engine version between 12 and 14.6
- Amazon RDS (PostgreSQL) engine version between 12 or greater
Note:-
When using AWS Services the SearchType Configuration for elastic search should be `opensearch`, for both cases ElasticSearch and OpenSearch,

View File

@ -676,7 +676,7 @@
</includes>
<systemPropertyVariables>
<jdbcContainerClassName>org.testcontainers.containers.PostgreSQLContainer</jdbcContainerClassName>
<jdbcContainerImage>postgres:12.10</jdbcContainerImage>
<jdbcContainerImage>postgres:15.3</jdbcContainerImage>
</systemPropertyVariables>
</configuration>
</execution>