Skip to content

Commit

Permalink
Add triggerer to docker-compose.yaml file (#17745)
Browse files Browse the repository at this point in the history
Adds triggerer component added in #15389 (AIP-40) to the docker-compose.yaml file for quick start
  • Loading branch information
kaxil authored Aug 20, 2021
1 parent 02a33b5 commit d39ca78
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/apache-airflow/start/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,20 @@ services:
airflow-init:
condition: service_completed_successfully

airflow-triggerer:
<<: *airflow-common
command: triggerer
healthcheck:
test: ["CMD-SHELL", 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"']
interval: 10s
timeout: 10s
retries: 5
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully

airflow-init:
<<: *airflow-common
entrypoint: /bin/bash
Expand All @@ -155,7 +169,7 @@ services:
}
airflow_version=$$(gosu airflow airflow version)
airflow_version_comparable=$$(ver $${airflow_version})
min_airflow_version=2.1.0
min_airflow_version=2.2.0
min_airflow_version_comparable=$$(ver $${min_airflow_version})
if (( airflow_version_comparable < min_airflow_version_comparable )); then
echo -e "\033[1;31mERROR!!!: Too old Airflow version $${airflow_version}!\e[0m"
Expand Down

0 comments on commit d39ca78

Please sign in to comment.