Sign inSign up

sherzberg/hhvm

By sherzberg

Updated almost 11 years ago

Image
0

897

sherzberg/hhvm repository overview

docker.hhvm

...a really simple Docker container for playing around with Facebook's HHVM / Hack. Based on the excellent Docker-noobie friendly phusion/baseimage.

The container doesn't have a database server configured. It should be fairly easy to add one, or spin up a new container dedicated to running a data store.

Note: Do not use this for anything resembling a production environment.

Usage

First, build the container (if cloning git repo):

# docker build -t hhvm .

Or, use a prebuild one:

# docker pull sherzberg/hhvm

nginx is pointed to /code/public. If you have hh or php files in your current directory, serving them via nginx + hhvm is super easy:

# docker run -t -p 8000:80 -v $(pwd):/code/public:ro sherzberg/hhvm

Now navigate to http://localhost:8000

Development

There are tests written to ensure the Dockerfile is built correctly and a few integration tests to ensure php and hh are served correctly with the default nginx config. The tests rely on Ruby's rspec and docker-api.

# bundle install
# make test

Tag summary

Content type

Image

Digest

sha256:bd5d34650

Size

184.2 MB

Last updated

almost 11 years ago

docker pull sherzberg/hhvm