Ensure Ubuntu 16.04 docker image compiles Timewarrior with gcc >6

- libshared now requires C++14

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2021-01-26 13:36:54 +01:00
parent ab240419df
commit 0fb7a88159

View file

@ -2,10 +2,14 @@ FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y \
RUN apt-get update && \
apt-get install -y build-essential software-properties-common && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get update && \
apt-get install -y \
cmake \
g++ \
gcc-snapshot \
g++-6 \
git \
locales \
man \
@ -14,7 +18,10 @@ RUN apt-get install -y \
tzdata
# Setup environment
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
update-alternatives --config gcc && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata