Public Repository

Last pushed: 2 years ago
Short Description
CentOS 6.6 Base Minimal Install - 246.7MB
Full Description

Modifications from Raw Minimal Installation Base:

Install required packages

yum -y install net-tools vim-enhanced wget openssh-clients nfs-utils screen yum-utils ntp tar

Install the Epel, Remi, and Postgres 9.3 Repositories.

cd /etc/yum.repos.d/
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Modify Remi Repo to include PHP 5.5

Enable base and PHP 5.5 in Remi

Install the Postres 9.3 Repository

rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm

Configure SSH

vim /etc/ssh/sshd_config 
UseDNS no
GSSAPIAuthentication no

Configure SELinux

vim /etc/sysconfig/selinux
selinux = disabled

Turn off IPTables

chkconfig iptables off
chkconfig ip6tables off

Configure NTP and set it in the bashrc so it runs when the container is started (chkconfig does not work in containers)

ntpdate pool.ntp.org
echo "service ntpd start" >> ~/.bashrc
echo "service rsyslog start" >> ~/.bashrc
echo "service crond start" >> ~/.bashrc

Update the OS

yum -y update

Set Runtime Variable (default command to run when lauched via docker run)

CMD /bin/bash

Set terminal cli color scheme in file /etc/profile.d/termcolor.sh

if [ "$PS1" ]; then
set_prompt () {
Last_Command=$? # Must come first!
Blue='\[\e[01;34m\]'
White='\[\e[01;37m\]'
Red='\[\e[01;31m\]'
YellowBack='\[\e[01;43m\]'
Green='\[\e[01;32m\]'
Yellow='\[\e[01;33m\]'
Black='\[\e[01;30m\]'
Reset='\[\e[00m\]'
FancyX='\342\234\227'
Checkmark='\342\234\223'

# Add a bright white exit status for the last command
#PS1="$White\$? "
# If it was successful, print a green check mark. Otherwise, print
# a red X.
if [[ $Last_Command == 0 ]]; then
    PS1="$Green$Checkmark "
else
    PS1="$Red$FancyX "
fi
# If root, just print the host in red. Otherwise, print the current user
# and host in green.
if [[ $EUID == 0 ]]; then
    PS1+="$Black $YellowBack TEMPLATE $Reset $Red \\u@\\h"
    #PS1+="$Red\\u@\\h $YellowBack DEV $Reset"
else
    PS1+="$Black $YellowBack TEMPLATE $Reset $Green \\u@\\h"
    #PS1+="$Green\\u@\\h $YellowBack DEV $Reset"
fi
# Print the working directory and prompt marker in blue, and reset
# the text color to the default.
PS1+="$Blue\\w \\\$$Reset "
}

PROMPT_COMMAND='set_prompt'
fi

Cleanup

rm -f /etc/yum.repos.d/*.rpm
rm -fr /var/cache/*

Flatten

docker export c30e102f7c51 | docker import - darkside/centos66
Docker Pull Command
Owner
darkside