mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
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:
parent
ab240419df
commit
0fb7a88159
1 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue