Skip to content

Commit

Permalink
chore(scripts): make openshift debugger to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Sasák committed Jul 19, 2023
1 parent bd99cd8 commit 7a51ed0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/openshift-debugger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ RUN cd /opt/ && \
| tar -xz --strip-components=1 -C kafka/

WORKDIR /debugger
ADD /tests/Pipfile* /debugger/
ADD pyproject.toml /debugger/
ADD poetry.lock /debugger/
ADD /scripts/inventory_sync.py /debugger/
ADD /common/logging.py /debugger/common/

ENV LC_ALL=C.utf8
ENV LANG=C.utf8
ARG PIPENV_CHECK=1
ARG PIPENV_PYUP_API_KEY=""
RUN pip3 install --upgrade pipenv && \
pipenv install --ignore-pipfile --deploy --system && ln -s /usr/bin/python3 /usr/bin/python && \
if [ "${PIPENV_CHECK}" == 1 ] ; then pipenv check --system ; fi
RUN pip3 install --upgrade poetry
RUN poetry export --with dev -f requirements.txt --output requirements.txt && \
pip3 install -r requirements.txt

RUN adduser --gid 0 -d /debugger --no-create-home insights
RUN chown -R insights:0 /debugger && chmod 777 /debugger
Expand Down

0 comments on commit 7a51ed0

Please sign in to comment.