From 59ff743496a27816d3b62ac38409c775df9d2817 Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Fri, 8 Mar 2024 16:53:42 -0800 Subject: [PATCH 1/2] Addressed #309 by setting the executable bit for the Python script within the container --- cloudknot/templates/Dockerfile.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloudknot/templates/Dockerfile.template b/cloudknot/templates/Dockerfile.template index 259aa92..22b0f86 100644 --- a/cloudknot/templates/Dockerfile.template +++ b/cloudknot/templates/Dockerfile.template @@ -19,6 +19,9 @@ RUN groupadd -f staff \ # Copy the python script COPY --chown="${username}" "${script_base_name}" "/home/${username}/" +# Make the python script executable +RUN chmod +x "/home/${username}/${script_base_name}" + # Set user USER "${username}" From 91bf67e381d94f14a824303c28f22f80928527a3 Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Fri, 8 Mar 2024 17:13:33 -0800 Subject: [PATCH 2/2] Update Dockerfiles in reference data to match new Dockerfile.template --- cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile | 3 +++ cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile b/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile index 6f0dc50..39cede3 100644 --- a/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile +++ b/cloudknot/data/docker_reqs_ref_data/py3/ref1/Dockerfile @@ -19,6 +19,9 @@ RUN groupadd -f staff \ # Copy the python script COPY --chown="cloudknot-user" "unit-testing-func.py" "/home/cloudknot-user/" +# Make the python script executable +RUN chmod +x "/home/cloudknot-user/unit-testing-func.py" + # Set user USER "cloudknot-user" diff --git a/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile b/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile index d4cbfe4..b91b5d8 100644 --- a/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile +++ b/cloudknot/data/docker_reqs_ref_data/py3/ref2/Dockerfile @@ -19,6 +19,9 @@ RUN groupadd -f staff \ # Copy the python script COPY --chown="unit-test-username" "test-func-input.py" "/home/unit-test-username/" +# Make the python script executable +RUN chmod +x "/home/unit-test-username/test-func-input.py" + # Set user USER "unit-test-username"