Unverified Commit d372d95f authored by Jean-Noël Grad's avatar Jean-Noël Grad Committed by GitHub
Browse files

Merge pull request #191 from jngrad/remove-centos

Remove CentOS and CUDA 9 images
parents 4f126520 9838f02a
......@@ -9,8 +9,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['centos', 'debian', 'fedora', 'opensuse', 'cuda',
'ubuntu-18.04', 'ubuntu-20.04', 'ubuntu-wo-dependencies']
image: ['debian', 'fedora', 'opensuse', 'cuda',
'ubuntu-20.04', 'ubuntu-wo-dependencies']
steps:
- uses: actions/checkout@master
- name: Build and deploy
......
FROM centos/devtoolset-6-toolchain-centos7
USER root
RUN yum -y install epel-release && yum -y install \
blas-devel \
boost169-devel \
boost169-openmpi-devel \
ccache \
cmake3 \
fftw-devel \
gdb \
git \
hdf5-openmpi-devel \
lapack-devel \
make \
openmpi-devel \
python36 \
python36-devel \
python36-Cython \
python36-numpy \
python36-scipy \
python36-pip \
python36-setuptools \
vim \
which \
zlib-devel \
&& yum clean all \
&& ln -s /usr/bin/cmake3 /usr/bin/cmake
ENV BOOST_INCLUDEDIR=/usr/include/boost169
ENV BOOST_LIBRARYDIR=/usr/lib64/boost169
RUN ln -s /usr/lib64/openmpi/lib/boost169/libboost_mpi.so /usr/lib64/boost169/libboost_mpi.so
RUN useradd -m espresso -u 1000
USER 1000
ENV HOME="/home/espresso"
# install Python3 packages locally
RUN pip3 install --user h5py
WORKDIR /home/espresso
......@@ -4,7 +4,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
ccache \
cmake \
cython3 \
gdb \
git \
......@@ -27,5 +26,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m espresso
USER 1000
USER espresso
ENV HOME="/home/espresso"
ENV PATH="${PATH}:${HOME}/.local/bin"
RUN pip3 install --user 'cmake==3.17'
WORKDIR /home/espresso
FROM ubuntu:bionic
ENV DEBIAN_FRONTEND noninteractive
COPY build-and-install-scafacos.sh /tmp
COPY ubuntu-packages.txt /tmp
RUN apt-get update && xargs -a /tmp/ubuntu-packages.txt apt-get install --no-install-recommends -y \
&& apt-get install --no-install-recommends -y \
libthrust-dev \
nvidia-cuda-toolkit \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN bash /tmp/build-and-install-scafacos.sh
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
RUN useradd -m espresso
USER espresso
ENV HOME="/home/espresso"
ENV PATH="${HOME}/.local/bin:${PATH}"
RUN pip3 install --user 'cmake==3.11'
WORKDIR /home/espresso
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment