Skip to content

Commit 7285881

Browse files
committed
Remove unused venv activate commands
1 parent c9cf77f commit 7285881

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

tools/tests/dockerfiles/ubuntu_2404/Dockerfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,13 @@ RUN add-apt-repository -y ppa:fenics-packages/fenics && \
122122
USER precice
123123
ARG FENICS_ADAPTER_REF
124124
# Building fenics-adapter
125-
RUN . /home/precice/venv/bin/activate && \
126-
pip3 install git+https://github.com/precice/fenics-adapter.git@${FENICS_ADAPTER_REF}
125+
RUN pip3 install git+https://github.com/precice/fenics-adapter.git@${FENICS_ADAPTER_REF}
127126

128127

129128
FROM python_bindings AS nutils_adapter
130129
USER precice
131130
# Installing nutils - There is no adapter
132-
RUN . /home/precice/venv/bin/activate && \
133-
pip3 install nutils
131+
RUN pip3 install nutils
134132

135133

136134
FROM precice_dependecies AS calculix_adapter
@@ -169,7 +167,6 @@ WORKDIR /home/precice
169167
RUN wget https://github.com/su2code/SU2/archive/refs/tags/v${SU2_VERSION}.tar.gz && \
170168
tar xvzf v${SU2_VERSION}.tar.gz && \
171169
rm -fv v${SU2_VERSION}.tar.gz
172-
RUN . /home/precice/venv/bin/activate
173170
ARG SU2_ADAPTER_PR
174171
ARG SU2_ADAPTER_REF
175172
WORKDIR /home/precice
@@ -213,16 +210,13 @@ WORKDIR /home/precice
213210
COPY --from=precice /home/precice/.local/ /home/precice/.local/
214211

215212
ARG MICRO_MANAGER_REF
216-
RUN python3 -m venv /home/precice/venv && \
217-
. /home/precice/venv/bin/activate && \
218-
git clone https://github.com/precice/micro-manager.git && \
213+
RUN git clone https://github.com/precice/micro-manager.git && \
219214
cd micro-manager && \
220215
if [ -n "${MICRO_MANAGER_PR}" ]; then git fetch origin pull/${MICRO_MANAGER_PR}/head; fi && \
221216
git checkout ${MICRO_MANAGER_REF} && \
222217
pip3 install .
218+
RUN pip3 install pybind11
223219
WORKDIR /home/precice
224-
RUN . /home/precice/venv/bin/activate && \
225-
pip3 install pybind11
226220

227221
FROM micro_manager AS dumux_adapter
228222
USER root

0 commit comments

Comments
 (0)