docker-php icon indicating copy to clipboard operation
docker-php copied to clipboard

Release 2.0: PHP 8.2, Ubuntu 22.04, major re-structure & cleanup

Open jaydrogers opened this issue 3 years ago โ€ข 3 comments

๐Ÿฅณ This PR is currently in testing!

View Latest Source & Documentation (README)

View the dev branch for the latest source code: https://github.com/serversideup/docker-php/tree/dev

Access the Docker Images

You can test these changes with any image tagged beta: https://hub.docker.com/r/serversideup/php/tags?name=beta&page=1&ordering=-name

๐Ÿšจ BEFORE MERGING (note to self)

๐Ÿš€ Deployment

  • [ ] Merge this PR first: https://github.com/serversideup/docker-baseimage-s6-overlay-ubuntu/pull/7
  • [ ] Adjust the images for "beta" to build on "main" https://github.com/serversideup/docker-php/blob/b94f2018ae59d5e28ef5c855a51b5c10ca2ab0a4/.github/workflows/docker-publish-beta.yml#L3-L7

๐Ÿ‘จโ€๐Ÿ”ฌ Things to test

  • [x] Ensure remote IP still works for NGINX (with CloudFlare)
  • [x] Ensure remote IP still works for Apache (with CloudFlare)

โœจ Enhancements (showing progress)

  • [x] Added PHP 8.2 support
  • [x] Added Multi-arch docker image support ๐Ÿ’ช
  • [x] Use Ubuntu 22.04 as base image
  • [x] Added healthchecks on initialization (#75)
  • [x] Upgrade all scripts and init structures to use S6 Overlay 3.x standards
  • [x] Allow openbase_dir to be controlled by an environment variable
  • [x] Added php_intl package (#56)
  • [x] Added bcmath package (#58)
  • [X] Allow SSL to be configured with SSL_MODE (https://github.com/serversideup/docker-php/pull/79)

๐Ÿงผ Cleanup

  • [x] Eliminated all development dependencies (other than having Docker installed)
  • [x] Reorganized repository to have all source code in /src directory
  • [x] Improved Verbosity to be less noisy, but configurable by the S6_VERBOSITY variable
  • [x] Improved build script to accept arguments on which versions to build
  • [x] CI: Change main to be the "beta" and production images only to be built on release

๐Ÿ› Fixes (showing progress)

  • [x] Prevent PHP flags from being too strict (#45)
  • [x] Fixed initialization order of PHP-FPM services (https://community.serversideup.net/t/502-bad-gateway-on-google-cloud-run/700)
  • [x] Fixed GPG signing issue with Ondrej repos
  • [x] Fixed "laravel-automations" script where it was not passing environment variables set via docker run (View Related Discussion โ†’)

๐Ÿ˜… Migrating from V1

  • There are no breaking changes. Everything should continue to work without any changes on your end ๐ŸŽ‰

jaydrogers avatar Sep 14 '22 16:09 jaydrogers

For anyone following this thread, I have everything ready and I am testing it internally now.

Assuming everything goes well, I will merge this soon ๐Ÿš€

If you want to test these images:

Pull anything beta-*: https://hub.docker.com/r/serversideup/php/tags?page=1&ordering=-name&name=beta-

jaydrogers avatar Sep 14 '22 21:09 jaydrogers

Are there any plans to add PHP 8.2 support? Thanks in advance!

nsaliu avatar Sep 17 '22 06:09 nsaliu

๐ŸŽ‰ We hit "feature freeze" for the next release

Today I completed all the features for the "2.0 Release" of our Docker Images. There are a ton of changes, but they are all documented at the top of this PR.

There are NOT any breaking changes in this release ๐Ÿ˜…

View Latest Source

View the dev branch for the latest source code: https://github.com/serversideup/docker-php/tree/dev

Access the Docker Images

You can test these changes with any image tagged beta: https://hub.docker.com/r/serversideup/php/tags?name=beta&page=1&ordering=-name

๐Ÿ‘‰ Next Steps

  • I will be testing these images on some internal projects over the next week or so
  • Test it out yourself and let me know if you have any issues!
  • If things feel good on my internal projects and GitHub issues seems pretty silent, I will be merging these into "stable" in the next week or two

Thanks for all your help contributors!

jaydrogers avatar Sep 27 '22 22:09 jaydrogers