Skip to content

Commit 922a30d

Browse files
Dockerfile: lock poetry installation to v2.0.1
This avoids the docker image builders breaking with: ERROR [linux/amd64 builder 15/17] RUN poetry export -o requirements.txt --without-hashes 0.780 pyproject.toml changed significantly since poetry.lock was last generated. Run Resolving dependencies... to fix the lock file. This occurred when the default installation version changed underneath us. Changelog-None
1 parent 627420e commit 922a30d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ RUN apt-get update -qq && \
9090
tclsh
9191

9292
ENV PATH="/root/.local/bin:$PATH" \
93-
PYTHON_VERSION=3
93+
PYTHON_VERSION=3 \
94+
POETRY_VERSION=2.0.1
9495
RUN curl -sSL https://install.python-poetry.org | python3 - && \
9596
poetry self add poetry-plugin-export
9697
RUN mkdir -p /root/.venvs && \

contrib/reprobuild/Dockerfile.focal

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \
4949

5050
RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \
5151
&& rm /tmp/get-pip.py \
52-
&& pip install poetry mako grpcio-tools==1.62.2 && \
52+
&& pip install poetry==2.0.1 mako grpcio-tools==1.62.2 && \
5353
poetry self add poetry-plugin-export
5454

5555
RUN wget https://sh.rustup.rs -O rustup-install.sh && \

contrib/reprobuild/Dockerfile.jammy

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \
4747

4848
RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \
4949
&& rm /tmp/get-pip.py \
50-
&& pip install poetry mako grpcio-tools && \
50+
&& pip install poetry==2.0.1 mako grpcio-tools && \
5151
poetry self add poetry-plugin-export
5252

5353
RUN wget https://sh.rustup.rs -O rustup-install.sh && \

contrib/reprobuild/Dockerfile.noble

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \
4545

4646
RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \
4747
&& rm /tmp/get-pip.py \
48-
&& pip install poetry mako grpcio-tools && \
48+
&& pip install poetry==2.0.1 mako grpcio-tools && \
4949
poetry self add poetry-plugin-export
5050

5151
RUN wget https://sh.rustup.rs -O rustup-install.sh && \

0 commit comments

Comments
 (0)