From 189d652d30eb906f2027313cdf9367e2e770ab83 Mon Sep 17 00:00:00 2001 From: Tessa Alexander Date: Thu, 15 Aug 2024 11:30:56 +0100 Subject: [PATCH] Update python dependencies and tweak docker config for improved performance --- .github/workflows/run-django-test.yml | 2 +- CHANGELOG | 4 ++++ deploy/Dockerfile | 9 ++++----- deploy/fabfile.py | 4 ++-- tests/build-test-env.sh | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/run-django-test.yml b/.github/workflows/run-django-test.yml index 69397354..767033d5 100644 --- a/.github/workflows/run-django-test.yml +++ b/.github/workflows/run-django-test.yml @@ -18,7 +18,7 @@ jobs: ports: - 6379:6379 db: - image: mysql:8.0.36 + image: mysql:8.0.39 ports: - 3306:3306 env: diff --git a/CHANGELOG b/CHANGELOG index 38dafbfb..ecc57904 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +9.7.0 Update Python packaging tools + Update Cypress + Update version of MySQL used in GitHub actions + 9.6.1 Update Python dependencies 9.6.0 Apply Django security update diff --git a/deploy/Dockerfile b/deploy/Dockerfile index b17684d2..5553cc7e 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -1,14 +1,12 @@ FROM python:3.8.19-slim -ARG REQUIREMENTS_FILE='requirements.txt' - ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 -ENV PIP_VERSION='24.1.1' -ENV SETUPTOOLS_VERSION='70.2.0' +ENV PIP_VERSION='24.2' +ENV SETUPTOOLS_VERSION='72.2.0' ENV PIP_TOOLS_VERSION='7.4.1' # NB: Version 15.1.0 is installed on RHEL -ENV VE_VERSION='20.26.3' +ENV VE_VERSION='20.26.3' # Update system packages and install dependencies RUN apt update -y && \ @@ -49,6 +47,7 @@ WORKDIR /srv VOLUME [ "/srv" ] +ARG REQUIREMENTS_FILE='requirements.txt' COPY requirements/$REQUIREMENTS_FILE /srv RUN pip install --no-deps -r /srv/$REQUIREMENTS_FILE diff --git a/deploy/fabfile.py b/deploy/fabfile.py index ed26dc22..abed3a0f 100644 --- a/deploy/fabfile.py +++ b/deploy/fabfile.py @@ -21,8 +21,8 @@ # Tools not handled by pip-tools and/or requirements installs using pip # Also update pip version in tests/build-test-env.sh and Dockerfile -PIP_VERSION = '24.1.1' -SETUPTOOLS_VERSION = '70.2.0' +PIP_VERSION = '24.2' +SETUPTOOLS_VERSION = '72.2.0' PIP_TOOLS_VERSION = '7.4.1' diff --git a/tests/build-test-env.sh b/tests/build-test-env.sh index a28f2a9d..1750135d 100644 --- a/tests/build-test-env.sh +++ b/tests/build-test-env.sh @@ -24,7 +24,7 @@ mkdir -p var/tmp echo "Check the version of pip that is installed" pip3 -V echo "Ensure using a consistent version of pip as per on premises CI server" -pip3 install -U pip==24.1.1 +pip3 install -U pip==24.2 pip3 -V echo "Install Fabric"