Skip to content

Commit a6acc88

Browse files
committed
build(docker): non-editable submodules in "latest" mode (#255)
When running development cluster in "latest" mode, install shared modules in non-editable mode. The editable mode should be reserved only for development clusters in "debug" mode with the live code reload.
1 parent bcd87d1 commit a6acc88

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ ARG DEBUG=0
4646
RUN if [ "${DEBUG}" -gt 0 ]; then pip install --no-cache-dir -e ".[debug]"; else pip install --no-cache-dir .; fi;
4747

4848
# Are we building with locally-checked-out shared modules?
49-
# hadolint ignore=SC2102
50-
RUN if test -e modules/reana-commons; then pip install --no-cache-dir -e modules/reana-commons[kubernetes] --upgrade; fi
49+
# hadolint ignore=DL3013
50+
RUN if test -e modules/reana-commons; then \
51+
if [ "${DEBUG}" -gt 0 ]; then \
52+
pip install --no-cache-dir -e "modules/reana-commons[kubernetes]" --upgrade; \
53+
else \
54+
pip install --no-cache-dir "modules/reana-commons[kubernetes]" --upgrade; \
55+
fi \
56+
fi
5157

5258
# Check for any broken Python dependencies
5359
RUN pip check

0 commit comments

Comments
 (0)