Dockerfile 808 Bytes
Newer Older
1
FROM ubuntu:16.04
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
2

3
RUN apt-get update
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
4
RUN apt-get install -y \
5
6
7
cmake gfortran git libblas-dev libglu1-mesa libhdf5-dev liblapack-dev libmetis-dev \
libnetcdf-dev libopenmpi-dev libsm6 libxcursor1 libxft2 libxinerama1 \
openmpi-bin python3-dev python3-mpi4py python3-numpy python3-scipy swig unzip
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
8

9
RUN apt-get install -y petsc-dev
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
10

11
RUN apt-get install -y curl
12
13
RUN curl -L -O https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz
RUN tar xf petsc4py-3.6.0.tar.gz
14
RUN /bin/bash -c 'cd petsc4py-3.6.0/; PETSC_DIR=/usr/lib/petscdir/3.6.2/x86_64-linux-gnu-real/ python3 setup.py install'
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
15

16
17
RUN apt-get install -y gmsh
RUN apt-get install -y python3-netcdf4
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
18
RUN apt-get install -y libtiff-dev
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
19

20
VOLUME ["/etc/gitlab-runner"]
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
21

22
23
24
RUN useradd -ms /bin/bash validator
USER validator
WORKDIR /home/validator