2020-04-02 04:36:42 +08:00
|
|
|
BootStrap: docker
|
|
|
|
From: ubuntu:18.04
|
|
|
|
|
|
|
|
%post
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get update
|
|
|
|
apt-get upgrade --no-install-recommends -y
|
|
|
|
apt-get install --no-install-recommends -y software-properties-common
|
|
|
|
apt-get install --no-install-recommends -y \
|
|
|
|
bc \
|
|
|
|
build-essential \
|
|
|
|
ccache \
|
|
|
|
clang \
|
|
|
|
clinfo \
|
|
|
|
cmake \
|
|
|
|
cmake-curses-gui \
|
|
|
|
curl \
|
|
|
|
doxygen \
|
|
|
|
enchant \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
gfortran \
|
|
|
|
git \
|
|
|
|
hdf5-tools \
|
2020-04-22 00:07:34 +08:00
|
|
|
less \
|
2020-04-02 04:36:42 +08:00
|
|
|
libblas-dev \
|
|
|
|
libeigen3-dev \
|
|
|
|
libenchant-dev \
|
|
|
|
libfftw3-dev \
|
|
|
|
libgsl-dev \
|
|
|
|
libhdf5-serial-dev \
|
2020-04-22 00:07:34 +08:00
|
|
|
libhwloc-dev \
|
2020-04-02 04:36:42 +08:00
|
|
|
libjpeg-dev \
|
|
|
|
liblapack-dev \
|
2020-04-22 00:07:34 +08:00
|
|
|
libomp-dev \
|
2020-04-02 04:36:42 +08:00
|
|
|
libopenblas-dev \
|
2020-04-22 00:07:34 +08:00
|
|
|
libnuma-dev \
|
2020-04-02 04:36:42 +08:00
|
|
|
libpng-dev \
|
|
|
|
libproj-dev \
|
|
|
|
libvtk6-dev \
|
|
|
|
make \
|
|
|
|
mpi-default-bin \
|
|
|
|
mpi-default-dev \
|
|
|
|
ninja-build \
|
|
|
|
ocl-icd-libopencl1 \
|
|
|
|
ocl-icd-opencl-dev \
|
|
|
|
python-dev \
|
|
|
|
python-pip \
|
|
|
|
python-pygments \
|
|
|
|
python-virtualenv \
|
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
|
|
|
python3-pkg-resources \
|
|
|
|
python3-setuptools \
|
|
|
|
python3-virtualenv \
|
|
|
|
rsync \
|
|
|
|
ssh \
|
|
|
|
vim-nox \
|
|
|
|
virtualenv \
|
|
|
|
voro++-dev \
|
|
|
|
wget \
|
2020-04-30 05:32:19 +08:00
|
|
|
xxd \
|
|
|
|
valgrind \
|
|
|
|
gdb
|
2020-04-02 04:36:42 +08:00
|
|
|
|
|
|
|
add-apt-repository ppa:intel-opencl/intel-opencl
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y intel-opencl-icd
|
|
|
|
|
2020-04-30 05:32:19 +08:00
|
|
|
# clean cache
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2020-05-07 03:07:02 +08:00
|
|
|
# set custom prompt indicating the container name
|
|
|
|
CUSTOM_PROMPT_ENV=/.singularity.d/env/99-zz_custom_prompt.sh
|
|
|
|
cat >$CUSTOM_PROMPT_ENV <<EOF
|
|
|
|
#!/bin/bash
|
|
|
|
PS1="[ubuntu18/intel:\u@\h] \W> "
|
|
|
|
EOF
|
|
|
|
chmod 755 $CUSTOM_PROMPT_ENV
|
|
|
|
|
|
|
|
|
2020-04-03 07:41:00 +08:00
|
|
|
%environment
|
|
|
|
LC_ALL=C
|
|
|
|
export LC_ALL
|
|
|
|
|
2020-04-02 04:36:42 +08:00
|
|
|
%labels
|
2020-05-07 03:07:02 +08:00
|
|
|
Author rbberger, akohlmey
|