From 998f96e3648890565891885a220879d2567eb0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Gonz=C3=A1lez?= Date: Thu, 21 Nov 2024 16:53:51 -0400 Subject: [PATCH] fixup! test: run tests for python3.12 --- Dockerfile | 2 +- sudoers-file/{01-sandbox-python-3.11 => 01-sandbox-python} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename sudoers-file/{01-sandbox-python-3.11 => 01-sandbox-python} (50%) diff --git a/Dockerfile b/Dockerfile index 08fca2be..64e4e759 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN pip install virtualenv ENV CODEJAIL_GROUP=sandbox ENV CODEJAIL_SANDBOX_CALLER=ubuntu ENV CODEJAIL_TEST_USER=sandbox -ENV CODEJAIL_TEST_VENV=/home/sandbox/codejail_sandbox-python${python_version} +ENV CODEJAIL_TEST_VENV=/home/sandbox/codejail-sandbox-venv # Create Virtualenv for sandbox user RUN virtualenv -p python${python_version} --always-copy $CODEJAIL_TEST_VENV diff --git a/sudoers-file/01-sandbox-python-3.11 b/sudoers-file/01-sandbox-python similarity index 50% rename from sudoers-file/01-sandbox-python-3.11 rename to sudoers-file/01-sandbox-python index 46c3cb2a..c3e2112d 100644 --- a/sudoers-file/01-sandbox-python-3.11 +++ b/sudoers-file/01-sandbox-python @@ -1,7 +1,7 @@ -ubuntu ALL=(sandbox) SETENV:NOPASSWD:/home/sandbox/codejail_sandbox-python3.11/bin/python +ubuntu ALL=(sandbox) SETENV:NOPASSWD:/home/sandbox/codejail-sandbox-venv/bin/python ubuntu ALL=(sandbox) SETENV:NOPASSWD:/usr/bin/find ubuntu ALL=(ALL) NOPASSWD:/usr/bin/pkill -Defaults!/home/sandbox/codejail_sandbox-python3.11/bin/python !requiretty +Defaults!/home/sandbox/codejail-sandbox-venv/bin/python !requiretty Defaults!/usr/bin/find !requiretty Defaults!/usr/bin/pkill !requiretty