Skip to content

Commit

Permalink
venv
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 13, 2024
1 parent 6928a0c commit b03ed95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ RUN apt-get update
RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools

# Useful only in 3.22 and 3.28: drop when not need anymore
RUN apt-get update && apt-get -y install python3-pip python3-venv python3-pytest
RUN apt-get update && apt-get -y install python3-pip python3-venv python3-pytest wheel
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv --system-site-packages $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

RUN pip3 install wheel
COPY ./requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion .docker/run-docker-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ echo ""

pushd /usr/src
DEFAULT_PARAMS='-v'
xvfb-run pytest ${@:-`echo $DEFAULT_PARAMS`} $1 $2
xvfb-run python -m pytest ${@:-`echo $DEFAULT_PARAMS`} $1 $2
popd

0 comments on commit b03ed95

Please sign in to comment.