Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
name: getfemdoc/getfem
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "openmpi"
46 changes: 30 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,54 +1,68 @@
FROM ubuntu:bionic
MAINTAINER [email protected]
FROM ubuntu:latest
# LABEL maintainer=""

SHELL ["/bin/bash", "-c"]

ENV DEBIAN_FRONTEND=noninteractive
# ENV DEBCONF_NOWARNINGS yes
ENV LANG C.UTF-8
ENV TERM xterm
ENV TAG_NAME=master

USER root
WORKDIR work
RUN apt-get update
# RUN apt-get -y --no-install-recommends upgrade

# getfem repository

RUN apt-get install -y --no-install-recommends ca-certificates
RUN apt-get install -y --no-install-recommends git
RUN git clone https://git.savannah.nongnu.org/git/getfem.git
# RUN apt-get install -y --no-install-recommends git
# RUN git clone https://git.savannah.nongnu.org/git/getfem.git
RUN apt-get install -y --no-install-recommends wget
RUN wget http://download-mirror.savannah.gnu.org/releases/getfem/stable/getfem-5.4.1.tar.gz
RUN tar xzf getfem-5.4.1.tar.gz

# install dependencies

RUN apt-get install -y --no-install-recommends automake
RUN apt-get update
# RUN apt-get install -y --no-install-recommends automake
RUN apt-get install -y --no-install-recommends libtool
RUN apt-get install -y --no-install-recommends make
RUN apt-get install -y --no-install-recommends g++
RUN apt-get install -y --no-install-recommends gfortran
RUN apt-get install -y --no-install-recommends libopenmpi-dev
RUN apt-get install -y --no-install-recommends openmpi-bin
RUN apt-get install -y --no-install-recommends libhdf5-openmpi-dev
RUN apt-get install -y --no-install-recommends libqd-dev
RUN apt-get install -y --no-install-recommends libqhull-dev
RUN apt-get install -y --no-install-recommends libmumps-seq-dev
RUN apt-get install -y --no-install-recommends liblapack-dev
RUN apt-get install -y --no-install-recommends libopenblas-dev
RUN apt-get install -y --no-install-recommends libpython3-dev
RUN apt-get install -y --no-install-recommends ufraw
RUN apt-get install -y --no-install-recommends imagemagick
RUN apt-get install -y --no-install-recommends fig2dev
RUN apt-get install -y --no-install-recommends texlive
RUN apt-get install -y --no-install-recommends xzdec
RUN apt-get install -y --no-install-recommends fig2ps
RUN apt-get install -y --no-install-recommends gv
# RUN apt-get install -y --no-install-recommends ufraw
# RUN apt-get install -y --no-install-recommends imagemagick
# RUN apt-get install -y --no-install-recommends fig2dev
# RUN apt-get install -y --no-install-recommends texlive
# RUN apt-get install -y --no-install-recommends xzdec
# RUN apt-get install -y --no-install-recommends fig2ps
# RUN apt-get install -y --no-install-recommends gv
RUN apt-get install -y --no-install-recommends python3-pip
RUN apt-get install -y --no-install-recommends python3-venv
# RUN apt-get install -y --no-install-recommends python3-numpy
# RUN apt-get install -y --no-install-recommends python3-scipy
# RUN apt-get install -y --no-install-recommends python3-sphinx
# RUN apt-get install -y --no-install-recommends python3-mpi4py

# compile and install

RUN python3 -m venv /venv
RUN source /venv/bin/activate && \
cd getfem && \
cd getfem-5.4.1/ && \
pip install --no-cache --upgrade pip && \
pip install -r requirements.txt && \
git checkout $TAG_NAME && \
bash autogen.sh && \
pip install numpy scipy sphinx mpi4py && \
# git checkout $TAG_NAME && \
# bash autogen.sh && \
./configure --prefix=/venv --with-pic && \
make -j8 && \
make -j8 check && \
Expand Down