Skip to content
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

Superset install #17

Merged
merged 2 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG BASE_CONTAINER=meltano/meltano:v2.10.0-python3.9
ARG BASE_CONTAINER=meltano/meltano:v2.17.1-python3.9
# TODO: consider meltano/meltano:v2-python3.9
# metano tap-rest-api-msdk requires python ~3.9
# meltano tap-rest-api-msdk requires python ~3.9


FROM $BASE_CONTAINER as basepython

Expand All @@ -12,8 +13,8 @@ LABEL org.opencontainers.image.description="Mimodast. A minimal modern data stac
LABEL org.opencontainers.image.licenses=MIT

COPY requirements.txt .
#RUN pip install --upgrade pip
RUN pip install -r requirements.txt
#duckdb --> numpy-1.23.4

# For the healthcheck
RUN apt update \
Expand Down Expand Up @@ -54,18 +55,12 @@ RUN mkdir -p /${MELTANO_PROJ_ROOT}/data/dev/ \
&& /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLDER}/duckdb /${MELTANO_PROJ_ROOT}/data/prod/data.duckdb "select * from pg_tables;" \
&& meltano invoke dbt-duckdb:deps


###RUN chmod -R u+x /project/data/
###RUN /project/duckdb_cli/duckdb /project/data/dev/data.duckdb "select * from pg_tables;"

RUN meltano invoke airflow dags pause stage_gie_dag \
&& meltano invoke airflow dags pause stage_gie_backfill_dag

COPY ./standup/. .
RUN meltano invoke airflow variables import airflowvariables.json \
&& meltano invoke superset import-dashboards -p dashboards.zip
### \
### && meltano invoke superset import_datasources -p database.zip

COPY ./meltano_transform/. /${MELTANO_PROJ_ROOT}/${PROJECT}/transform/

Expand Down
10 changes: 7 additions & 3 deletions meltano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,21 @@ plugins:
- name: superset
variant: apache
pip_url: apache-superset==2.0.0 flask==2.0.3 werkzeug==2.0.3 jinja2==3.0.1 wtforms==2.3.3
git+https://github.com/meltano/superset-ext.git@main cryptography==3.4.7 markupsafe==2.0.1
cryptography==3.4.7
markupsafe==2.0.1
duckdb-engine==0.7.0
# git+https://github.com/meltano/superset-ext.git@main
- name: dbt-duckdb
variant: jwills
pip_url: dbt-core~=1.4.0 dbt-duckdb~=1.4.0 git+https://github.com/meltano/dbt-ext.git@main
pip_url: dbt-core~=1.4.0 dbt-duckdb~=1.4.0
git+https://github.com/meltano/dbt-ext.git@main
commands:
usgs:
args: run --select tag:usgs
description: Runsd dbt USGS (earthquake data) jobs instead of all dbt jobs.
description: Runs dbt USGS (earthquake data) jobs instead of all dbt jobs.
gie:
args: run --select tag:gie
description: Runs dbt GIE (gas inventory data) jobs instead of all dbt jobs.
jobs:
- name: usgs-to-duckdb-rpt
tasks:
Expand Down