Skip to content

Commit 200c7bd

Browse files
authored
lock pdm version (#2776)
1 parent 21360c4 commit 200c7bd

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
# are updated. The generated requirements.txt does not, so it is
99
# more cacheable.
1010
FROM python:3.12 AS requirements
11-
RUN pip install pdm
11+
RUN pip install pdm==2.22.1
1212
COPY pdm.lock pyproject.toml .
1313
RUN pdm export --prod --no-hashes | grep -v ^-e | grep -v nidx_protos > requirements.lock.txt
1414

1515
FROM python:3.12
1616
RUN mkdir -p /usr/src/app
17-
RUN pip install pdm
17+
RUN pip install pdm==2.22.1
1818
RUN set -eux; \
1919
dpkgArch="$(dpkg --print-architecture)"; \
2020
case "${dpkgArch##*-}" in \

Dockerfile.node_sidecar

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
#
44

55
FROM python:3.12 AS requirements
6-
RUN pip install pdm
6+
RUN pip install pdm==2.22.1
77
COPY pdm.lock pyproject.toml .
88
RUN pdm export --prod --no-default -G sidecar --no-hashes | grep -v ^-e > requirements.lock.txt
99

1010
FROM python:3.12
1111
RUN mkdir -p /usr/src/app
12-
RUN pip install pdm
12+
RUN pip install pdm==2.22.1
1313
RUN set -eux; \
1414
dpkgArch="$(dpkg --print-architecture)"; \
1515
case "${dpkgArch##*-}" in \
@@ -36,7 +36,7 @@ COPY nucliadb_protos /usr/src/app/nucliadb_protos
3636
COPY nucliadb_sidecar /usr/src/app/nucliadb_sidecar
3737

3838
# Install our packages to the virtualenv
39-
RUN pdm sync --prod --no-default -G sidecar --no-editable
39+
RUN pdm sync --prod --no-default -G sidecar --no-editable -v
4040

4141
ENV PATH="/usr/src/app/.venv/bin:$PATH"
4242
CMD ["node_sidecar"]

Dockerfile.pipbinding

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
# are updated. The generated requirements.txt does not, so it is
88
# more cacheable.
99
FROM python:3.12 AS requirements
10-
RUN pip install pdm
10+
RUN pip install pdm==2.22.1
1111
COPY pdm.lock pyproject.toml .
1212
RUN pdm export --prod --no-hashes | grep -v ^-e | grep -v nidx_protos > requirements.lock.txt
1313

1414
FROM python:3.12
15-
RUN pip install pdm
15+
RUN pip install pdm==2.22.1
1616
RUN set -eux; \
1717
dpkgArch="$(dpkg --print-architecture)"; \
1818
case "${dpkgArch##*-}" in \

Dockerfile.withbinding

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ RUN set -eux; \
5353
# are updated. The generated requirements.txt does not, so it is
5454
# more cacheable.
5555
FROM python:3.12 AS requirements
56-
RUN pip install pdm
56+
RUN pip install pdm==2.22.1
5757
COPY pdm.lock pyproject.toml .
5858
RUN pdm export --prod --no-hashes | grep -v ^-e | grep -v nidx_protos > requirements.lock.txt
5959

6060
FROM python:3.12
61-
RUN pip install pdm
61+
RUN pip install pdm==2.22.1
6262
RUN set -eux; \
6363
dpkgArch="$(dpkg --print-architecture)"; \
6464
case "${dpkgArch##*-}" in \

0 commit comments

Comments
 (0)