Skip to content

Commit 311e3ea

Browse files
committed
🐛 Consistently use pip install --use-feature=2020-resolver
1 parent 8fc5449 commit 311e3ea

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

Dockerfile-core

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM ubuntu:18.04
22

3+
ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
34
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
45
ENV PIP_DEFAULT_TIMEOUT=120
56

@@ -35,7 +36,7 @@ RUN curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
3536

3637

3738
# Install pip installable-stuff
38-
RUN pip3 install --no-cache-dir \
39+
RUN ${PIP_INSTALL} \
3940
'ocrd >= 2.13.1'
4041

4142

Dockerfile-dinglehopper

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM my_ocrd_workflow-core
22

3-
3+
ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
44
ENV DINGLEHOPPER_COMMIT 2b98f69
55

66

77
# Build pip installable stuff
8-
RUN pip3 install --no-cache-dir \
8+
RUN ${PIP_INSTALL} \
99
# Now the real stuff:
1010
https://github.com/qurator-spk/dinglehopper/archive/$DINGLEHOPPER_COMMIT.tar.gz
1111

Dockerfile-ocrd_calamari

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM my_ocrd_workflow-core
22

3+
ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
4+
35

46
# Build pip installable stuff
5-
RUN pip3 install --no-cache-dir \
7+
RUN ${PIP_INSTALL} \
68
# Resolve conflicts early:
79
'tensorflow-gpu == 1.15.*' \
810
'calamari-ocr == 0.3.5' \

Dockerfile-ocrd_olena

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM my_ocrd_workflow-core
22

3+
ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
34
ENV OCRD_OLENA_VERSION 1.2.0
45

6+
57
# Build ocrd_olena
68
RUN apt-get update && \
79
apt-get install -y \
@@ -19,7 +21,7 @@ RUN curl -sSL --retry 3 -o ocrd_olena.tar.gz https://github.com/OCR-D/ocrd_olena
1921
tar xvz -C ocrd_olena --strip-components=1 -f ocrd_olena.tar.gz && \
2022
cd ocrd_olena && \
2123
sed -i 's/^install: deps$/install:/' Makefile && \
22-
pip3 install --no-cache-dir --use-feature=2020-resolver ocrd && \
24+
${PIP_INSTALL} ocrd && \
2325
make install PREFIX=/usr/local && \
2426
cd .. && rm -rf ocrd_olena ocrd_olena.tar.gz
2527

Dockerfile-ocrd_tesserocr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM my_ocrd_workflow-core
22

3-
3+
ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
44
ENV TESSDATA_BEST_VERSION 4.0.0
55
ENV TESSDATA_PREFIX /usr/local/share/tessdata
66

@@ -22,7 +22,7 @@ COPY data/tesseract-models/GT4HistOCR/GT4HistOCR_2000000.traineddata $TESSDATA_P
2222

2323

2424
# Build pip installable stuff
25-
RUN pip3 install --no-cache-dir \
25+
RUN ${PIP_INSTALL} \
2626
# Now the real stuff:
2727
'ocrd_tesserocr >= 0.9.0'
2828

Dockerfile-sbb_textline_detector

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM my_ocrd_workflow-core
22

3-
3+
ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
44
ENV SBB_TEXTLINE_DETECTOR_COMMIT 0f09f4a
55

66

77
# Build pip installable stuff
8-
RUN pip3 install --no-cache-dir \
8+
RUN ${PIP_INSTALL} \
99
# Now the real stuff:
1010
https://github.com/qurator-spk/sbb_textline_detector/archive/$SBB_TEXTLINE_DETECTOR_COMMIT.tar.gz
1111

0 commit comments

Comments
 (0)