Skip to content

Commit

Permalink
update: #483
Browse files Browse the repository at this point in the history
  • Loading branch information
gschmutz committed Dec 27, 2024
1 parent 723ba9b commit 5d84371
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 6 deletions.
2 changes: 2 additions & 0 deletions documentation/port-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Container Port(s) | Internal Port(s) | Service (alternatives) |
3307 | 3306 | datahub-mysql |
3308 | 3306 | single-store |
3309 | 3306 | mariadb |
3310 | 3306 | openmetadata-mysql |
3333 | 3333 | taskcafe |
3355 | 3355 | vector-admin |
3838 | 3838 | shiny-server |
Expand Down Expand Up @@ -118,6 +119,7 @@ Container Port(s) | Internal Port(s) | Service (alternatives) |
5434 | 5432 | marquez-db |
5435 | 5432 | dataverse-postgresql |
5436 | 5432 | infinity (postgresql) |
5437 | 5432 | openmetadata-postgresql |
5500 | 5500 | oracledb-ee-1 |
5501 | 5500 | oracledb-ee-1 |
5502 | 5500 | oracledb-ee-1 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ vars:
DATAHUB_ACTIONS_version: head

#datahub
OPENMETADATA_version: 1.4.0-SNAPSHOT
OPENMETADATA_version: 1.6.1

#amunden
AMUNDSEN_FRONTEND_version: 4.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7931,14 +7931,26 @@ services:
SERVER_HOST_API_URL: "http://openmetadata-server:8585/api"
PIPELINE_SERVICE_CLIENT_VERIFY_SSL: "no-ssl"
PIPELINE_SERVICE_CLIENT_SSL_CERT_PATH: ""
{% if OPENMETADATA_database_type == 'mysql' | default(false) %}
# Database configuration for MySQL
DB_DRIVER_CLASS: "com.mysql.cj.jdbc.Driver"
DB_DRIVER_CLASS: com.mysql.cj.jdbc.Driver
DB_SCHEME: mysql
DB_PARAMS: allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
DB_USER: openmetadata_user
DB_USER_PASSWORD: abc123!
DB_HOST: openmetadata-mysql
DB_PORT: 3306
{% endif %}
{% if OPENMETADATA_database_type == 'postgres' | default(false) %}
# Database configuration for PostgreSQL
DB_DRIVER_CLASS: org.postgresql.Driver
DB_SCHEME: postgresql
DB_PARAMS: allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
DB_USER: openmetadata_user
DB_USER_PASSWORD: abc123!
DB_HOST: openmetadata-postgresql
DB_PORT: 5432
{% endif %}
OM_DATABASE: openmetadata_db
# ElasticSearch Configurations
ELASTICSEARCH_HOST: openmetadata-elasticsearch
Expand Down Expand Up @@ -8100,6 +8112,7 @@ services:
SERVER_HOST_API_URL: http://openmetadata-server:8585/api
PIPELINE_SERVICE_CLIENT_VERIFY_SSL: "no-ssl"
PIPELINE_SERVICE_CLIENT_SSL_CERT_PATH: ""
{% if OPENMETADATA_database_type == 'mysql' | default(false) %}
# Database configuration for MySQL
DB_DRIVER_CLASS: com.mysql.cj.jdbc.Driver
DB_SCHEME: mysql
Expand All @@ -8108,6 +8121,17 @@ services:
DB_USER_PASSWORD: abc123!
DB_HOST: openmetadata-mysql
DB_PORT: 3306
{% endif %}
{% if OPENMETADATA_database_type == 'postgres' | default(false) %}
# Database configuration for PostgreSQL
DB_DRIVER_CLASS: org.postgresql.Driver
DB_SCHEME: postgresql
DB_PARAMS: allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
DB_USER: openmetadata_user
DB_USER_PASSWORD: abc123!
DB_HOST: openmetadata-postgresql
DB_PORT: 5432
{% endif %}
OM_DATABASE: openmetadata_db
# ElasticSearch Configurations
ELASTICSEARCH_HOST: openmetadata-elasticsearch
Expand Down Expand Up @@ -8204,17 +8228,18 @@ services:
healthcheck:
test: [ "CMD", "wget", "-q", "--spider", "http://localhost:8586/healthcheck" ]

