justdan6 / docker-hack-dev

A dockerized Hack development environment. Useful for being able to develop Hack on Apple Silicon.
3 stars 0 forks source link
hack hacklang hacklang-examples hhvm hhvm-docker

What is this?

A way to get HHVM working on arm64.

How to use

This requires use of Colima and an up to date version of QEMU in order to work. Rosetta does not currently support some x86_64 instruction execution which HHVM uses.

brew install docker
brew install qemu
brew install colima
git clone https://github.com/justdan6/docker-hack-dev.git
cd docker-hack-dev

colima start --arch x86_64 --cpu 4 --cpu-type "max" --memory 16 --network-address
docker compose up

Go to http://localhost:8080/hello.hack

Any changes in /src will be picked up by HHVM.