Skip to content

Commit

Permalink
dockerfile: use shell-oriented DEBUG flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Jul 3, 2019
1 parent a7b5d25 commit e1a27f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ RUN pip install --no-cache-dir requirements-builder && \
COPY . /code

# Debug off by default
ARG DEBUG=false
RUN if [ "${DEBUG}" = "true" ]; then pip install -r requirements-dev.txt; pip install -e .; else pip install .; fi;
ARG DEBUG=0
RUN if [ "${DEBUG}" -gt 0 ]; then pip install -r requirements-dev.txt; pip install -e .; else pip install .; fi;

# Building with locally-checked-out shared modules?
RUN if test -e modules/reana-commons; then pip install modules/reana-commons --upgrade; fi
RUN if test -e modules/reana-db; then pip install modules/reana-db --upgrade; fi

# Check if there are broken requirements
RUN pip check

ARG UWSGI_PROCESSES=2
ENV UWSGI_PROCESSES ${UWSGI_PROCESSES:-2}
ARG UWSGI_THREADS=2
Expand Down

0 comments on commit e1a27f2

Please sign in to comment.