Add gcc-9 to build images

This commit is contained in:
alesapin 2019-05-20 12:51:52 +03:00
parent ee84b8f8bb
commit ec22af6da0
2 changed files with 24 additions and 3 deletions

View File

@ -1,7 +1,18 @@
FROM ubuntu:18.04
RUN apt-get --allow-unauthenticated update -y \
&& env DEBIAN_FRONTEND=noninteractive \
apt-get --allow-unauthenticated install --yes --no-install-recommends \
bash \
fakeroot \
cmake \
ccache \
curl \
software-properties-common
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main" >> /etc/apt/sources.list
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list
RUN add-apt-repository -y ppa:jonathonf/gcc-9.0
RUN apt-get update -y \
&& env DEBIAN_FRONTEND=noninteractive \
@ -14,6 +25,8 @@ RUN apt-get update -y \
g++-7 \
gcc-8 \
g++-8 \
gcc-9 \
g++-9 \
clang-6.0 \
lld-6.0 \
libclang-6.0-dev \

View File

@ -1,8 +1,5 @@
FROM ubuntu:18.04
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main" >> /etc/apt/sources.list
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list
RUN apt-get --allow-unauthenticated update -y \
&& env DEBIAN_FRONTEND=noninteractive \
apt-get --allow-unauthenticated install --yes --no-install-recommends \
@ -11,10 +8,21 @@ RUN apt-get --allow-unauthenticated update -y \
cmake \
ccache \
curl \
software-properties-common
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main" >> /etc/apt/sources.list
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list
RUN add-apt-repository -y ppa:jonathonf/gcc-9.0
RUN apt-get --allow-unauthenticated update -y \
&& env DEBIAN_FRONTEND=noninteractive \
apt-get --allow-unauthenticated install --yes --no-install-recommends \
gcc-7 \
g++-7 \
gcc-8 \
g++-8 \
gcc-9 \
g++-9 \
clang-6.0 \
lld-6.0 \
libclang-6.0-dev \