Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(examples): Introduce HTTP PHP as example #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 20, 2023

  1. feat(examples): Introduce HTTP PHP as example

    Introduce PHP as binary compatibility run; run a simple HTTP server in
    PHP. Extract PHP binaries and files using `Dockerfile`. Then run it with
    the `base` kernel images from `../../kernels/`.
    
    Add typical files for a bincompat app:
    
    * `Kraftfile`: build / run rules, including pulling the `base` image
    * `Dockerfile`: filesystem, including binary and libraries
    * `Makefile`: used to generate the root filesystem from the `Dockerfile`
      rules
    * `README.md`: instructions to set up, build and run the application
    * `config.yaml`: configuration file to generate scripts to the
      application
    * `http_server.php`: the PHP HTTP server implementation
    * `php.ini`: PHP configuration file
    
    `config.yaml` is used to generate run scripts using the
    `../../utils/bincompat/generate.py` script.
    
    The kernels in `../../kernels` are generated by running the
    `../../utils/bincompat/base-build-all.sh` script while inside the
    `../../library/base/` directory
    
    Signed-off-by: Razvan Deaconescu <[email protected]>
    razvand committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    a03dc85 View commit details
    Browse the repository at this point in the history