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

Fix user for binding tests #96

Merged
merged 14 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from 6 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
6 changes: 5 additions & 1 deletion tests/Test_bindings.Ubuntu1804/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# System testing preCICE bindings

# Building on top of the latets preCICE-build
# Building on top of the latest preCICE-build
ARG from=precice/precice-ubuntu1804.home-develop
FROM $from

Expand All @@ -13,6 +13,8 @@ ENV FORTRAN=gfortran
RUN apt-get -qq update && apt-get -qq install \
cython3 python3-pip python3-numpy python3-mpi4py python3-setuptools python3-dev && \
rm -rf /var/lib/apt/lists/*

USER precice

# Builds the python_future python bindings for python3
WORKDIR $PRECICE_ROOT/src/precice/bindings/python_future
Expand Down Expand Up @@ -52,4 +54,6 @@ RUN gfortran $PRECICE_ROOT/src/precice/bindings/f2003/SolverInterfaceF2003.f90 -
RUN ./solverdummy ../precice-config.xml SolverOne MeshOne & ./solverdummy ../precice-config.xml SolverTwo MeshTwo

# Creating Output folder
USER root
RUN mkdir /Output
USER precice
8 changes: 6 additions & 2 deletions tests/Test_bindings/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ RUN apt-get -qq update && apt-get -qq install \

# Installing necessary python dependecies; we have to use pip, since cython provided by apt-get is too old.
RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py && \
python3 get-pip.py && \
pip3 install Cython mpi4py numpy enum34
python3 get-pip.py

USER precice
RUN pip3 install --user cython mpi4py numpy enum34

# Builds the python_future python bindings for python3
WORKDIR $PRECICE_ROOT/src/precice/bindings/python_future
Expand Down Expand Up @@ -57,4 +59,6 @@ RUN gfortran $PRECICE_ROOT/src/precice/bindings/f2003/SolverInterfaceF2003.f90 -
RUN ./solverdummy ../precice-config.xml SolverOne MeshOne & ./solverdummy ../precice-config.xml SolverTwo MeshTwo

# Creating Output folder
USER root
RUN mkdir /Output
USER precice