From 8ee42debef6220dea7204bac9118d74eb094a30d Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Wed, 14 Oct 2020 14:31:29 +0100 Subject: [PATCH] Fix webserver command in docker-compose (#364) --- airflow/docker_test.go | 2 +- airflow/include/composeyml.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/docker_test.go b/airflow/docker_test.go index a7fd5fa51..aaa354987 100644 --- a/airflow/docker_test.go +++ b/airflow/docker_test.go @@ -112,7 +112,7 @@ services: webserver: image: test-project-name/airflow:latest command: > - bash -c 'airflow create_user "$$@" || airflow users create "$$@"' -- -r Admin -u admin -e admin@example.com -f admin -l user -p admin && airflow webserver + bash -c '{ airflow create_user "$$@" || airflow users create "$$@"; } && airflow webserver' -- -r Admin -u admin -e admin@example.com -f admin -l user -p admin restart: unless-stopped networks: - airflow diff --git a/airflow/include/composeyml.go b/airflow/include/composeyml.go index d9ade1bbd..623e6f10c 100644 --- a/airflow/include/composeyml.go +++ b/airflow/include/composeyml.go @@ -62,7 +62,7 @@ services: webserver: image: {{ .AirflowImage }} command: > - bash -c 'airflow create_user "$$@" || airflow users create "$$@"' -- -r Admin -u admin -e admin@example.com -f admin -l user -p admin && airflow webserver + bash -c '{ airflow create_user "$$@" || airflow users create "$$@"; } && airflow webserver' -- -r Admin -u admin -e admin@example.com -f admin -l user -p admin restart: unless-stopped networks: - airflow