Skip to content

Commit 3db4a1c

Browse files
dpgasparvillebro
andauthored
chore: bump postgres from 10 to 14 (apache#19790)
* chore: bump postgres from 10 to 14 * update helm chart * adding docs * fix docs * Update docs/docs/installation/configuring-superset.mdx Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com> * Update docs/docs/installation/configuring-superset.mdx Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com> * improve docs * improve docs Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
1 parent 108a2a4 commit 3db4a1c

File tree

7 files changed

+34
-8
lines changed

7 files changed

+34
-8
lines changed

.github/workflows/superset-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
services:
3333
postgres:
34-
image: postgres:10-alpine
34+
image: postgres:14-alpine
3535
env:
3636
POSTGRES_USER: superset
3737
POSTGRES_PASSWORD: superset

.github/workflows/superset-python-integrationtest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
SUPERSET__SQLALCHEMY_DATABASE_URI: postgresql+psycopg2://superset:superset@127.0.0.1:15432/superset
8989
services:
9090
postgres:
91-
image: postgres:10-alpine
91+
image: postgres:14-alpine
9292
env:
9393
POSTGRES_USER: superset
9494
POSTGRES_PASSWORD: superset

.github/workflows/superset-python-presto-hive.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
SUPERSET__SQLALCHEMY_EXAMPLES_URI: presto://localhost:15433/memory/default
2424
services:
2525
postgres:
26-
image: postgres:10-alpine
26+
image: postgres:14-alpine
2727
env:
2828
POSTGRES_USER: superset
2929
POSTGRES_PASSWORD: superset
@@ -101,7 +101,7 @@ jobs:
101101
UPLOAD_FOLDER: /tmp/.superset/uploads/
102102
services:
103103
postgres:
104-
image: postgres:10-alpine
104+
image: postgres:14-alpine
105105
env:
106106
POSTGRES_USER: superset
107107
POSTGRES_PASSWORD: superset

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040

4141
db:
4242
env_file: docker/.env
43-
image: postgres:10
43+
image: postgres:14
4444
container_name: superset_db
4545
restart: unless-stopped
4646
ports:

docs/docs/installation/configuring-superset.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,32 @@ you can add the endpoints to `WTF_CSRF_EXEMPT_LIST`:
6969
WTF_CSRF_EXEMPT_LIST = [‘’]
7070
```
7171

72+
### Using a production metastore
73+
74+
By default Superset is configured to use SQLite, it's a simple and fast way to get you started
75+
(no installation needed). But for production environments you should use a different database engine on
76+
a separate host or container.
77+
78+
Superset supports the following database engines/versions:
79+
80+
| Database Engine | Supported Versions |
81+
| --------------------------------------------------------- | --------------------------------- |
82+
| [PostgreSQL](https://www.postgresql.org/) | 10.X, 11.X, 12.X, 13.X, 14.X |
83+
| [MySQL](https://www.mysql.com/) | 5.X |
84+
85+
86+
Use the following database drivers and connection strings:
87+
88+
| Database | PyPI package | Connection String |
89+
| ----------------------------------------- | --------------------------------- | ------------------------------------------------------------------------ |
90+
| [PostgreSQL](https://www.postgresql.org/) | `pip install psycopg2` | `postgresql://<UserName>:<DBPassword>@<Database Host>/<Database Name>` |
91+
| [MySQL](https://www.mysql.com/) | `pip install mysqlclient` | `mysql://<UserName>:<DBPassword>@<Database Host>/<Database Name>` |
92+
| SQLite | No additional library needed | `sqlite://` |
93+
94+
To configure Superset metastore set `SQLALCHEMY_DATABASE_URI` config key on `superset_config`
95+
to the appropriate connection string.
96+
97+
7298
### Running on a WSGI HTTP Server
7399

74100
While you can run Superset on NGINX or Apache, we recommend using Gunicorn in async mode. This

docs/docs/installation/installing-superset-using-docker-compose.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ username: admin
109109
password: admin
110110
```
111111

112-
### 5. Connecting your local database instance to superset
112+
### 5. Connecting Superset to your local database instance
113113

114114
When running Superset using `docker` or `docker-compose` it runs in its own docker container, as if the Superset was running in a separate machine entirely. Therefore attempts to connect to your local database with hostname `localhost` won't work as `localhost` refers to the docker container Superset is running in, and not your actual host machine. Fortunately, docker provides an easy way to access network resources in the host machine from inside a container, and we will leverage this capability to connect to our local database instance.
115115

helm/superset/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ maintainers:
2222
- name: craig-rueda
2323
email: craig@craigrueda.com
2424
url: https://github.com/craig-rueda
25-
version: 0.5.11
25+
version: 0.6.0
2626
dependencies:
2727
- name: postgresql
28-
version: 10.2.0
28+
version: 11.1.22
2929
repository: https://charts.bitnami.com/bitnami
3030
condition: postgresql.enabled
3131
- name: redis

0 commit comments

Comments
 (0)