-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from pycontw/remove-python-fb-page-insights-c…
…lient Remove python fb page insights client
- Loading branch information
Showing
8 changed files
with
1,956 additions
and
1,016 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
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,24 +1,28 @@ | ||
FROM puckel/docker-airflow:1.10.9 | ||
FROM apache/airflow:1.10.13-python3.8 | ||
USER root | ||
ENV POETRY_VIRTUALENVS_CREATE=false \ | ||
POETRY_CACHE_DIR='/var/cache/pypoetry' \ | ||
ENV POETRY_CACHE_DIR='/var/cache/pypoetry' \ | ||
GOOGLE_APPLICATION_CREDENTIALS='/usr/local/airflow/service-account.json' | ||
|
||
RUN apt-get update \ | ||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29 \ | ||
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends git \ | ||
# 1. if you don't need postgres, remember to remove postgresql-dev and sqlalchemy | ||
# 2. libglib2.0-0 libsm6 libxext6 libxrender-dev libgl1-mesa-dev are required by opencv | ||
# 3. git is required by pip install git+https | ||
&& pip install --no-cache-dir poetry==1.1.7 \ | ||
&& pip install --no-cache-dir -U poetry==1.6.1 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY pyproject.toml pyproject.toml | ||
COPY poetry.toml poetry.toml | ||
COPY poetry.lock poetry.lock | ||
|
||
RUN python -m poetry install --no-interaction --no-ansi --no-dev \ | ||
# Cleaning poetry installation's cache for production: | ||
&& rm -rf "$POETRY_CACHE_DIR" \ | ||
&& pip uninstall -yq poetry | ||
|
||
USER airflow | ||
COPY dags /usr/local/airflow/dags | ||
COPY airflow.cfg airflow.cfg | ||
COPY airflow.cfg airflow.cfg |
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
50 changes: 0 additions & 50 deletions
50
dags/ods/fb_page_insights/dags/fb_page_insights_2_bigquery.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.