-
-
Couldn't load subscription status.
- Fork 161
Description
Background
- We need to figure out how to organize each PHP image
Structure
For each PHP version, I am thinking of having 3 versions:
- cli (for quick PHP CLI interactions)
- fpm (for apps that need fpm separate from the web server)
- fpm-nginx (for apps that include NGINX + FPM in all in one container)
Each image will depend on eachother, just like phpdocker-io (Dependency looks like: CLI < FPM < FPM-NGINX)
Where this adds some challenges
I'll need to update Github actions to:
- Pull Ubuntu base image
- Check caches
- Build CLI images
- Push CLI images
- Build FPM images
- Push CLI images
- Build FPM-NGINX images
- Push FPM-NGINX images
- Automatically tag the latest PHP version as
latest
Hopefully I can do this without having a mile long Github actions file 😅
FPM-NGINX
There will probably be a lot of people who will totally disagree with this methodology, but I really do like having the entire app in one container for exact reference points for the app (see this https://www.reddit.com/r/kubernetes/comments/f68s3z/what_is_the_best_way_to_deploy_laravel_in/fi3lsuq)
This methodology was also used in @fideloper's Shipping Docker course, which I really liked.
Offering the other images in this dependency structure should still give people the option to use what they need.
Next Steps
I will start organizing this and am open to any other comments/feedback.