Module: check_mk
Branch: master
Commit: d5ce06f57b8aae054685350c996947035a337b51
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d5ce06f57b8aae…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Mon May 6 15:16:31 2019 +0200
Add centos-6 OS Image
Change-Id: I1e508986a2a855196d822e99b4524232eef4d788
---
.../infrastructure/os-nodes/centos-6/Dockerfile | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/buildscripts/infrastructure/os-nodes/centos-6/Dockerfile
b/buildscripts/infrastructure/os-nodes/centos-6/Dockerfile
new file mode 100644
index 0000000..0b80eb9
--- /dev/null
+++ b/buildscripts/infrastructure/os-nodes/centos-6/Dockerfile
@@ -0,0 +1,44 @@
+FROM centos:6
+
+SHELL ["/bin/bash", "-c"]
+
+ARG PACKAGES
+
+RUN yum -y --enablerepo=extras install \
+ epel-release \
+ && yum -y install \
+ centos-release-scl-rh \
+ && yum -y install \
+ curl \
+ dpkg \
+ enchant \
+ gcc \
+ git \
+ krb5-devel \
+ make \
+ mysql-devel \
+ nodejs \
+ npm \
+ openldap-devel \
+ postfix \
+ python27 \
+ python27-devel \
+ rrdtool-devel \
+ strace \
+ sudo \
+ vim \
+ which
+RUN curl
https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
+ && scl enable python27 'python get-pip.py'
+RUN scl enable python27 'pip install --upgrade setuptools virtualenv' \
+ && scl enable python27 'pip install
git+https://github.com/pypa/pipenv.git'
+RUN yum -y install \
+ $PACKAGES \
+ && yum clean all
+
+# Set Environment Variables to activate python27
+ENV PATH=/opt/rh/python27/root/usr/bin${PATH:+:${PATH}}
+ENV
LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+ENV MANPATH=/opt/rh/python27/root/usr/share/man:${MANPATH}
+ENV
XDG_DATA_DIRS=/opt/rh/python27/root/usr/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
+ENV
PKG_CONFIG_PATH=/opt/rh/python27/root/usr/lib64/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}