devilbox icon indicating copy to clipboard operation
devilbox copied to clipboard

[Feature]: Add `gRPC` php module

Open Alexandre-Fernandez opened this issue 3 years ago • 4 comments

What is your idea or feature suggestion?

Add the gRPC php module to devilbox (or add a way to add custom modules so we can add it).

Benefits

Being able to run projects that use firebase.

Where can we find information about this?

https://cloud.google.com/php/grpc

Are you willing to provide a PR to address this?

No

Alexandre-Fernandez avatar Sep 22 '22 12:09 Alexandre-Fernandez

@Alexandre-Fernandez this currently exceeds the build time of 6 hours for arm64 images and I probably need to split Dockerfiles into intermediate files so I can build in two steps. This will take some time unfortunately.

cytopia avatar Dec 01 '22 06:12 cytopia

@Alexandre-Fernandez I've tested a couple of approaches, but unfortunately arm64 image build is the time bottleneck. If GitHub adds arm64 runner in the future, this will be easily possible, but for now not.

Alternative:

You could create your own image based on Devilbox images in this repository: https://github.com/devilbox/docker-php-fpm-community

cytopia avatar Dec 26 '22 14:12 cytopia

@cytopia Is it not possible to have a pre-built module ? Does devilbox have a way to add a custom module locally ? I didn't find anything on the documentation.

Alexandre-Fernandez avatar Dec 27 '22 12:12 Alexandre-Fernandez

Pre-built are currently not supported.

You could built your own image locally with gprc as described here: https://github.com/devilbox/docker-php-fpm/blob/master/php_modules/README.md

Or as I mentioned earlir, use the community images to have it built automatically via CI

cytopia avatar Dec 27 '22 13:12 cytopia