Public Repository

Last pushed: 2 years ago
Short Description
Centos Image configured with Nginx PHP 5 HipHop VM
Full Description

Full details about the setup and configuration of this Image available in this blog post on Creating a Docker Container to run PHP, NGINX and Hip Hop VM (HHVM)

The dockerfile and other configuration files are available via my github repo

FROM    centos:centos6

 MAINTAINER Mike Ebinum,

# Install dependencies for HHVM
# yum update -y >/dev/null && 
RUN yum install -y  && curl -L -o /etc/yum.repos.d/hop5.repo ""

# Install supervisor
RUN yum install -y python-meld3

#install nginx, php, mysql, hhvm
RUN ["yum", "-y", "install", "nginx", "php", "php-mysql", "php-devel", "php-gd", "php-pecl-memcache", "php-pspell", "php-snmp", "php-xmlrpc", "php-xml","hhvm"]

# Create folder for server and add index.php file to for nginx
RUN mkdir -p /var/www/html && chmod a+r /var/www/html && echo "<?php phpinfo(); ?>" > /var/www/html/index.php

#Setup hhvm - add config for hhvm
ADD config.hdf /etc/hhvm/config.hdf 

RUN service hhvm restart

# ADD Nginx config
ADD nginx.conf /etc/nginx/conf.d/default.conf

# ADD supervisord config with hhvm setup
ADD supervisord.conf /etc/supervisord.conf

#set to start automatically - supervisord, nginx and mysql
RUN chkconfig supervisord on && chkconfig nginx on

ADD scripts/ /

RUN chmod a+x / 

EXPOSE 22 80
#Start supervisord (which will start hhvm), nginx 
Docker Pull Command

Comments (1)
2 years ago

This rocks!