{% if OPENMETADATA_database_type == 'mysql' | default(false) %}
openmetadata-mysql:
hostname: openmetadata-mysql
container_name: openmetadata-mysql
image: docker.getcollate.io/openmetadata/db:1.4.0-SNAPSHOT
image: docker.getcollate.io/openmetadata/db:{{__OPENMETADATA_version}}
labels:
com.platys.name: "mysql"
com.platys.description: "OpenMetadata Data Catalog MySQL Instance"
expose:
- 3306
ports:
- "3306:3306"
- "3310:3306"
environment:
MYSQL_ROOT_PASSWORD: password
{%if use_timezone | default(false) %}
Expand All @@ -8239,9 +8264,43 @@ services:
interval: 15s
timeout: 10s
retries: 10
{% endif %} {# OPENMETADATA_database_type == 'mysql' #}

{% if OPENMETADATA_database_type == 'postgres' | default(false) %}
openmetadata-postgresql:
image: docker.getcollate.io/openmetadata/postgresql:{{__OPENMETADATA_version}}
container_name: openmetadata_postgresql
hostname: openmetadata_postgresql
labels:
com.platys.name: "postgresql"
com.platys.description: "OpenMetadata Data Catalog PostgreSQL Instance"
expose:
- 5432
ports:
- "5437:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
{%if use_timezone | default(false) %}
TZ: {{use_timezone}}
{% endif -%} {# use_timezone #}
volumes:
{% if OPENMETADATA_volume_map_data %}
- ./container-volume/openmetadata/postgresql:/var/lib/postgresql/data
{% endif %}
{%if use_timezone | default(false) %}
- "./etc/timezone:/etc/timezone:ro"
- "./etc/localtime:/etc/localtime:ro"
{% endif -%} {# use_timezone #}
{%if logging_driver is defined and logging_driver and logging_driver in ('fluentd','loki','syslog','splunk') | default(false) %}
<<: *logging
{% endif -%} {# logging_driver is defined ... #}
command: "--work_mem=10MB"
restart: {{container_restart_policy}}
{% endif %} {# OPENMETADATA_database_type == 'postgres' #}

openmetadata-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.2
image: docker.elastic.co/elasticsearch/elasticsearch::8.11.4
hostname: openmetadata-elasticsearch
container_name: openmetadata-elasticsearch
labels:
Expand Down Expand Up @@ -8299,17 +8358,34 @@ services:
AIRFLOW__API__AUTH_BACKENDS: "airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session"
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__OPENMETADATA_AIRFLOW_APIS__DAG_GENERATED_CONFIGS: "/opt/airflow/dag_generated_configs"
{% if OPENMETADATA_database_type == 'mysql' | default(false) %}
# Database configuration for MySQL
DB_HOST: openmetadata-mysql
DB_PORT: 3306
AIRFLOW_DB: airflow_db
DB_SCHEME: mysql+pymysql
DB_USER: airflow_user
DB_SCHEME: mysql+pymysql
DB_PASSWORD: abc123!
# extra connection-string properties for the database
# EXAMPLE
# require SSL (only for Postgres)
# properties: "?sslmode=require"
DB_PROPERTIES: ""
{% endif %}
{% if OPENMETADATA_database_type == 'postgres' | default(false) %}
# Database configuration for PostgreSQL
DB_HOST: openmetadata-postgresql
DB_PORT: 5432
AIRFLOW_DB: airflow_db
DB_USER: airflow_user
DB_SCHEME: postgresql+psycopg2
DB_PASSWORD: abc123!
# extra connection-string properties for the database
# EXAMPLE
# require SSL (only for Postgres)
# properties: "?sslmode=require"
DB_PROPERTIES: ""
{% endif %}
# To test the lineage backend
# AIRFLOW__LINEAGE__BACKEND: airflow_provider_openmetadata.lineage.backend.OpenMetadataLineageBackend
# AIRFLOW__LINEAGE__AIRFLOW_SERVICE_NAME: local_airflow
Expand Down
2 changes: 2 additions & 0 deletions modern-data-platform-stack/generator-config/vars/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,8 @@
#
OPENMETADATA_enable: false
OPENMETADATA_volume_map_data: false
# 'mysql' or 'postgres'
OPENMETADATA_database_type: mysql

#
#===== Amundsen ========
Expand Down

0 comments on commit 5d84371

Please sign in to comment.