-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tippecanoe): add command line to airflow
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
FROM quay.io/astronomer/astro-runtime:11.8.0 | ||
|
||
ENV DATA_DIR=data_tiles | ||
|
||
RUN mkdir -p $DATA_DIR | ||
|
||
# Install tippecanoe | ||
RUN git clone https://github.com/mapbox/tippecanoe.git /home/astro/tippecanoe | ||
USER root | ||
WORKDIR /home/astro/tippecanoe | ||
RUN make && make install | ||
USER astro | ||
WORKDIR /usr/local/airflow | ||
|
||
RUN mkdir /home/astro/.dbt | ||
COPY ./dbt_profile.yml /home/astro/.dbt/profiles.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from airflow.decorators import dag, task | ||
from pendulum import datetime | ||
|
||
|
||
@dag( | ||
start_date=datetime(2024, 1, 1), | ||
schedule="@once", | ||
catchup=False, | ||
doc_md=__doc__, | ||
max_active_runs=1, | ||
default_args={"owner": "Alexis Athlani", "retries": 3}, | ||
) | ||
def tippecanoe_test(): | ||
@task.bash | ||
def test_command() -> str: | ||
return "tippecanoe --help" | ||
|
||
test_command() | ||
|
||
|
||
tippecanoe_test() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,10 @@ g++ | |
wget | ||
p7zip-full | ||
postgresql-client | ||
cmake | ||
wget | ||
git | ||
ca-certificates | ||
build-essential | ||
libsqlite3-dev | ||
zlib1g-dev |