-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathci-archlinux.dockerfile
More file actions
40 lines (36 loc) · 1.14 KB
/
ci-archlinux.dockerfile
File metadata and controls
40 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM archlinux:latest
# Add the precice user to run test with mpi
RUN useradd -m -s /bin/bash precice
ENV PRECICE_USER precice
# Install necessary dependencies for preCICE
# Installing PETSc from AUR requires a non-root user
RUN pacman -Syu --needed --noconfirm \
base-devel \
benchmark \
boost \
boost-libs \
ccache \
clang \
cmake \
curl \
eigen \
hwloc \
cairo \
gcc \
gcc-fortran \
git \
libxml2 \
xz \
make \
ninja \
python \
python-numpy \
python-pip \
openssh
# TODO reactivate petsc4py once they release a fix for cython
RUN useradd -m -G wheel aur && \
echo "%wheel ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers && \
su -l aur -c "git clone https://aur.archlinux.org/petsc.git && cd petsc && sed -i -e 's/--with-petsc4py=1/--with-petsc4py=0/' -e 's/--with-ptscotch-include=\/usr\/include /--with-ptscotch-include=\/usr\/include\/scotch /' PKGBUILD && makepkg --noconfirm -si" && \
userdel -rf aur && \
pacman --noconfirm -Scc
CMD ["/bin/bash", "--login"]