diff --git a/lazyDir/centos-6.Dockerfile b/lazyDir/centos-6.Dockerfile new file mode 100644 index 0000000..2cfccea --- /dev/null +++ b/lazyDir/centos-6.Dockerfile @@ -0,0 +1,69 @@ +# +# This work is protected under copyright law in the Kingdom of +# The Netherlands. The rules of the Berne Convention for the +# Protection of Literary and Artistic Works apply. +# Digital Me B.V. is the copyright owner. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Pull base image from official repo +FROM centos:centos6.10 + +# Enable epel repo and Install all current updates +RUN yum -q -y update \ + && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 \ + && yum -y install epel-release \ + && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 \ + && yum -y upgrade \ + && yum -q clean all + +# Install common requirements +RUN yum -q -y update \ + && yum -y install \ + git \ + wget \ + unzip \ + which \ + && yum -q clean all + +# Add internal CA and additional GPG keys +RUN wget -q https://share.qiy.nl/public/certs/ca-digital-me-private-2026.crt -O /etc/pki/ca-trust/source/anchors/ca-digital-me-internal.pem \ + && update-ca-trust force-enable \ + && update-ca-trust extract +RUN rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-puppet \ + && rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs + +# Configure Yum repos +RUN rm -f /etc/yum.repos.d/*.repo \ + && echo '[all]' > /etc/yum.repos.d/all.repo \ + && echo 'name=Private - centos6-x86_64 - All' >> /etc/yum.repos.d/all.repo \ + && echo 'baseurl=https://mrepo.boxtel/mrepo/testci/centos6-x86_64/RPMS.all' >> /etc/yum.repos.d/all.repo \ + && echo 'enabled=1' >> /etc/yum.repos.d/all.repo + +# Install something and its requirements +#RUN yum -q -y update \ +# && yum -y install \ +# ... +# && yum -q clean all + +# Add a dummy user +ARG uid=1000 +ARG user=dummy +ARG gid=1000 +ARG group=dummy + +RUN groupadd -g "${gid}" "${group}" && useradd -ms /bin/bash -g "${group}" -u "${uid}" "${user}" + +# Get script directory from lazyLib +ARG dir=.