From 3ee410729a8732031d964f7cf0cbcc9a836a83ee Mon Sep 17 00:00:00 2001 From: Mariot Tsitoara Date: Wed, 25 Feb 2026 16:26:38 +0100 Subject: [PATCH 1/2] [ci] fix(aws): force reinstall pip (#172) --- aws/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aws/Dockerfile b/aws/Dockerfile index 64035c31..97392aba 100644 --- a/aws/Dockerfile +++ b/aws/Dockerfile @@ -41,9 +41,7 @@ RUN if [[ ${PYOAEV_GIT_BRANCH_OVERRIDE} ]] ; then \ echo "Forcing specific version of client-python" && \ apk add --no-cache git && \ pip install --upgrade pip==${PIP_VERSION} && \ - pip install pip3-autoremove && \ - pip-autoremove pyoaev -y && \ - pip install git+https://github.com/OpenAEV-Platform/client-python@${PYOAEV_GIT_BRANCH_OVERRIDE} ; \ + pip install --force-reinstall git+https://github.com/OpenAEV-Platform/client-python@${PYOAEV_GIT_BRANCH_OVERRIDE} ; \ fi # Verify AWS CLI is installed From c00c29256798179ffe1f1c62a4120b3ad117b393 Mon Sep 17 00:00:00 2001 From: Mariot Tsitoara Date: Wed, 25 Feb 2026 16:26:57 +0100 Subject: [PATCH 2/2] [ci] fix(aws): test on branch (#172) --- aws/Dockerfile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/aws/Dockerfile b/aws/Dockerfile index 97392aba..4cb4ea5f 100644 --- a/aws/Dockerfile +++ b/aws/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.13-alpine AS builder ENV PIP_VERSION=25.0.1 -RUN apk update && apk upgrade && apk add git +RUN apk update && apk upgrade && apk add git curl WORKDIR /opt/injector_common COPY --from=injector_common ./ ./ @@ -10,17 +10,21 @@ COPY --from=injector_common ./ ./ WORKDIR / RUN git clone https://github.com/OpenAEV-Platform/client-python -RUN pip3 install --upgrade pip==${PIP_VERSION} +# Install pip==25.0.1 using get-pip.py instead of existing pip +RUN curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ + python3 get-pip.py pip==${PIP_VERSION} && \ + rm get-pip.py # poetry version available on Ubuntu 24.04 -RUN pip3 install poetry==2.3.2 \ +RUN python3 -m pip install poetry==2.3.2 \ && poetry config installer.re-resolve false \ && poetry config virtualenvs.create false ARG installdir=/opt/injector ADD . ${installdir} WORKDIR ${installdir} -RUN poetry install +RUN poetry install && \ + python3 -m pip install --no-cache-dir pip==${PIP_VERSION} FROM python:3.13-alpine AS runner @@ -39,9 +43,13 @@ ARG PYOAEV_GIT_BRANCH_OVERRIDE RUN if [[ ${PYOAEV_GIT_BRANCH_OVERRIDE} ]] ; then \ echo "Forcing specific version of client-python" && \ - apk add --no-cache git && \ - pip install --upgrade pip==${PIP_VERSION} && \ - pip install --force-reinstall git+https://github.com/OpenAEV-Platform/client-python@${PYOAEV_GIT_BRANCH_OVERRIDE} ; \ + apk add --no-cache git curl && \ + curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ + python3 get-pip.py pip==${PIP_VERSION} && \ + rm get-pip.py && \ + pip install pip3-autoremove && \ + pip-autoremove pyoaev -y && \ + pip install git+https://github.com/OpenAEV-Platform/client-python@${PYOAEV_GIT_BRANCH_OVERRIDE} ; \ fi # Verify AWS CLI is installed