Verified Commit de95a492 authored by Jean-Noël Grad's avatar Jean-Noël Grad
Browse files

Reduce size of Ubuntu images

GitHub runners are limited to 7 GB of RAM, which limits docker image
sizes to at most 6.6 GB. Removing suggested packages saves 1.8 GB in
the Ubuntu 20.04 image.
parent 7ee33994
......@@ -2,8 +2,8 @@ ARG BASE_VERSION=3.3
FROM rocm/dev-ubuntu-18.04:${BASE_VERSION}
ENV DEBIAN_FRONTEND noninteractive
COPY ubuntu-packages.txt /tmp
RUN apt-get update && xargs -a /tmp/ubuntu-packages.txt apt-get install -y \
&& apt-get install -y \
RUN apt-get update && xargs -a /tmp/ubuntu-packages.txt apt-get install --no-install-recommends -y \
&& apt-get install --no-install-recommends -y \
rocrand rocfft rocthrust kmod \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
......
......@@ -2,8 +2,8 @@ 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 -y \
&& apt-get install -y \
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/*
......
......@@ -2,8 +2,8 @@ FROM ubuntu:focal
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 -y \
&& apt-get install -y \
RUN apt-get update && xargs -a /tmp/ubuntu-packages.txt apt-get install --no-install-recommends -y \
&& apt-get install -y --no-install-recommends \
clang-9 clang-tidy-9 clang-format-9 \
doxygen \
ffmpeg \
......
......@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
git \
libboost-dev libboost-serialization-dev libboost-mpi-dev libboost-filesystem-dev libboost-test-dev \
libopenmpi-dev \
openssh-client \
openmpi-bin \
python3 \
python3-numpy \
......
apt-utils
autoconf
automake
build-essential
ccache
cmake
......@@ -17,15 +18,18 @@ libgsl-dev
libhdf5-openmpi-dev
liblapack-dev
libopenmpi-dev
libtool
openmpi-bin
openssh-client
pkg-config
python3
python3-dev
python3-numpy
python3-numpydoc
python3-scipy
python3-h5py
python3-pip
python3-lxml
python3-requests
python3-setuptools
python3-vtk7
......
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