From 3e8f93edcd80de688de3f5c83b6429d9693e0b6d Mon Sep 17 00:00:00 2001 From: Soline Date: Thu, 14 Dec 2023 14:20:06 -0500 Subject: [PATCH 1/2] Add a whoami in the tests to understand the permission error --- clockwork_frontend_test/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clockwork_frontend_test/Dockerfile b/clockwork_frontend_test/Dockerfile index 8ef5f941..38057514 100644 --- a/clockwork_frontend_test/Dockerfile +++ b/clockwork_frontend_test/Dockerfile @@ -21,4 +21,4 @@ ENV WE_ARE_IN_DOCKER=1 ENV CLOCKWORK_ENABLE_TESTING_LOGIN="True" CMD ["bash", "clockwork_frontend_test/launch_frontend_tests_in_clockwork_dev.sh"] - +CMD ["whoami"] From 18610bdf18ed0524f255f89a16917cbc5ca38ca2 Mon Sep 17 00:00:00 2001 From: Soline Date: Thu, 14 Dec 2023 15:25:27 -0500 Subject: [PATCH 2/2] Try to set the user inside the container --- clockwork_frontend_test/Dockerfile | 1 - test.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/clockwork_frontend_test/Dockerfile b/clockwork_frontend_test/Dockerfile index 38057514..75aec849 100644 --- a/clockwork_frontend_test/Dockerfile +++ b/clockwork_frontend_test/Dockerfile @@ -3,7 +3,6 @@ FROM clockwork_web # Create folder required by Playwright to install browsers # and set permissions so that Playwright can install browsers in this folder RUN mkdir /.cache -RUN chmod -R 777 /.cache RUN apt update && apt install -y build-essential diff --git a/test.sh b/test.sh index ac19cb99..7f85fc7d 100644 --- a/test.sh +++ b/test.sh @@ -17,4 +17,4 @@ docker-compose run clockwork_web_test docker-compose run clockwork_tools_test docker-compose run slurm_state_test docker-compose run scripts_test -docker-compose run clockwork_frontend_test +docker-compose run --user 1001:1001 clockwork_frontend_test