Upgrade to juniper

This commit is contained in:
Régis Behmo 2020-05-09 20:38:15 +02:00
parent 62b2407457
commit fd5b8b082a
4 changed files with 11 additions and 5 deletions

View File

@ -32,7 +32,7 @@ setup(
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
python_requires=">=3.5",
install_requires=["tutor-openedx", "requests"],
install_requires=["tutor-openedx>=10.0.0,<11.0.0", "requests"],
entry_points={"tutor.plugin.v0": ["xqueue = tutorxqueue.plugin"]},
classifiers=[
"Development Status :: 3 - Alpha",

View File

@ -1 +1 @@
__version__ = "0.2.3"
__version__ = "10.0.0"

View File

@ -20,6 +20,10 @@ DATABASES = {
LOGGING = get_logger_config(log_dir="/openedx/data/", logging_env="tutor", dev_env=True)
LOGGING["loggers"][""]["handlers"].append("console")
LOGGING["loggers"]["submission_queue.management.commands.run_consumer"] = {
"level": "WARN",
"handlers": ["console"]
}
SECRET_KEY = "{{ XQUEUE_SECRET_KEY }}"

View File

@ -1,12 +1,14 @@
FROM docker.io/ubuntu:18.04
FROM docker.io/ubuntu:20.04
MAINTAINER Overhang.io <contact@overhang.io>
RUN apt update && \
apt upgrade -y && \
apt install -y language-pack-en git python-pip libmysqlclient-dev
apt install -y language-pack-en git python3 python3-pip libmysqlclient-dev
RUN ln -s /usr/bin/python3 /usr/bin/python \
&& ln -s /usr/bin/pip3 /usr/bin/pip
RUN mkdir /openedx /openedx/data
RUN git clone https://github.com/edx/xqueue --branch open-release/ironwood.2 --depth 1 /openedx/xqueue
RUN git clone https://github.com/edx/xqueue --branch open-release/juniper.1 --depth 1 /openedx/xqueue
WORKDIR /openedx/xqueue
RUN pip install -r requirements.txt