How pass/set environment variables into HHVM?

I’m trying to migrate a website from php5-fpm to hhvm.

We use Docker for local dev environments, and we set things like MySQL and Redis details using environment variables that are created using Docker’s --link.

  • How to persist changes made by maven dependency:go-offline in docker image
  • Is there a way to download a Docker image without Docker daemon?
  • Maven build with parameter somehow cache parameter in war?
  • Docker development workflow
  • Docker Symfony 1.4 strange missing “/” error
  • Current Base Device UUID: does not match with stored UUID:
  • With php5-fpm, it was easy to pass these variables into PHP by setting them in www.conf.

    With hhvm 3.5.0, I can’t seem to find the equivalent. I got close when I found EnvVariables in an example config on this page, but hhvm 3.5.0 now uses INI files for config and I can’t seem to find where to set them using these.

    Any ideas?

    Thanks.

  • Character encoding of the HTML document was not declared in docker Eureka
  • /home/web/.gem/ruby/2.2.0/gems/redis-3.2.1/lib/redis/connection/ruby.rb:152:in `getaddrinfo': getaddrinfo: Name or service not known (SocketError)
  • How to run NodeJS command-line tools inside Docker?
  • Jenkins container docker push error failed to response
  • sending mail using external smtp from container
  • Multiple Python Scripts in Docker
  • One Solution collect form web for “How pass/set environment variables into HHVM?”

    Turns out they were there all along in $_ENV instead of $_SERVER. Must be fastcgi_params.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.