Skip to content
This repository has been archived by the owner. It is now read-only.
This project is part of the Dockerized Drupal initiative.
Shell Puppet HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.dockerignore
.gitignore
Dockerfile
Gruntfile.js
LICENSE.md
README.md
VERSION.md
Vagrantfile
docker-compose.yml
package.json

README.md

php-5.2-for-docker

A Docker image for PHP version 5.2 that runs PHP in FPM (FastCGI Process Manager) mode.

Run the container

CONTAINER="apache-data" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -v $(pwd):/apache/data \
  --entrypoint /bin/echo \
  dockerizedrupal/apache-2.2:2.0.0 "Data-only container for Apache."
  
CONTAINER="php" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  --volumes-from apache-data \
  -e SERVER_NAME="localhost" \
  -e TIMEZONE="Etc/UTC" \
  -e DRUPAL_VERSION="6" \
  -e DRUSH_VERSION="5" \
  -e SMTP_HOST="" \
  -e SMTP_PORT="25" \
  -e SMTP_FROM= \
  -e SMTP_USERNAME="" \
  -e SMTP_PASSWORD="" \
  -e MYSQL_HOST="" \
  -e MYSQL_PORT="3306" \
  -e MEMCACHED_HOST="" \
  -e MEMCACHED_PORT="11211" \
  -e REDIS_HOST="" \
  -e REDIS_PORT="6379" \
  -e PHP_INI_REALPATH_CACHE_SIZE="256k" \
  -e PHP_INI_REALPATH_CACHE_TTL="3600" \
  -e PHP_INI_POST_MAX_SIZE="512M" \
  -e PHP_INI_TIMEZONE="UTC" \
  -e PHP_INI_UPLOAD_MAX_FILESIZE="512M" \
  -e PHP_INI_SHORT_OPEN_TAG="On" \
  -e PHP_INI_MAX_EXECUTION_TIME="300" \
  -e PHP_INI_MAX_INPUT_VARS="4096" \
  -e PHP_INI_MEMORY_LIMIT="512M" \
  -e PHP_INI_DISPLAY_ERRORS="On" \
  -e PHP_INI_DISPLAY_STARTUP_ERRORS="On" \
  -e PHP_INI_ERROR_REPORTING="E_ALL" \
  -e PHP_INI_EXPOSE_PHP="On" \
  -e PHP_INI_ALLOW_URL_FOPEN="On" \
  -e PHP_INI_OPCACHE="On" \
  -e PHP_INI_OPCACHE_MEMORY_CONSUMPTION="2048" \
  -e PHP_INI_XDEBUG="On" \
  -e PHP_INI_XDEBUG_REMOTE_PORT="9000" \
  -e PHP_INI_XDEBUG_REMOTE_HOST="127.0.0.1" \
  -e PHP_INI_XDEBUG_REMOTE_CONNECT_BACK="On" \
  -e PHP_INI_XDEBUG_IDEKEY="PHPSTORM" \
  -e PHP_INI_XDEBUG_VAR_DISPLAY_MAX_DEPTH="5" \
  -e PHP_INI_MEMCACHED="On" \
  -e PHP_INI_REDIS="On" \
  -e PHP_INI_APCU="On" \
  -e PHP_INI_APD="On" \
  -e PHP_FPM_PM="static" \
  -e PHP_FPM_PM_MAX_CHILDREN="5" \
  -e PHP_FPM_PM_START_SERVERS="20" \
  -e PHP_FPM_PM_MIN_SPARE_SERVERS="5" \
  -e PHP_FPM_PM_MAX_SPARE_SERVERS="35" \
  -e PHP_FPM_PM_MAX_REQUESTS="500" \
  -e FREETDS_1_SERVER_NAME="" \
  -e FREETDS_1_HOST="" \
  -e FREETDS_1_PORT="1433" \
  -e FREETDS_1_TDS_VERSION="8.0" \
  -e FREETDS_1_CLIENT_CHARSET="UTF-8" \
  -e CRON="On" \
  -e CRONTAB_1_MAILTO="" \
  -e CRONTAB_1_EXPRESSION="" \
  -e CRONTAB_1_COMMAND="" \
  -e USER_ID="" \
  -e GROUP_ID="" \
  -d \
  dockerizedrupal/php-5.2:2.0.0

CONTAINER="apache" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -p 80:80 \
  -p 443:443 \
  --volumes-from apache-data \
  --link php:php \
  -d \
  dockerizedrupal/apache-2.2:2.0.0

Build the image

TMP="$(mktemp -d)" \
  && git clone https://github.com/dockerizedrupal/php-5.2-for-docker.git "${TMP}" \
  && cd "${TMP}" \
  && git checkout 2.0.0 \
  && sudo docker build -t dockerizedrupal/php-5.2:2.0.0 . \
  && cd -

Tests

Tests are implemented in Bats: Bash Automated Testing System.

Test results for the current release

