Skip to content

Commit 3804755

Browse files
committed
feat!: support for the ulmo release
1 parent 8cec76f commit 3804755

File tree

5 files changed

+23
-19
lines changed

5 files changed

+23
-19
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def load_about():
4343
long_description=load_readme(),
4444
packages=find_packages(exclude=["tests*"]),
4545
include_package_data=True,
46-
install_requires=["tutor>=20.0.0,<21"],
4746
python_requires=">=3.10",
47+
install_requires=["tutor~=21.0"],
4848
entry_points={"tutor.plugin.v1": ["codejail = tutorcodejail.plugin"]},
4949
classifiers=[
5050
"Development Status :: 3 - Alpha",

tutorcodejail/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Helps you keep your cool when creating dozens of open edX and eduNEXT environments."""
2-
__version__ = "20.1.0"
2+
__version__ = "21.0.0"

tutorcodejail/patches/k8s-deployments

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ spec:
1414
labels:
1515
app.kubernetes.io/name: codejailservice
1616
annotations:
17-
{% if CODEJAIL_ENFORCE_APPARMOR %}
18-
container.apparmor.security.beta.kubernetes.io/codejailservice: "localhost/docker-edx-sandbox"
19-
{% endif %}
2017
spec:
18+
{% if CODEJAIL_ENFORCE_APPARMOR %}
19+
securityContext:
20+
appArmorProfile:
21+
type: Localhost
22+
localhostProfile: docker-edx-sandbox
23+
{% endif %}
2124
containers:
2225
- name: codejailservice
2326
image: {{ CODEJAIL_DOCKER_IMAGE }}

tutorcodejail/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"ENFORCE_APPARMOR": True,
2424
"EXTRA_PIP_REQUIREMENTS": [],
2525
"HOST": "codejailservice",
26-
"SANDBOX_PYTHON_VERSION": "3.11.9",
26+
"SANDBOX_PYTHON_VERSION": "3.11.14",
2727
"SERVICE_REPOSITORY": "https://github.com/edunext/codejailservice.git",
28-
"SERVICE_VERSION": "release/teak.1",
28+
"SERVICE_VERSION": "{{ OPENEDX_COMMON_VERSION }}",
2929
"SKIP_INIT": False,
3030
"VERSION": __version__,
3131
},

tutorcodejail/templates/codejail/build/codejail/Dockerfile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ RUN apt update && \
1414
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
1515
xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git subversion
1616
ENV PYENV_ROOT=/opt/pyenv
17-
RUN git clone https://github.com/pyenv/pyenv $PYENV_ROOT --branch v2.4.0 --depth 1
17+
RUN git clone https://github.com/pyenv/pyenv $PYENV_ROOT --branch v2.6.12 --depth 1
1818

19-
ARG CODEJAILSERVICE_PYTHON_VERSION=3.11.9
19+
ARG CODEJAILSERVICE_PYTHON_VERSION=3.11.14
2020
RUN $PYENV_ROOT/bin/pyenv install $CODEJAILSERVICE_PYTHON_VERSION
2121

2222
ARG SANDBOX_PYTHON_VERSION="{{ CODEJAIL_SANDBOX_PYTHON_VERSION }}"
@@ -56,7 +56,7 @@ WORKDIR /var/tmp
5656
RUN mkdir -p common/lib/
5757

5858
ADD $EDX_PLATFORM_REPOSITORY#$EDX_PLATFORM_VERSION:requirements/edx-sandbox/ .
59-
RUN pip3 install -r releases/teak.txt
59+
RUN pip3 install -r base.txt
6060

6161
{% if CODEJAIL_EXTRA_PIP_REQUIREMENTS %}
6262
# Allows you to add extra pip requirements to your codejail sandbox.
@@ -85,15 +85,16 @@ RUN groupadd -r sandbox && useradd -m -r -g sandbox sandbox && chown -R sandbox:
8585

8686
ENV PATH=/openedx/venv/bin:${PATH}
8787
ENV VIRTUAL_ENV=/openedx/venv/
88+
ENV UWSGI_WORKERS=2
8889
WORKDIR /openedx/codejailservice
8990

9091
EXPOSE 8550
91-
CMD uwsgi \
92-
--http 0.0.0.0:8550 \
93-
--thunder-lock \
94-
--single-interpreter \
95-
--enable-threads \
96-
--processes=${UWSGI_WORKERS:-2} \
97-
--buffer-size=8192 \
98-
--max-requests=1000 \
99-
--wsgi-file /openedx/codejailservice/wsgi.py
92+
93+
CMD [ "uwsgi", \
94+
"--http=0.0.0.0:8550", \
95+
"--thunder-lock", \
96+
"--single-interpreter", \
97+
"--enable-threads", \
98+
"--buffer-size=8192", \
99+
"--max-requests=1000", \
100+
"--wsgi-file=/openedx/codejailservice/wsgi.py" ]

0 commit comments

Comments
 (0)