Skip to content

Start building out PHP images #9

@jaydrogers

Description

@jaydrogers

Background

  • We need to figure out how to organize each PHP image

Structure

For each PHP version, I am thinking of having 3 versions:

  1. cli (for quick PHP CLI interactions)
  2. fpm (for apps that need fpm separate from the web server)
  3. 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:

  1. Pull Ubuntu base image
  2. Check caches
  3. Build CLI images
  4. Push CLI images
  5. Build FPM images
  6. Push CLI images
  7. Build FPM-NGINX images
  8. Push FPM-NGINX images
  9. 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.

Metadata

Metadata

Assignees

Labels

⚡️ EnhancementItems that are new features requested to be added.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions