<repo_name>dnhsoft/docker-php<file_sep>/5.3/docker-compose.yml
web:
  image: chudo1
  ports:
   - "8000:80"
<file_sep>/README.md
# docker-php
Few older PHP versions
<file_sep>/5.3/Dockerfile
FROM debian:6

RUN echo "deb http://packages.dotdeb.org squeeze all" >>  /etc/apt/sources.list
RUN echo "deb-src http://packages.dotdeb.org squeeze all" >>  /etc/apt/sources.list

RUN apt-get update && apt-get install -y \
	wget


RUN wget http://www.dotdeb.org/dotdeb.gpg
RUN apt-key add dotdeb.gpg 


RUN apt-get update && apt-get install -y \
	supervisor \
	apache2 \
	php5 \
	libapache2-mod-php5 \
	php5-mysql \
	php5-curl \
	php5-gd \
	php5-idn \
	php-pear \
	php5-imap \
	php5-mcrypt \
	php5-memcache \
	php5-mhash \
	php5-ming \
	php5-ps \
	php5-pspell \
	php5-recode \
	php5-snmp \
	php5-sqlite \
	php5-tidy \
	php5-xmlrpc \
	php5-xsl \
	php5-json

EXPOSE 80

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

CMD ["/usr/bin/supervisord"]
<file_sep>/5.6/update-sources.sh
#!/bin/bash

THIS_DIR=$(dirname "$(readlink -f "$0")")""

rm -rf $THIS_DIR/apache

cd $THIS_DIR/../../php-official/5.6

git pull origin master

cp -R ./apache  $THIS_DIR

cd $THIS_DIR

echo "Adding ftp and zip modules..."
sed -i "s/--with-openssl/--with-openssl --enable-opcache --enable-ftp --enable-zip/g" ./apache/Dockerfile
<file_sep>/7.2/setup-php.sh
#!/bin/bash

INI_DIR="/usr/local/etc/php/conf.d"



DNH_INI_FILE="$INI_DIR/dnh-custom.ini"

rm -f $DNH_INI_FILE

echo "upload_max_filesize=$PHP_UPLOAD_MAX_FILESIZE" >> $DNH_INI_FILE
echo "post_max_size=$PHP_POST_MAX_FILESIZE" >> $DNH_INI_FILE
echo "memory_limit=$PHP_MEMORY_LIMIT" >> $DNH_INI_FILE
echo "max_execution_time=$PHP_MAX_EXECUTION_TIME" >> $DNH_INI_FILE
echo "session.cookie_secure=$PHP_SESSION_COOKIE_SECURE" >> $DNH_INI_FILE



OPCACHE_INI_FILE="$INI_DIR/opcache-custom.ini"

rm -f $OPCACHE_INI_FILE

if [ "$PHP_OPCACHE_ENABLE" == "1" ]; then
  echo "zend_extension=opcache.so" >> $OPCACHE_INI_FILE
  echo "opcache.enable=1" >> $OPCACHE_INI_FILE
  echo "opcache.memory_consumption=$PHP_OPCACHE_MEMORY_CONSUMPTION" >> $OPCACHE_INI_FILE
  echo "opcache.interned_strings_buffer=$PHP_OPCACHE_INTERNED_STRINGS_BUFFER" >> $OPCACHE_INI_FILE
  echo "opcache.max_accelerated_files=$PHP_OPCACHE_ACCELERATED_FILES" >> $OPCACHE_INI_FILE
  echo "opcache.revalidate_freq=$PHP_OPCACHE_REVALIDATE_FREQ" >> $OPCACHE_INI_FILE
  echo "opcache.fast_shutdown=$PHP_OPCACHE_FAST_SHUTDOWN" >> $OPCACHE_INI_FILE
fi


APC_INI_FILE="$INI_DIR/apcu.ini"

rm -f $APC_INI_FILE

if [ $PHP_APCU_ENABLE == '1' ]; then
  echo 'extension=apcu.so' > $APC_INI_FILE
fi
<file_sep>/5.2/Dockerfile
FROM debian:6

RUN echo "deb http://archive.debian.org/debian lenny main contrib non-free" >>  /etc/apt/sources.list

RUN apt-get update && apt-get install -y \
	wget

RUN wget http://www.dotdeb.org/dotdeb.gpg
RUN apt-key add dotdeb.gpg 


COPY lenny.conf /etc/apt/preferences.d/lenny
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

RUN apt-get update && apt-get install -y \
	supervisor \
	apache2 \
	mysql-client \
	libapache2-mod-php5 \
	php5-common \ 
	php5-curl \
	php5-gd \
	php5-mcrypt \
	php5-mysql \
	php5-cli \
	php5-mhash \
	php5-xsl \
	php5-imap \
	php5-xmlrpc \
	php5-sqlite \
	php5-json


EXPOSE 80


CMD ["/usr/bin/supervisord"]
