From d06f8905c6da1e2a38e20518745ed6dcb3ebb2ae Mon Sep 17 00:00:00 2001 From: Michael Kotliar Date: Mon, 19 Aug 2019 14:24:51 -0400 Subject: [PATCH] Set no_match_user from configuration By default docker is run with --user. If set no_match_user = True, all docker containers will be run as root --- cwl_airflow/cwldag.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cwl_airflow/cwldag.py b/cwl_airflow/cwldag.py index 8220d19..9991761 100644 --- a/cwl_airflow/cwldag.py +++ b/cwl_airflow/cwldag.py @@ -45,14 +45,13 @@ def __init__( 'email_on_failure': False, 'email_on_retry': False, 'end_date': None, - 'tmp_folder': conf_get_default('cwl', 'tmp_folder', '/tmp'), 'basedir': conf_get_default('cwl', 'tmp_folder', '/tmp'), + 'no_match_user': conf_get_default('cwl', 'no_match_user', False), 'quiet': False, 'strict': False, 'on_error': 'continue', 'skip_schemas': True, - 'cwl_workflow': cwl_workflow }