Skip to content

Commit

Permalink
debian-bookworm/sim: use /opt/venv instead of --break-system-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Jul 18, 2023
1 parent a7185ff commit 7cf45bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian-bookworm/osvb.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ RUN apt-get update -qq \
&& rm -rf /var/lib/apt/lists/*

RUN --mount=type=cache,from=pkg-osvb,src=/osvb/,target=/tmp/osvb/ \
pip3 install -U /tmp/osvb/*.whl pytest --progress-bar off --break-system-packages \
pip3 install -U /tmp/osvb/*.whl pytest --progress-bar off \
&& rm -rf ~/.cache \
&& mkdir /opt/osvb \
&& cp -vr /tmp/osvb/osvvmlibs/ /opt/osvb/osvvmlibs/
Expand Down
2 changes: 1 addition & 1 deletion debian-bookworm/scipy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ RUN apt update -qq \
&& apt install -y imagemagick libssl-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& python3 -m pip install matplotlib numpy --progress-bar off --break-system-packages
&& python3 -m pip install matplotlib numpy --progress-bar off
5 changes: 5 additions & 0 deletions debian-bookworm/sim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ RUN apt-get update -qq \
libzstd1 \
perl \
python3-pip \
python3-venv \
make \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

0 comments on commit 7cf45bf

Please sign in to comment.