Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit c5aef92

Browse files
ziafazalregisb
authored andcommitted
feat: upgrade to quince
1 parent 1d63a93 commit c5aef92

File tree

6 files changed

+29
-24
lines changed

6 files changed

+29
-24
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ variables:
33
TUTOR_IMAGES: ecommerce ecommerce-worker orders-dev payment-dev
44
TUTOR_PYPI_PACKAGE: tutor-ecommerce
55
TUTOR_EXTRA_ENABLED_PLUGINS: discovery mfe
6-
OPENEDX_RELEASE: palm
6+
OPENEDX_RELEASE: quince
77
GITHUB_REPO: overhangio/tutor-ecommerce
88

99
include:

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ instructions, because git commits are used to generate release notes:
1919

2020
<!-- scriv-insert-here -->
2121

22+
<a id='changelog-17.0.0'></a>
23+
## v17.0.0 (2023-12-09)
24+
25+
- 💥 [Feature] Upgrade to Quince. (by @ziafazal)
26+
2227
<a id='changelog-16.0.4'></a>
2328
## v16.0.4 (2023-12-11)
2429

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
include_package_data=True,
3535
python_requires=">=3.8",
3636
install_requires=[
37-
"tutor>=16.0.0,<17.0.0",
38-
"tutor-discovery>=16.0.0,<17.0.0",
39-
"tutor-mfe>=16.0.0,<17.0.0",
37+
"tutor>=17.0.0,<18.0.0",
38+
"tutor-discovery>=17.0.0,<18.0.0",
39+
"tutor-mfe>=17.0.0,<18.0.0",
4040
],
41-
extras_require={"dev": ["tutor[dev]>=16.0.0,<17.0.0"]},
41+
extras_require={"dev": ["tutor[dev]>=17.0.0,<18.0.0"]},
4242
entry_points={"tutor.plugin.v1": ["ecommerce = tutorecommerce.plugin"]},
4343
classifiers=[
4444
"Development Status :: 5 - Production/Stable",

tutorecommerce/__about__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "16.0.4"
1+
__version__ = "17.0.0"

tutorecommerce/templates/ecommerce/build/ecommerce-worker/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{% if is_buildkit_enabled() %}# syntax=docker/dockerfile:1.4{% endif %}
1+
# syntax=docker/dockerfile:1.4
22
###### Minimal image with base system requirements for most stages
33
FROM docker.io/ubuntu:20.04 as minimal
44

5-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/var/cache/apt,sharing=locked \
6-
--mount=type=cache,target=/var/lib/apt,sharing=locked{% endif %} \
5+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
6+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
77
apt update && \
88
apt install -y git-core language-pack-en python3 python3-pip python3-venv
99

@@ -18,12 +18,12 @@ WORKDIR /openedx/ecommerce_worker
1818
# Install python venv
1919
RUN python3 -m venv ../venv/
2020
ENV PATH "/openedx/venv/bin:$PATH"
21-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared {% endif %}pip install \
21+
RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install \
2222
# https://pypi.org/project/setuptools/
2323
# https://pypi.org/project/pip/
2424
# https://pypi.org/project/wheel/
2525
setuptools==67.7.2 pip==23.1.2. wheel==0.40.0
26-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared {% endif %}pip install -r requirements/production.txt
26+
RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install -r requirements/production.txt
2727

2828
ENV WORKER_CONFIGURATION_MODULE ecommerce_worker.settings.production
2929
CMD celery worker --app=ecommerce_worker.celery_app:app --loglevel=info --maxtasksperchild 100 --queue=fulfillment,email_marketing

tutorecommerce/templates/ecommerce/build/ecommerce/Dockerfile

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{% if is_buildkit_enabled() %}# syntax=docker/dockerfile:1.4{% endif %}
1+
# syntax=docker/dockerfile:1.4
22
###### Minimal image with base system requirements for most stages
33
FROM docker.io/ubuntu:20.04 as minimal
44

5-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/var/cache/apt,sharing=locked \
6-
--mount=type=cache,target=/var/lib/apt,sharing=locked{% endif %} \
5+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
6+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
77
apt update && \
88
apt install -y curl git-core language-pack-en
99

@@ -28,8 +28,8 @@ COPY --from=checkout /openedx/ecommerce /
2828
###### Install python and virtual environment
2929
FROM minimal as python
3030

31-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/var/cache/apt,sharing=locked \
32-
--mount=type=cache,target=/var/lib/apt,sharing=locked{% endif %} \
31+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
32+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
3333
apt update && \
3434
apt install -y libmysqlclient-dev libssl-dev python3 python3-pip python3-venv
3535

@@ -44,15 +44,15 @@ RUN mkdir /openedx/.cache
4444
# Create python venv
4545
RUN python3 -m venv /openedx/venv/
4646
ENV PATH "/openedx/venv/bin:$PATH"
47-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} {% endif %}pip install \
47+
RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} pip install \
4848
# https://pypi.org/project/setuptools/
4949
# https://pypi.org/project/pip/
5050
# https://pypi.org/project/wheel/
51-
setuptools==67.7.2 pip==23.1.2. wheel==0.40.0
51+
setuptools==68.2.2 pip==23.2.1 wheel==0.41.2
5252

5353
# Install a recent version of nodejs
5454
# https://pypi.org/project/nodeenv
55-
RUN pip install nodeenv==1.7.0
55+
RUN pip install nodeenv==1.8.0
5656
RUN nodeenv /openedx/nodeenv --node=16.20.0 --prebuilt
5757
ENV PATH /openedx/nodeenv/bin:${PATH}
5858

@@ -62,21 +62,21 @@ WORKDIR /openedx/ecommerce
6262

6363
# Install npm, bower requirements
6464
ARG NPM_REGISTRY='{{ NPM_REGISTRY }}'
65-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.npm/,sharing=shared,uid=${APP_USER_ID} {% endif %}npm clean-install --verbose --no-audit --registry=$NPM_REGISTRY
66-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/bower,sharing=shared,uid=${APP_USER_ID} {% endif %}./node_modules/.bin/bower install --allow-root
65+
RUN --mount=type=cache,target=/openedx/.npm/,sharing=shared,uid=${APP_USER_ID} npm clean-install --verbose --no-audit --registry=$NPM_REGISTRY
66+
RUN --mount=type=cache,target=/openedx/.cache/bower,sharing=shared,uid=${APP_USER_ID} node_modules/.bin/bower install --allow-root
6767

6868
# python requirements
69-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} {% endif %}pip install -r requirements.txt
69+
RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} pip install -r requirements.txt
7070
# https://pypi.org/project/uWSGI/
71-
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} {% endif %}pip install uwsgi==2.0.21
71+
RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} pip install uwsgi==2.0.21
7272

7373
# Install private requirements: this is useful for installing custom payment processors.
7474
COPY --chown=app:app ./requirements/ /openedx/requirements
7575
RUN cd /openedx/requirements/ \
7676
&& touch ./private.txt \
7777
&& pip install -r ./private.txt
7878

79-
{% for extra_requirement in ECOMMERCE_EXTRA_PIP_REQUIREMENTS %}RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} {% endif %}pip install '{{ extra_requirement }}'
79+
{% for extra_requirement in ECOMMERCE_EXTRA_PIP_REQUIREMENTS %}RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} pip install '{{ extra_requirement }}'
8080
{% endfor %}
8181

8282
{{ patch("ecommerce-dockerfile-pre-assets") }}

0 commit comments

Comments
 (0)