dockerfile: update base ubuntu image to 16.04 + replace ccmake with explicit cmake options

This commit is contained in:
2026-01-13 00:12:10 +01:00
parent c491750494
commit eade35bd98
4 changed files with 221 additions and 28 deletions

View File

@ -1,39 +1,46 @@
# Set the base image to Ubuntu Utopic (14.10)
FROM ubuntu:utopic
# Set the base image to Ubuntu Xenial (16.04)
FROM ubuntu:xenial
MAINTAINER Christian Dietrich <stettberger@dokucode.de>
# Install Packages required to build FAIL*
RUN sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y \
binutils-dev \
build-essential \
cmake \
git \
libboost-regex-dev \
libboost-system-dev \
libmysqlclient-dev \
protobuf-compiler \
libprotobuf-dev \
libpcl1-dev \
libboost-thread-dev \
libboost-system-dev \
libboost-regex-dev \
libboost-coroutine-dev \
libboost-context-dev \
libdwarf-dev \
libelf-dev \
libfontconfig1-dev \
zlib1g-dev \
binutils-dev \
libiberty-dev \
libmysqlclient-dev \
libpcl1-dev \
libprotobuf-dev \
libsvga1-dev \
llvm-3.4-dev \
llvm-3.9-dev \
clang-3.9 \
libsdl1.2-dev \
libgtk2.0-dev \
libwxgtk3.0-dev \
libncurses5-dev \
cmake \
cmake-curses-gui \
doxygen \
git \
screen \
protobuf-compiler \
wget \
openssh-server \
vim \
zlib1g-dev
ranger
# Symlink llvm-config-3.4 so FindLLVM.cmake can find it
RUN ln -s /usr/bin/llvm-config-3.4 /usr/local/bin/llvm-config
# Symlink clang++ to match docs
RUN ln -sf /usr/bin/clang++-3.9 /usr/bin/clang++
# Add a user for compiling FAIL*
RUN useradd fail; mkdir /home/fail; chown fail /home/fail
@ -51,13 +58,14 @@ USER fail
ENV HOME /home/fail
WORKDIR /home/fail
# Get AspectC++ v1.2 for 64 Bit
RUN wget --no-check-certificate http://www.aspectc.org/releases/1.2/ac-bin-linux-x86-64bit-1.2.tar.gz
RUN tar xvzf ac-bin-linux-x86-64bit-1.2.tar.gz; mkdir bin; mv aspectc++/ac++ aspectc++/ag++ bin/; rm -rf aspectc++
# Get AspectC++ (originally v1.2) for 64 Bit
ARG acversion="2.0"
RUN wget http://www.aspectc.org/releases/"$acversion"/ac-bin-linux-x86-64bit-"$acversion".tar.gz
RUN tar xvzf ac-bin-linux-x86-64bit-"$acversion".tar.gz; mkdir bin; mv aspectc++/ac++ aspectc++/ag++ bin/; rm -rf aspectc++
ENV PATH /home/fail/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Clone FAIL*
RUN git clone -c http.sslVerify=false https://github.com/danceos/fail.git
RUN git clone https://github.com/danceos/fail.git
WORKDIR fail
USER root