Skip to content

Commit 982d067

Browse files
authored
Merge pull request #3 from EJOOSTEROP/container-build
Container build
2 parents 4ff73b7 + ad05210 commit 982d067

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ COPY ./DuckDB_CLI/duckdb_cli-linux-amd64 /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLD
4747
# https://docs.docker.com/engine/reference/builder/#volume
4848
RUN mkdir -p /${MELTANO_PROJ_ROOT}/data/dev/ \
4949
&& mkdir -p /${MELTANO_PROJ_ROOT}/data/test/ \
50-
&& mkdir -p /${MELTANO_PROJ_ROOT}/data/prod/ \
51-
&& /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLDER}/duckdb /${MELTANO_PROJ_ROOT}/data/dev/data.duckdb "select * from pg_tables;" \
52-
&& /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLDER}/duckdb /${MELTANO_PROJ_ROOT}/data/test/data.duckdb "select * from pg_tables;" \
53-
&& /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLDER}/duckdb /${MELTANO_PROJ_ROOT}/data/prod/data.duckdb "select * from pg_tables;"
50+
&& mkdir -p /${MELTANO_PROJ_ROOT}/data/prod/
51+
###\
52+
###&& /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLDER}/duckdb /${MELTANO_PROJ_ROOT}/data/dev/data.duckdb "select * from pg_tables;" \
53+
###&& /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLDER}/duckdb /${MELTANO_PROJ_ROOT}/data/test/data.duckdb "select * from pg_tables;" \
54+
###&& /${MELTANO_PROJ_ROOT}/${DUCKDB_CLI_FOLDER}/duckdb /${MELTANO_PROJ_ROOT}/data/prod/data.duckdb "select * from pg_tables;"
5455

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

readme.md

+13
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,19 @@ This section highlights some of the key items for the tools being used. For full
201201
<p align="right">(<a href="#readme-top">back to top</a>)</p>
202202

203203

204+
### Definition and Configuration
205+
206+
The data pipelines are fully defined in a set of files. This includes the source definitions, schedules, dependencies, transformation logic, tests and documentation. (The reporting/dashboards in Superset are defined within Superset, but can be exported from there.)
207+
208+
These files are all found in the `/project/mimodast/` folder in the Docker container. It is best practice to capture this folder in a version control tool. Git is included in the Docker image.
209+
210+
The core files include:
211+
212+
- `/project/mimodast/meltano.yml` - this contains items like the source specification, destination database and schedule.
213+
- `/project/mimodast/orhestration/dags/gie_dag.py` - python code defining how to orchestrate a data pipeline in Airflow. Note that the GIE data uses this manually created file, whereas the USGS data orhestration relies purely on logic defined in `meltano.yml`.
214+
- `/project/mimodast/tranformation/` - this folder contains transformation logic (under `models/`) and also tests and documentation.
215+
216+
204217
### Meltano
205218

206219
Meltano's functionality is largely driven by the meltano.yml file. It is used to install most of the other tools contained in the image, to define the ELT pipeline and to schedule the [USGS Earthquake][USGSEarthquakeAPI-url] pipeline. The file can be found at: `/project/mimodast/meltano.yml`.

0 commit comments

Comments
 (0)