diff --git a/.github/workflows/push-docker-images.yml b/.github/workflows/push-docker-images.yml index c055a30..a332148 100644 --- a/.github/workflows/push-docker-images.yml +++ b/.github/workflows/push-docker-images.yml @@ -26,6 +26,7 @@ on: - xqueue - portal designer - license manager + - codejail branch: description: "Target branch from which the source dockerfile from image will be sourced" default: "main" diff --git a/dockerfiles/codejail.Dockerfile b/dockerfiles/codejail.Dockerfile new file mode 100644 index 0000000..0bc970c --- /dev/null +++ b/dockerfiles/codejail.Dockerfile @@ -0,0 +1,91 @@ +# Usage: +# +# - Listens on port 8080 internally +# - Set environment variable `DJANGO_SETTINGS_MODULE`, e.g. to +# `codejail_service.settings.production` or `codejail_service.settings.devstack` +# - Override arg `VERSION` to a commit hash or a branch + +FROM ubuntu:noble AS app + +ARG GITHUB_REPO=openedx/codejail-service + +# This should be overridden with a commit hash to ensure we always get +# a coherent result, even if things are changing on a branch as the +# image is being built. +# +# Must use the full 40-character hash when specifying a commit hash. +ARG VERSION=main + +# Python version +ARG PYVER=3.12 + +# Packages installed: +# +# - language-pack-en, locales: Ubuntu locale support so that system utilities +# have a consistent language and time zone. +# - python*: A specific version of Python +# - python*-dev: Header files for python extensions, required by many source wheels +# - python*-venv: Allow creation of virtualenvs +RUN <