Giter Site home page Giter Site logo

hhvm-docker's People

Contributors

aorenste avatar dlackty avatar fredemmott avatar jjergus avatar lexidor avatar mofarrell avatar orvid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hhvm-docker's Issues

Docker official image

I happened to notice that for sometime there has been a discussion about creating an official hhmv docker image.

I asked about this issue in docker-library/official-images/issues/1638 and @yosifkit suggested a PR from upstream.

I have been referred on tweeter(https://twitter.com/HipHopVM/status/705063018606886912) to this repo as the official one, and since it has no open issues and has been praised by the docker-library mantainer, I assume it's stable.

Would it be terribly inconvenient to ask for a PR to https://github.com/docker-library/official-images?

Repo is out of date!

There have been a few new releases and the images available on docker hub are updated, but this repo is not.

Add real PHP, zip, and unzip

Now that HHVM can't execute composer, PHP should be included.

zip and unzip should also be included so that releases are installed, and .gitattributes export-ignore is respected.

Running as root

Is it intentional that this image runs HHVM as root instead of www-data?

Running ps aux | grep hhvm inside the container shows:

root@692812879a71:/# ps aux | grep hhvm
root         1  0.3  1.0 846568 126760 ?       SLsl 13:09   0:02 /usr/bin/hhvm -m server -c /etc/hhvm/server.ini -c /etc/hhvm/site.ini
root         7  0.0  0.2 201832 25300 ?        Ss   13:09   0:00 /usr/bin/hhvm -m server -c /etc/hhvm/server.ini -c /etc/hhvm/site.ini
root         8  0.0  0.0   2608   604 ?        S    13:09   0:00 sh -c /opt/hhvm/4.73.1/bin/hh_single_compile --daemon --dump-symbol-refs
root        10  0.2  0.5  87596 61852 ?        S    13:09   0:01 /opt/hhvm/4.73.1/bin/hh_single_compile --daemon --dump-symbol-refs
root       716  0.4  0.3  84228 45736 ?        Ss   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server monitor_daemon_main
root       717  1.4  0.4 22114492 58292 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server ServerMain.daemon_main
root       718  0.4  0.3 22099908 43948 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 1/10 for server 717
root       719  0.4  0.3 22099908 44044 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 2/10 for server 717
root       720  0.4  0.3 22099908 43832 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 3/10 for server 717
root       721  0.4  0.3 22099908 43896 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 4/10 for server 717
root       722  0.4  0.3 22099908 43756 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 5/10 for server 717
root       723  0.4  0.3 22099908 43776 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 6/10 for server 717
root       724  0.4  0.3 22099908 43816 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 7/10 for server 717
root       725  0.4  0.3 22099908 43880 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 8/10 for server 717
root       726  0.4  0.3 22099908 43756 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 9/10 for server 717
root       727  0.5  0.3 22099908 43868 ?      SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server worker process 10/10 for server 717
root       728  1.0  0.3  73780 43088 ?        SN   13:18   0:00 /opt/hhvm/4.73.1/bin/hh_server file watching process for server 717
root       801  0.4  0.3  75596 44324 ?        S    13:18   0:00 /opt/hhvm/4.73.1/bin/hh_client Jsonrpc
root       804  0.0  0.0   3304   728 pts/0    S+   13:18   0:00 grep --color=auto hhvm

Seems like the invocation command in the Dockerfile should be modified to include --user=www-data.

Proxygen web server

If a folder 'my' exists, in which 'index.php' is, requesting '/my' returns a header with '301 Moved Permanently' and 'Location: /my/'.
At Facebook, for example '/pages/creation/' and '/pages/creation' (both) return '200 OK'.
In addition, there are some header informations removed at Facebook, like 'X-Powered-By: HHVM/4.172.0'.

Is there any config file since I found no ini setting?

Version: HHVM/4.172.0

setting for hhvm.server.default_document not registering

hello. I have this setting in my server.ini

hhvm.server.default_document = /var/www/src/index.hack

but unfortunately, when going to localhost:8080 on my browser, I get a 404 error. I'm able to run this without docker with no issues however. The current workaround I have is setting hhvm.server.source_root=/var/www/src and then accessing localhost:8080/index.hack. I was wondering how I can resolve this.

Change `hhvm/hhvm:latest` to use main `distroname` repository, not `distroname-4.x`

Right now, hhvm/hhvm:latest and hhvm/hhvm-proxygen:latest are aliases for the latest hhvm/hhvm:4.x-latest. Two problems:

  • apt update && apt upgrade does not upgrade to the latest HHVM, only the latest for that specific x
  • it's a pain to switch to a nightly if required

It should be changed to be a separate image that is not pinned to the particular x.

This likely needs changes to:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.