Skip to content

Commit

Permalink
Bitnami Postgres instance
Browse files Browse the repository at this point in the history
  • Loading branch information
abimichel committed Mar 27, 2024
1 parent caad9c0 commit 92006fe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 59 deletions.
6 changes: 6 additions & 0 deletions charts/postgresql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM bitnami/postgresql:15.6.0
USER postgres
WORKDIR /docker-entrypoint-initdb.d
COPY postgres-script.sql .
# RUN chmod -R 777 /var/lib/postgresql/data
# docker run -e POSTGRESQL_PASSWORD=password -u 999999:0 custom-postgresql:v1
8 changes: 8 additions & 0 deletions charts/postgresql/postgres-script.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE DATABASE openmetadata_db;
CREATE DATABASE airflow_db;
CREATE USER openmetadata_user WITH PASSWORD 'openmetadata_password';
CREATE USER airflow_user WITH PASSWORD 'airflow_pass';
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;
59 changes: 0 additions & 59 deletions mysql-init.yaml

This file was deleted.

0 comments on commit 92006fe

Please sign in to comment.