Skip to content

Commit

Permalink
Add Ubuntu 24.04 image
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Apr 9, 2024
1 parent 3399039 commit 322df93
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['debian', 'fedora', 'ubuntu-22.04', 'ubuntu-wo-dependencies']
image: ['debian', 'fedora', 'ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-wo-dependencies']
steps:
- uses: actions/checkout@main
- name: Build and deploy
Expand Down
95 changes: 95 additions & 0 deletions docker/Dockerfile-ubuntu-24.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
FROM ubuntu:noble
COPY install-pfft.sh /tmp
COPY install-scafacos.sh /tmp
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
apt-utils \
autoconf \
automake \
build-essential \
ccache \
clang-18 clang-tidy-18 clang-format-18 llvm-18 libclang-rt-18-dev \
cmake \
cmake-format \
curl \
cython3 \
doxygen \
ffmpeg \
gcc-12 g++-12 \
gcc-13 g++-13 \
gdb \
gfortran \
git \
gnupg \
graphviz \
jq \
lcov \
libblas-dev \
libboost-dev \
libboost-filesystem-dev \
libboost-mpi-dev \
libboost-serialization-dev \
libboost-test-dev \
libdigest-sha-perl \
libfftw3-dev \
libfftw3-mpi-dev \
libgsl-dev \
libhdf5-openmpi-dev \
liblapack-dev \
libopenmpi-dev \
libthrust-dev \
libtool \
npm \
nvidia-cuda-toolkit \
openmpi-bin \
openssh-client \
pkg-config \
pre-commit \
python3 \
python3-dev \
pylint \
python3-autopep8 \
python3-coverage \
python3-dev \
python3-h5py \
python3-lxml \
python3-matplotlib \
python3-nbconvert \
python3-numpy \
python3-numpydoc \
python3-pint \
python3-pip \
python3-pycodestyle \
python3-requests \
python3-scipy \
python3-setuptools \
python3-sphinx \
python3-sphinxcontrib.bibtex \
python3-tqdm \
python3-venv \
python3-vtk9 \
rsync \
vim && \
rm /usr/lib/x86_64-linux-gnu/librt.a /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib/x86_64-linux-gnu/libdl.a && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN bash /tmp/install-pfft.sh && rm /tmp/install-pfft.sh && \
bash /tmp/install-scafacos.sh && rm /tmp/install-scafacos.sh && \
ldconfig

ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility

RUN useradd -m espresso
USER espresso
ENV HOME="/home/espresso"
RUN cd "${HOME}" && \
python3 -m venv --system-site-packages venv && \
. venv/bin/activate && \
python3 -m pip install --no-cache \
jupyterlab==4.0.13 \
sphinx-toggleprompt==0.5.2 && \
deactivate && \
echo "source ${HOME}/venv/bin/activate" >> "${HOME}/.bash_login"
WORKDIR /home/espresso

0 comments on commit 322df93

Please sign in to comment.