1..91
ok 1 php-5.2
ok 2 php-5.2: cron: off
ok 3 php-5.2: cron: CRONTAB_1_MAILTO: off
ok 4 php-5.2: cron: CRONTAB_1_EXPRESSION: off
ok 5 php-5.2: cron: CRONTAB_1_COMMAND: off
ok 6 php-5.2: cron: CRONTAB_2_MAILTO: off
ok 7 php-5.2: cron: CRONTAB_2_EXPRESSION: off
ok 8 php-5.2: cron: CRONTAB_2_COMMAND: off
ok 9 php-5.2: cron: CRONTAB_3_MAILTO: off
ok 10 php-5.2: cron: CRONTAB_3_EXPRESSION: off
ok 11 php-5.2: cron: CRONTAB_3_COMMAND: off
ok 12 php-5.2: cron: on
ok 13 php-5.2: cron: CRONTAB_1_MAILTO: on
ok 14 php-5.2: cron: CRONTAB_1_EXPRESSION: on
ok 15 php-5.2: cron: CRONTAB_1_COMMAND: on
ok 16 php-5.2: cron: CRONTAB_2_MAILTO: on
ok 17 php-5.2: cron: CRONTAB_2_EXPRESSION: on
ok 18 php-5.2: cron: CRONTAB_2_COMMAND: on
ok 19 php-5.2: cron: CRONTAB_3_MAILTO: on
ok 20 php-5.2: cron: CRONTAB_3_EXPRESSION: on
ok 21 php-5.2: cron: CRONTAB_3_COMMAND: on
ok 22 php-5.2: drupal 6
ok 23 php-5.2: drupal 6: drush 5
ok 24 php-5.2: drupal 6: phpcs
ok 25 php-5.2: drupal 6: phpcs: phpcompatibility
ok 26 php-5.2: drupal 7
ok 27 php-5.2: drupal 7: drush 5
ok 28 php-5.2: drupal 7: phpcs
ok 29 php-5.2: drupal 7: phpcs: phpcompatibility
ok 30 php-5.2: fpm: pm
ok 31 php-5.2: fpm: pm.max_children
ok 32 php-5.2: fpm: pm.max_requests
ok 33 php-5.2: fpm: pm.max_spare_servers
ok 34 php-5.2: fpm: pm.min_spare_servers
ok 35 php-5.2: fpm: pm.start_servers
ok 36 php-5.2: freetds: FREETDS_1_SERVER_NAME
ok 37 php-5.2: freetds: FREETDS_1_HOST
ok 38 php-5.2: freetds: FREETDS_1_PORT
ok 39 php-5.2: freetds: FREETDS_1_TDS_VERSION
ok 40 php-5.2: freetds: FREETDS_2_SERVER_NAME
ok 41 php-5.2: freetds: FREETDS_2_HOST
ok 42 php-5.2: freetds: FREETDS_2_PORT
ok 43 php-5.2: freetds: FREETDS_2_TDS_VERSION
ok 44 php-5.2: freetds: FREETDS_3_SERVER_NAME
ok 45 php-5.2: freetds: FREETDS_3_HOST
ok 46 php-5.2: freetds: FREETDS_3_PORT
ok 47 php-5.2: freetds: FREETDS_3_TDS_VERSION
ok 48 php-5.2: ini: allow_url_fopen: off
ok 49 php-5.2: ini: allow_url_fopen: on
ok 50 php-5.2: ini: apcu: off
ok 51 php-5.2: ini: apcu: on
ok 52 php-5.2: ini: apd: off
ok 53 php-5.2: ini: apd: on
ok 54 php-5.2: ini: display_errors: off
ok 55 php-5.2: ini: display_errors: on
ok 56 php-5.2: ini: display_startup_errors: off
ok 57 php-5.2: ini: display_startup_errors: on
ok 58 php-5.2: ini: error_reporting
ok 59 php-5.2: ini: expose_php: off
ok 60 php-5.2: ini: expose_php: on
ok 61 php-5.2: ini: igbinary: on
ok 62 php-5.2: ini: max_execution_time
ok 63 php-5.2: ini: max_input_vars
ok 64 php-5.2: ini: memcached: off
ok 65 php-5.2: ini: memcached: on
ok 66 php-5.2: ini: memory_limit
ok 67 php-5.2: ini: mssql: on
ok 68 php-5.2: ini: opcache.memory_consumption
ok 69 php-5.2: ini: opcache: off
ok 70 php-5.2: ini: opcache: on
ok 71 php-5.2: ini: post_max_size
ok 72 php-5.2: ini: realpath_cache_size
ok 73 php-5.2: ini: realpath_cache_ttl
ok 74 php-5.2: ini: redis: off
ok 75 php-5.2: ini: redis: on
ok 76 php-5.2: ini: short_open_tag: off
ok 77 php-5.2: ini: short_open_tag: on
ok 78 php-5.2: ini: timezone
ok 79 php-5.2: ini: upload_max_filesize
ok 80 php-5.2: ini: xdebug.idekey
ok 81 php-5.2: ini: xdebug: off
ok 82 php-5.2: ini: xdebug: on
ok 83 php-5.2: ini: xdebug.remote_connect_back: off
ok 84 php-5.2: ini: xdebug.remote_connect_back: on
ok 85 php-5.2: ini: xdebug.remote_host
ok 86 php-5.2: ini: xdebug.remote_port
ok 87 php-5.2: smtp: from
ok 88 php-5.2: smtp: off
ok 89 php-5.2: smtp: on
ok 90 php-5.2: smtp: password
ok 91 php-5.2: smtp: username

License

MIT

You can’t perform that action at this time.