Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pytest to local env PATH #6337

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docker/Dockerfile.oldev
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ COPY --chown=openlibrary:openlibrary requirements*.txt ./
RUN python -m pip install -r requirements_test.txt \
&& python -m pip list --outdated

# Link the pytest CLI binary into /usr/local/bin so that it shows up
# on the PATH. Do this instead of trying to modify the PATH, because
# that causes headaches with su, cron, etc.
USER root
RUN ln -s /home/openlibrary/.local/bin/pytest /usr/local/bin/pytest
USER openlibrary

COPY --chown=openlibrary:openlibrary package*.json ./
RUN npm install