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 add HTTPS certifications for Java application inside docker?
  • Can't join Kubernetes master from nodes hosts by Vagrant
  • How can i mount /dev/shm in a docker container
  • Trying to run Cloudera Image in Docker
  • Running gunicorn on ubuntu based image using docker-compose
  • Docker client build error
  • 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.

  • Inside Docker crontab and php script
  • Is there a docker image which is similar (or the same) as AWS EC2 AMI?
  • Building in docker and deploying in ubuntu [closed]
  • Map docker container to regular dev domain name
  • Windows Container with Docker: Cannot reach httpd in container from host (Win2016 TP5)
  • Artifactory: “docker service create” does not work with images of 0 byte
  • 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.