Skip to content

Commit

Permalink
Update Dockerfile with correct path
Browse files Browse the repository at this point in the history
Update documentation on running dActionBoard in airflow

Change-Id: I3e94f89dd59d8e4303433ebefdca6cc95848b5ba
  • Loading branch information
AVMarkin committed Oct 26, 2023
1 parent 5c28d1f commit 531f42c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM ghcr.io/google/gaarf-py
WORKDIR /app
ADD google_ads_queries/ google_ads_queries/
ADD bq_queries/ bq_queries/
COPY scripts/ scripts/
COPY run-local.sh .
RUN chmod a+x run-local.sh
ENV GOOGLE_APPLICATION_CREDENTIALS service_account.json
ENTRYPOINT ["./run-local.sh", "--quiet"]
FROM python:3.10-slim-buster
COPY app/requirements.txt requirements.txt
RUN --mount=type=cache,target=/root/.cache pip install --require-hashes -r requirements.txt --no-deps
COPY app app
ENV GOOGLE_APPLICATION_CREDENTIALS app/service_account.json

ENTRYPOINT ["./app/run-local.sh", "--quiet"]
CMD ["--google-ads-config", "/google-ads.yaml", "--config", "/dactionboard.yaml"]
2 changes: 1 addition & 1 deletion docs/running-dactionboard-in-apache-airflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ with DAG('dactionboard', default_args=default_args, schedule_interval="* 0 * * *
mounts=[
Mount(
source="/path/to/service_account.json",
target="/service_account.json",
target="/app/service_account.json",
type="bind"),
Mount(
source="/path/to/google-ads.yaml",
Expand Down

0 comments on commit 531f42c

Please sign in to comment.