diff --git a/lazyDir/centos6.Dockerfile b/lazyDir/centos6.Dockerfile deleted file mode 100644 index 3772901..0000000 --- a/lazyDir/centos6.Dockerfile +++ /dev/null @@ -1,83 +0,0 @@ -# -# 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. -# - -############################## -# General level requirements # -############################## - -# Pull base image from official repo -FROM centos:centos6.10 - -# Import local GPG keys and enable epel repo -RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 && \ - yum -q clean all && \ - yum -q makecache && \ - yum -y install --setopt=tsflags=nodocs \ - epel-release \ - && \ - rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 && \ - yum -q -y clean all --enablerepo='*' - -# Install common requirements -RUN INSTALL_PKGS="git unzip wget which" && \ - yum -q clean expire-cache && \ - yum -q makecache && \ - yum -y install --setopt=tsflags=nodocs $INSTALL_PKGS && \ - rpm -V $INSTALL_PKGS && \ - yum -q -y clean all --enablerepo='*' - -# Prepare locales -ARG locale=en_US.UTF-8 -ENV LANG "${locale}" -ENV LC_ALL "${locale}" - -# Configure desired timezone -ENV TZ=Europe/Amsterdam -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ - echo $TZ > /etc/timezone - -################################## -# Application level requirements # -################################## - -# Install something and its requirements -#RUN INSTALL_PKGS="xxx" && \ -# yum -q clean expire-cache && \ -# yum -q makecache && \ -# yum -y install --setopt=tsflags=nodocs $INSTALL_PKGS && \ -# rpm -V $INSTALL_PKGS && \ -# yum -q -y clean all --enablerepo='*' - -########################### -# User level requirements # -########################### - -# Parameters for default user:group -ARG uid=1000 -ARG user=dummy -ARG gid=1000 -ARG group=dummy - -# Add or modify user and group for build and runtime (convenient) -RUN id ${user} > /dev/null 2>&1 && \ - { groupmod -g "${gid}" "${group}" && usermod -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; } || \ - { groupadd -g "${gid}" "${group}" && useradd -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; } - -# Get script directory from lazyLib -ARG dir=.