Public Repository

Last pushed: 2 years ago
Short Description
Crowdfunder hhvm setup as a drop in replacement for cf-php5-fpm-redis
Full Description

docker hhvm

This container can be found pre-built on docker hub as freshsauce/cf-hhvm
https://registry.hub.docker.com/u/freshsauce/cf-hhvm/

It's designed to run hhvm for a nginx container based on image freshsauce/nginx

  • Based on jolicode/base build
  • exposes port 9000
  • volume /var/www web root is one of
    • /var/www/vhosts/site/public_html (domain cf.dev)
    • /var/www/vhosts/api/public_html (domain api.cf.dev)
    • /var/www/vhosts/payments/public_html (domain payment.cf.dev)
  • installs hhvm
  • installs composer
  • installs phpunit
  • installs git
  • expects a php-fpm instance to be running before it's started with an alais of php on port 9000
  • sets the default timezone to Europe/London via build/php.ini which is added to the container

Pull or build

docker pull freshsauce/cf-hhvm

Or build under your own username on docker

docker build -t freshsauce/cf-hhvm hhvm

Run up with

docker run --name php -v /host/web/html:/var/www/vhosts/site/public_html \
  --link redis:redis --link mysql:db -d freshsauce/cf-hhvm
  • links to a mysql constainer aliased as db
  • links to a redis constainer aliased as redis
  • mounts host directory /host/web/html as /var/www/vhosts/site/public_html in the container
Docker Pull Command
Owner
freshsauce