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

Create new PHP images #1

Open
jelen07 opened this issue Mar 27, 2023 · 0 comments
Open

Create new PHP images #1

jelen07 opened this issue Mar 27, 2023 · 0 comments

Comments

@jelen07
Copy link

jelen07 commented Mar 27, 2023

Why

We are currently building production images in the client's infrastructure. We would like to shift this responsibility to our side and deliver already completed images with the application.
These should be the default base images.

Specification

  1. PHP CLI -> prod + dev
  2. PHP with a webserver (NGINX vs NGINX Unit) -> prod + dev
  3. PHP 7.4 and 8.1 are also ARM-compatible (Apple M1, M2 chips)
  4. Use Makefile to build and push
  5. Use GitHub actions to automate the release/workflow to push new tags/images
  6. Some PHP extensions can be installed conditionally with Imagick, Xdebug, Composer, etc. Let's first discuss what each image should contain. It can be one Dockerfile per PHP version that will run with multiple parameters during the build, etc.
  7. Testing project 👉 https://github.com/68publishers/consent-management-platform
  8. It's good to keep in mind that the client running the application in k8s, AWS, azure, etc.

Other

  1. Repository -> https://github.com/68publishers/docker
  2. Registry -> https://hub.docker.com/repository/docker/68publishers/php/general
    Unfortunately, they are going to charge for the basic plan for organizations, so we have to figure out where to take them

We currently overuse tags for different versions of docker images. It might be worth figuring out how to do it better if we find this to be a problem - 68publishers/php:8.1-unit-dev-1.0.0 vs 68publishers/php-8.1-unit-dev:1.0.0.

Follow-up issues

  1. Allow to use HTTPS on local environment #2
  2. Separate build of front-end assets to the standalone image #3
@jelen07 jelen07 changed the title Create new images Create new PHP images Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant