Dockerfiles for various common implementations
Switch branches/tags
Nothing to show
Clone or download
jperrin Merge pull request #178 from petrkotas/fix-nginx-centos7
Fix dockerfile user from 997 to nginx
Latest commit 30089f4 Jul 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Django Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
bind Added cccp.yml files for building on centos container pipeline. Oct 12, 2016
caddy_server/centos7 Bumping up version of Caddy Server. Jul 5, 2018
cockpit Added a hack to workaround some issues on container pipeline. Nov 7, 2016
couchdb Added gpg key check for the couchdb tarball. Oct 19, 2016
earthquake specify activesupport 4.2.7.1 for proper dep closure Nov 10, 2016
etherpad bumping etherpad to 1.6.0 to fix #99 Nov 10, 2016
firefox Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
freeipa/centos7 Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
golang/centos7 Adding golang base image (#158) Jan 25, 2018
httpd reverts #79, but retains the better label and run commands Sep 29, 2016
kubernetes-sig fix uid/gid, bind mount /var/run/kubernetes in apiserver Aug 30, 2017
kubernetes remove offending kubelet args Sep 6, 2017
lighttpd Update epel-release install method since we ship it in Extras now Sep 3, 2014
mariadb/centos7 Make it possible to specify charset and collation for MariaDB Aug 7, 2017
memcached Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
mongodb Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
mysql/centos6 Update epel-release install method since we ship it in Extras now Sep 3, 2014
mysql55/centos6 Fixed spacing so GitHub renders in `code blocks` Nov 9, 2014
nginx Fix dockerfile user from 997 to nginx Jul 2, 2018
nodejs/centos6 Update epel-release install method since we ship it in Extras now Sep 3, 2014
owncloud Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
pgweb/centos7 Added pgweb container to centos dockerfiles. Jan 19, 2017
postgres Added cccp.yml to postgres to build it through container pipeline Aug 24, 2016
powershell/centos7 Added cccp.yml files for building on centos container pipeline. Oct 12, 2016
python Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
qpid Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
rabbitmq Updated readme to inform user about /var/lib/rabbitmq. Jan 23, 2017
redis Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
registry-v2/centos7 Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
registry Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
sentry-sso/centos7/8.22 Sentry 8.22, with bundled sso code for github/google (sentry-sso:8.22) ( Jan 25, 2018
sentry/centos7 added detection to support local file or s3 backed store Jan 23, 2018
ssh build option should be --rm Nov 30, 2016
systemd/centos7 Update README.md Nov 20, 2017
tools Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
wildfly/centos7 Added cccp.yml files to CentOS Dockerfiles. Jul 19, 2016
wordpress change port in README to reflect whats in the Dockerfile Oct 11, 2016
LICENSE Initial commit Jul 28, 2014
README.md Added PATH indicator . and added -rm -> --rm=true Nov 9, 2014

README.md

CentOS-Dockerfiles

This repository provides Dockerfiles for use with CentOS. Popular implementations here will be published to the CentOS namespace in the docker index.

Contribution Guidelines

Each Dockerfile should contain a README that includes the following:

  • Version of CentOS and Docker that it was built/tested against
  • Instructions for building the Docker image

-- For example: docker build --rm=true -t my/image .

  • Instructions for running the image, including examples for persistent data, port mapping, etc.
  • Examples for testing and/or validating the functionality of the image.
  • Do not include executable scripts. Provide them and mark them as executable in the Dockerfile

-- ADD ./script.sh /usr/bin/ RUN chmod -v +x /usr/bin/script.sh

  • If creating a container for a specific language, specify the version of that language.
  • If yum is used during the build process, run a clean afterwards to reduce the image size.

Building All The Things

An example of building all images found within this git repository can be done with the following two bash for loops from the base dir of your git clone:

--

# Building everything from centos:centos6 base image
for dir in ./*/centos6
do
    pushd $dir &> /dev/null
        # tmp var for short dirname
        tmp=$(dirname $dir)

        # strip all characters leading up to and including '/'
        appname=${tmp##*/}
        disttag=${dir##*/}

        docker build -t $USER/${appname}:${disttag} .
    popd &> /dev/null;
done

# Building everything from centos:centos7 base image
for dir in ./*/centos7
do
    pushd $dir &> /dev/null
        # tmp var for short dirname
        tmp=$(dirname $dir)

        # strip all characters leading up to and including '/'
        appname=${tmp##*/}
        disttag=${dir##*/}

        docker build -t $USER/${appname}:${disttag} .
    popd &> /dev/null
done

--

You'll notice that the appname/disttag structure is laid out on purpose, so if you would prefer to only build a single image this can be done by either following the specific README.md contained with the Dockerfile or with the below guideline:

# $appname and $disttag should be something along the lines of 'httpd' and 
# 'centos7' respectively
cd $appname/$disttag

docker build -t $USER/${appname}:${disttag} .

--

Notes

Known issues:

  • None at this time.