Module: check_mk
Branch: master
Commit: 4de744ae110f665e58474a9d6709e078b6220b3e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4de744ae110f66…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Thu Jan 24 08:14:21 2019 +0100
CMK-1547 Docker Container zum bauen auf allen supporteten Ubuntu Distros
Change-Id: I8230bc5d4eca65437c6b3565754b903c0595b058
---
.../build-nodes/ubuntu-14.04/Dockerfile | 54 ++++++++++++++++++++
.../build-nodes/ubuntu-16.04/Dockerfile | 57 +++++++++++++++++++++
.../build-nodes/ubuntu-17.10/Dockerfile | 58 ++++++++++++++++++++++
.../build-nodes/ubuntu-18.04/Dockerfile | 47 ++++++------------
.../build-nodes/ubuntu-18.10/Dockerfile | 58 ++++++++++++++++++++++
5 files changed, 241 insertions(+), 33 deletions(-)
diff --git a/buildscripts/infrastructure/build-nodes/ubuntu-14.04/Dockerfile
b/buildscripts/infrastructure/build-nodes/ubuntu-14.04/Dockerfile
new file mode 100644
index 0000000..fd388ea
--- /dev/null
+++ b/buildscripts/infrastructure/build-nodes/ubuntu-14.04/Dockerfile
@@ -0,0 +1,54 @@
+FROM ubuntu:14.04
+
+SHELL ["/bin/bash", "-c"]
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update \
+ && apt-get install -y \
+ apache2 \
+ apache2-threaded-dev \
+ build-essential \
+ dietlibc-dev \
+ dnsutils \
+ dpatch \
+ flex \
+ gettext \
+ git-buildpackage \
+ libboost-all-dev \
+ libcloog-ppl1 \
+ libcurl4-openssl-dev \
+ libevent-dev \
+ libffi-dev \
+ libgd2-xpm-dev \
+ libglib2.0-dev \
+ libgnutls-dev \
+ libgsf-1-dev \
+ libldap2-dev \
+ libltdl-dev \
+ libmcrypt-dev \
+ libmysqlclient15-dev \
+ libncurses5-dev \
+ libpango1.0-dev \
+ libpcap-dev \
+ libperl-dev \
+ libpq-dev \
+ libradiusclient-ng-dev \
+ libreadline-dev \
+ librrd-dev \
+ libsqlite3-dev \
+ libssl-dev \
+ libxml2-dev \
+ openssh-client \
+ patch \
+ rpcbind \
+ smbclient \
+ texinfo \
+ tk-dev \
+ uuid-dev \
+ && rm -rf /var/lib/apt/lists/*
+
+COPY bw-build-gnu-toolchain.sh /usr/sbin
+RUN bw-build-gnu-toolchain.sh -b
+RUN mv /usr/bin/gcc /usr/bin/gcc-old \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/gcc \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/cc
diff --git a/buildscripts/infrastructure/build-nodes/ubuntu-16.04/Dockerfile
b/buildscripts/infrastructure/build-nodes/ubuntu-16.04/Dockerfile
new file mode 100644
index 0000000..9df9c77
--- /dev/null
+++ b/buildscripts/infrastructure/build-nodes/ubuntu-16.04/Dockerfile
@@ -0,0 +1,57 @@
+FROM ubuntu:16.04
+
+SHELL ["/bin/bash", "-c"]
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update \
+ && apt-get install -y \
+ apache2 \
+ apache2-dev \
+ autoconf \
+ build-essential \
+ devscripts \
+ dnsutils \
+ dpatch \
+ flex \
+ gettext \
+ git-buildpackage \
+ libboost-all-dev \
+ libcloog-ppl1 \
+ libcurl4-openssl-dev \
+ libevent-dev \
+ libffi-dev \
+ libfreeradius-dev \
+ libgd-dev \
+ libglib2.0-dev \
+ libgnutls-dev \
+ libgsf-1-dev \
+ libldap2-dev \
+ libltdl-dev \
+ libmcrypt-dev \
+ libmysqlclient-dev \
+ libncurses5-dev \
+ libpango1.0-dev \
+ libpcap-dev \
+ libperl-dev \
+ libpq-dev \
+ libreadline-dev \
+ librrd-dev \
+ libsqlite3-dev \
+ libssl-dev \
+ libtool \
+ libxml2-dev \
+ openssh-client \
+ patch \
+ rpcbind \
+ rsync \
+ smbclient \
+ texinfo \
+ tk-dev \
+ uuid-dev \
+ && rm -rf /var/lib/apt/lists/*
+
+COPY bw-build-gnu-toolchain.sh /usr/sbin
+RUN bw-build-gnu-toolchain.sh -b
+RUN mv /usr/bin/gcc /usr/bin/gcc-old \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/gcc \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/cc
diff --git a/buildscripts/infrastructure/build-nodes/ubuntu-17.10/Dockerfile
b/buildscripts/infrastructure/build-nodes/ubuntu-17.10/Dockerfile
new file mode 100644
index 0000000..53ba775
--- /dev/null
+++ b/buildscripts/infrastructure/build-nodes/ubuntu-17.10/Dockerfile
@@ -0,0 +1,58 @@
+FROM ubuntu:17.10
+
+SHELL ["/bin/bash", "-c"]
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update \
+ && apt-get install -y \
+ apache2 \
+ apache2-dev \
+ autoconf \
+ build-essential \
+ devscripts \
+ dnsutils \
+ dpatch \
+ flex \
+ gettext \
+ git-buildpackage \
+ libboost-all-dev \
+ libcloog-ppl1 \
+ libcurl4-openssl-dev \
+ libevent-dev \
+ libffi-dev \
+ libfreeradius-dev \
+ libgd-dev \
+ libglib2.0-dev \
+ libgnutls28-dev \
+ libgsf-1-dev \
+ libkrb5-dev \
+ libldap2-dev \
+ libltdl-dev \
+ libmcrypt-dev \
+ libmysqlclient-dev \
+ libncurses5-dev \
+ libpango1.0-dev \
+ libpcap-dev \
+ libperl-dev \
+ libpq-dev \
+ libreadline-dev \
+ librrd-dev \
+ libsqlite3-dev \
+ libssl-dev \
+ libtool \
+ libxml2-dev \
+ openssh-client \
+ patch \
+ rpcbind \
+ rsync \
+ smbclient \
+ texinfo \
+ tk-dev \
+ uuid-dev \
+ && rm -rf /var/lib/apt/lists/*
+
+COPY bw-build-gnu-toolchain.sh /usr/sbin
+RUN bw-build-gnu-toolchain.sh -b
+RUN mv /usr/bin/gcc /usr/bin/gcc-old \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/gcc \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/cc
diff --git a/buildscripts/infrastructure/build-nodes/ubuntu-18.04/Dockerfile
b/buildscripts/infrastructure/build-nodes/ubuntu-18.04/Dockerfile
index 93d324c..937f33a 100644
--- a/buildscripts/infrastructure/build-nodes/ubuntu-18.04/Dockerfile
+++ b/buildscripts/infrastructure/build-nodes/ubuntu-18.04/Dockerfile
@@ -8,28 +8,14 @@ RUN apt-get update \
apache2 \
apache2-dev \
autoconf \
- bear \
build-essential \
- chrpath \
- clang-6.0 \
- clang-format-6.0 \
- clang-tidy-6.0 \
devscripts \
- direnv \
dnsutils \
- doxygen \
dpatch \
- enchant \
- figlet \
flex \
- g++-8 \
gettext \
git-buildpackage \
- ksh \
libboost-all-dev \
- libboost-dev \
- libboost-system-dev \
- libclang-6.0-dev \
libcloog-ppl1 \
libcurl4-openssl-dev \
libevent-dev \
@@ -51,38 +37,33 @@ RUN apt-get update \
libpq-dev \
libreadline-dev \
librrd-dev \
- libsasl2-dev \
libsqlite3-dev \
libssl-dev \
libtool \
libxml2-dev \
- llvm-6.0-dev \
openssh-client \
- p7zip-full \
patch \
- pngcrush \
- poedit \
- python-pip \
- python-polib \
rpcbind \
rsync \
- slimit \
smbclient \
+ texinfo \
tk-dev \
uuid-dev \
- valgrind \
&& rm -rf /var/lib/apt/lists/*
# For the common part, split later
-RUN pip install pathlib2 \
- typing
+#RUN pip install pathlib2 \
+# typing
-RUN apt-get update \
- && apt-get install -y \
- rpm \
- alien \
- mono-xbuild \
- && rm -rf /var/lib/apt/lists/*
+#RUN apt-get update \
+# && apt-get install -y \
+# rpm \
+# alien \
+# mono-xbuild \
+# && rm -rf /var/lib/apt/lists/*
-COPY bw-build-gnu-toolchain /usr/sbin
-RUN bw-build-gnu-toolchain
+COPY bw-build-gnu-toolchain.sh /usr/sbin
+RUN bw-build-gnu-toolchain.sh -b
+RUN mv /usr/bin/gcc /usr/bin/gcc-old \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/gcc \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/cc
diff --git a/buildscripts/infrastructure/build-nodes/ubuntu-18.10/Dockerfile
b/buildscripts/infrastructure/build-nodes/ubuntu-18.10/Dockerfile
new file mode 100644
index 0000000..3897b56
--- /dev/null
+++ b/buildscripts/infrastructure/build-nodes/ubuntu-18.10/Dockerfile
@@ -0,0 +1,58 @@
+FROM ubuntu:18.10
+
+SHELL ["/bin/bash", "-c"]
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update \
+ && apt-get install -y \
+ apache2 \
+ apache2-dev \
+ autoconf \
+ build-essential \
+ devscripts \
+ dnsutils \
+ dpatch \
+ flex \
+ gettext \
+ git-buildpackage \
+ libboost-all-dev \
+ libcloog-ppl1 \
+ libcurl4-openssl-dev \
+ libevent-dev \
+ libffi-dev \
+ libfreeradius-dev \
+ libgd-dev \
+ libglib2.0-dev \
+ libgnutls28-dev \
+ libgsf-1-dev \
+ libkrb5-dev \
+ libldap2-dev \
+ libltdl-dev \
+ libmcrypt-dev \
+ libmysqlclient-dev \
+ libncurses5-dev \
+ libpango1.0-dev \
+ libpcap-dev \
+ libperl-dev \
+ libpq-dev \
+ libreadline-dev \
+ librrd-dev \
+ libsqlite3-dev \
+ libssl-dev \
+ libtool \
+ libxml2-dev \
+ openssh-client \
+ patch \
+ rpcbind \
+ rsync \
+ smbclient \
+ texinfo \
+ tk-dev \
+ uuid-dev \
+ && rm -rf /var/lib/apt/lists/*
+
+COPY bw-build-gnu-toolchain.sh /usr/sbin
+RUN bw-build-gnu-toolchain.sh -b
+RUN mv /usr/bin/gcc /usr/bin/gcc-old \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/gcc \
+ && ln -s /usr/local/bin/gcc-8 /usr/local/bin/cc