Skip to content

Commit 18f6707

Browse files
committed
chore(master): merge from master (#673)
2 parents e85e628 + e2cdbad commit 18f6707

3 files changed

Lines changed: 56 additions & 55 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
205205
- name: Install Python dependencies
206206
run: |
207-
pip install --upgrade pip setuptools py
207+
pip install --upgrade pip 'setuptools<81' py
208208
pip install -e .[all]
209209
210210
- name: Run Sphinx documentation with doctests
@@ -223,7 +223,7 @@ jobs:
223223

224224
- name: Install Python dependencies
225225
run: |
226-
pip install --upgrade pip setuptools py
226+
pip install --upgrade pip 'setuptools<81' py
227227
pip install twine wheel
228228
pip install -e .[all]
229229

Dockerfile

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ COPY requirements.txt /code/
2222
# Install all system and Python dependencies in one go
2323
# hadolint ignore=DL3008,DL3013
2424
RUN apt-get update -y && \
25-
apt-get install --no-install-recommends -y \
26-
gcc \
27-
git \
28-
libpcre3 \
29-
libpcre3-dev \
30-
libpython3.12 \
31-
python3-pip \
32-
python3.12 \
33-
python3.12-dev \
34-
vim-tiny && \
35-
pip install --no-cache-dir --upgrade "setuptools<81.0.0" && \
36-
pip install --no-cache-dir -r /code/requirements.txt && \
37-
apt-get remove -y \
38-
gcc \
39-
python3.12-dev && \
40-
apt-get autoremove -y && \
41-
apt-get clean && \
42-
rm -rf /var/lib/apt/lists/*
25+
apt-get install --no-install-recommends -y \
26+
gcc \
27+
git \
28+
libpcre3 \
29+
libpcre3-dev \
30+
libpython3.12 \
31+
python3-pip \
32+
python3.12 \
33+
python3.12-dev \
34+
vim-tiny && \
35+
pip install --no-cache-dir --upgrade 'setuptools<81' && \
36+
pip install --no-cache-dir -r /code/requirements.txt && \
37+
apt-get remove -y \
38+
gcc \
39+
python3.12-dev && \
40+
apt-get autoremove -y && \
41+
apt-get clean && \
42+
rm -rf /var/lib/apt/lists/*
4343

4444
# Copy cluster component source code
4545
WORKDIR /code
@@ -52,19 +52,19 @@ RUN if [ "${DEBUG}" -gt 0 ]; then pip install --no-cache-dir -e ".[debug]"; else
5252
# Are we building with locally-checked-out shared modules?
5353
# hadolint ignore=DL3013
5454
RUN if test -e modules/reana-commons; then \
55-
if [ "${DEBUG}" -gt 0 ]; then \
56-
pip install --no-cache-dir -e "modules/reana-commons[kubernetes]" --upgrade; \
57-
else \
58-
pip install --no-cache-dir "modules/reana-commons[kubernetes]" --upgrade; \
59-
fi \
60-
fi; \
61-
if test -e modules/reana-db; then \
62-
if [ "${DEBUG}" -gt 0 ]; then \
63-
pip install --no-cache-dir -e "modules/reana-db" --upgrade; \
64-
else \
65-
pip install --no-cache-dir "modules/reana-db" --upgrade; \
66-
fi \
67-
fi
55+
if [ "${DEBUG}" -gt 0 ]; then \
56+
pip install --no-cache-dir -e "modules/reana-commons[kubernetes]" --upgrade; \
57+
else \
58+
pip install --no-cache-dir "modules/reana-commons[kubernetes]" --upgrade; \
59+
fi \
60+
fi; \
61+
if test -e modules/reana-db; then \
62+
if [ "${DEBUG}" -gt 0 ]; then \
63+
pip install --no-cache-dir -e "modules/reana-db" --upgrade; \
64+
else \
65+
pip install --no-cache-dir "modules/reana-db" --upgrade; \
66+
fi \
67+
fi
6868

6969
# Check for any broken Python dependencies
7070
RUN pip check
@@ -75,12 +75,12 @@ ARG UWSGI_MAX_FD=1048576
7575
ARG UWSGI_PROCESSES=2
7676
ARG UWSGI_THREADS=2
7777
ENV FLASK_APP=reana_workflow_controller/app.py \
78-
PYTHONPATH=/workdir \
79-
TERM=xterm \
80-
UWSGI_BUFFER_SIZE=${UWSGI_BUFFER_SIZE:-8192} \
81-
UWSGI_MAX_FD=${UWSGI_MAX_FD:-1048576} \
82-
UWSGI_PROCESSES=${UWSGI_PROCESSES:-2} \
83-
UWSGI_THREADS=${UWSGI_THREADS:-2}
78+
PYTHONPATH=/workdir \
79+
TERM=xterm \
80+
UWSGI_BUFFER_SIZE=${UWSGI_BUFFER_SIZE:-8192} \
81+
UWSGI_MAX_FD=${UWSGI_MAX_FD:-1048576} \
82+
UWSGI_PROCESSES=${UWSGI_PROCESSES:-2} \
83+
UWSGI_THREADS=${UWSGI_THREADS:-2}
8484

8585
# Expose ports to clients
8686
EXPOSE 5000
@@ -90,22 +90,22 @@ EXPOSE 5000
9090
# while also allowing shell expansion
9191
# hadolint ignore=DL3025
9292
CMD exec uwsgi \
93-
--buffer-size ${UWSGI_BUFFER_SIZE} \
94-
--die-on-term \
95-
--hook-master-start "unix_signal:2 gracefully_kill_them_all" \
96-
--hook-master-start "unix_signal:15 gracefully_kill_them_all" \
97-
--enable-threads \
98-
--http-socket 0.0.0.0:5000 \
99-
--master \
100-
--max-fd ${UWSGI_MAX_FD} \
101-
--module reana_workflow_controller.app:app \
102-
--need-app \
103-
--processes ${UWSGI_PROCESSES} \
104-
--single-interpreter \
105-
--stats /tmp/stats.socket \
106-
--threads ${UWSGI_THREADS} \
107-
--vacuum \
108-
--wsgi-disable-file-wrapper
93+
--buffer-size ${UWSGI_BUFFER_SIZE} \
94+
--die-on-term \
95+
--hook-master-start "unix_signal:2 gracefully_kill_them_all" \
96+
--hook-master-start "unix_signal:15 gracefully_kill_them_all" \
97+
--enable-threads \
98+
--http-socket 0.0.0.0:5000 \
99+
--master \
100+
--max-fd ${UWSGI_MAX_FD} \
101+
--module reana_workflow_controller.app:app \
102+
--need-app \
103+
--processes ${UWSGI_PROCESSES} \
104+
--single-interpreter \
105+
--stats /tmp/stats.socket \
106+
--threads ${UWSGI_THREADS} \
107+
--vacuum \
108+
--wsgi-disable-file-wrapper
109109

110110
# Set image labels
111111
LABEL org.opencontainers.image.authors="team@reanahub.io"

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
# REANA is free software; you can redistribute it and/or modify it
55
# under the terms of the MIT License; see LICENSE file for more details.
66

7+
setuptools<81
78
-e .[all]

0 commit comments

Comments
 (0)