-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
088a00d
to
3081a38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good.
3081a38
to
8579bd1
Compare
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]>
8579bd1
to
a03dc85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, thanks.
Approved-by: Stefan Jumarea [email protected]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good.
Reviewed-by: Mihnea Firoiu [email protected]
Reviewed-by: Alexander Jung <[email protected]> Approved-by: Alexander Jung <[email protected]>
Introduce PHP as binary compatibility run; run a simple HTTP server in PHP. Extract PHP binaries and files using
Dockerfile
. Then run it with thebase
kernel images from../../kernels/
.Add typical files for a bincompat app:
Kraftfile
: build / run rules, including pulling thebase
imageDockerfile
: filesystem, including binary and librariesMakefile
: used to generate the root filesystem from theDockerfile
rulesREADME.md
: instructions to set up, build and run the applicationconfig.yaml
: configuration file to generate scripts to the applicationhttp_server.php
: the PHP HTTP server implementationphp.ini
: PHP configuration fileconfig.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