diff --git a/kedro-docker/features/docker.feature b/kedro-docker/features/docker.feature index 7dffa4541..74580213e 100644 --- a/kedro-docker/features/docker.feature +++ b/kedro-docker/features/docker.feature @@ -3,7 +3,6 @@ Feature: Docker commands in new projects Background: Given I have prepared a config file And I run a non-interactive kedro new using pandas-iris starter - And I have fixed logs write permission And I have installed the project dependencies And I have removed old docker image of test project diff --git a/kedro-docker/features/docker_with_spark.feature b/kedro-docker/features/docker_with_spark.feature index a10116476..012ad2595 100644 --- a/kedro-docker/features/docker_with_spark.feature +++ b/kedro-docker/features/docker_with_spark.feature @@ -3,7 +3,6 @@ Feature: Docker commands in new Spark projects Background: Given I have prepared a config file And I run a non-interactive kedro new using pyspark-iris starter - And I have fixed logs write permission And I have installed the project dependencies And I have removed old docker image of test project diff --git a/kedro-docker/features/steps/cli_steps.py b/kedro-docker/features/steps/cli_steps.py index 0306c1e2f..30b80f749 100644 --- a/kedro-docker/features/steps/cli_steps.py +++ b/kedro-docker/features/steps/cli_steps.py @@ -126,21 +126,6 @@ def create_configuration_file(context): yaml.dump(config, config_file, default_flow_style=False) -@given("I have fixed logs write permission") -def modify_write_permission(context): - """ - Kedro-docker mounts some subdirectories the current directory (like logs, notebooks etc) - into the Docker container. - If you run kedro commands with different users, - they might create files and directories not writable by each other. - So we are fixing the permissions here. - """ - (context.root_project_dir / "logs").chmod(0o777) - journal_dir = context.root_project_dir / "logs" / "journals" - journal_dir.mkdir(parents=True, exist_ok=True) - journal_dir.chmod(0o777) - - @given("I run a non-interactive kedro new using {starter_name} starter") def create_project_from_config_file(context, starter_name): """Behave step to run kedro new