Skip to content

Commit

Permalink
Update documentation on running in Airflow
Browse files Browse the repository at this point in the history
Change-Id: Ia8f7e807bee5e7b5ef918ab29693f6edbae8b1c4
  • Loading branch information
AVMarkin committed Jul 31, 2023
1 parent e9d3290 commit 28c11f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/running-app-reporting-pack-in-apache-airflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ with DAG('app_reporting_pack_local', default_args=default_args, schedule_interva
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 Expand Up @@ -88,16 +88,19 @@ with DAG('app_reporting_pack_remote', default_args=default_args, schedule_interv
image='ghcr.io/google/app-reporting-pack:latest',
api_version='auto',
auto_remove=True,
environment={
"GOOGLE_CLOUD_PROJECT": <YOUR_CLOUD_PROJECT>
},
command=[
"-g", "gs://path/to//google-ads.yaml",
"-g", "gs://path/to/google-ads.yaml",
"-c", "gs://path/to/app_reporting_pack.yaml",
"--legacy"
],
docker_url="unix://var/run/docker.sock",
mounts=[
Mount(
source="/path/to/service_account.json",
target="/service_account.json",
target="/app/service_account.json",
type="bind")
)
app_reporting_pack
Expand Down

0 comments on commit 28c11f6

Please sign in to comment.