Module: check_mk
Branch: master
Commit: 5d034dd5a8263e1da1cc3ea3146504fc02773bf5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5d034dd5a8263e…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Tue Mar 26 12:51:06 2019 +0100
CMK-1823: Add sles-12sp1 to the new build mechanism
Change-Id: I591ae08078a2c55a75bb8bbbdad50053d9e74527
---
.../build-nodes/sles-12sp1/Dockerfile | 8 +++--
.../infrastructure/os-nodes/sles-12sp1/Dockerfile | 34 ++++++++++++++++++++++
2 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/buildscripts/infrastructure/build-nodes/sles-12sp1/Dockerfile
b/buildscripts/infrastructure/build-nodes/sles-12sp1/Dockerfile
index 9decab9..528e202 100644
--- a/buildscripts/infrastructure/build-nodes/sles-12sp1/Dockerfile
+++ b/buildscripts/infrastructure/build-nodes/sles-12sp1/Dockerfile
@@ -1,8 +1,8 @@
-FROM 10.9.1.101:5010/sles-12sp1-base
+FROM nexus.lan.tribe29.com:5010/sles-12sp1-base
SHELL ["/bin/bash", "-c"]
-RUN zypper addrepo
http://10.9.1.101:8081/repository/sles12sp1 sles12sp1 \
+RUN zypper addrepo
http://nexus:8081/repository/sles12sp1 sles12sp1 \
&& zypper ref -s \
&& zypper -n in -y --force-resolution \
apache2-devel \
@@ -62,4 +62,6 @@ RUN zypper addrepo
http://10.9.1.101:8081/repository/sles12sp1 sles12sp1
\
COPY bw-build-gnu-toolchain.sh /usr/sbin
RUN bw-build-gnu-toolchain.sh -b
-RUN rm /usr/bin/gcc /usr/bin/g++
+RUN rm /usr/bin/gcc /usr/bin/g++ \
+ && ln -s /opt/gcc-8.2.0/bin/gcc-8 /usr/bin/gcc \
+ && ln -s /opt/gcc-8.2.0/bin/g++-8 /usr/bin/g++
diff --git a/buildscripts/infrastructure/os-nodes/sles-12sp1/Dockerfile
b/buildscripts/infrastructure/os-nodes/sles-12sp1/Dockerfile
new file mode 100644
index 0000000..1705790
--- /dev/null
+++ b/buildscripts/infrastructure/os-nodes/sles-12sp1/Dockerfile
@@ -0,0 +1,34 @@
+FROM nexus.lan.tribe29.com:5010/sles-12sp1-base
+
+SHELL ["/bin/bash", "-c"]
+
+ARG PACKAGES
+
+RUN zypper addrepo -G
http://nexus:8081/repository/sles12sp1 sles12sp1 \
+ && zypper addrepo -G
http://nexus:8081/repository/sles12spx-web-scripting
web-scripting \
+ && zypper -n --no-gpg-checks in --replacefiles --force-resolution \
+ gawk \
+ && zypper -n --no-gpg-checks in --replacefiles --force-resolution \
+ curl \
+ cyrus-sasl-devel \
+ enchant-devel \
+ git \
+ krb5-devel \
+ libmysqlclient-devel \
+ make \
+ nodejs10 \
+ npm10 \
+ openldap2-devel \
+ python \
+ python-devel \
+ python-pyOpenSSL \
+ python-xml \
+ rrdtool-devel \
+ sudo
+RUN curl
https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
+ && python get-pip.py
+RUN pip install --upgrade setuptools \
+ && pip install
git+https://github.com/pypa/pipenv.git \
+ && zypper -n --no-gpg-checks in --replacefiles \
+ $PACKAGES \
+ && zypper clean -a