Skip to content

Conversation

@shouze
Copy link
Contributor

@shouze shouze commented Aug 29, 2021

🐳 will allow to test locally bref with php 8.1 when the docker images will get published 🎉
👉 Related to https://github.com/brefphp/bref/pull/980/files#r695552502
⚠️ For now xdebug & blackfire are not included because no php 8.1 version available yet.

Related to https://github.com/brefphp/bref/pull/980/files#r695552502

For now xdebug & blackfire are not included because no php 8.1 version available yet.
@shouze shouze mentioned this pull request Aug 29, 2021
RUN cp /tmp/*.so $(php -r "echo ini_get('extension_dir');")

FROM bref/php-${PHP_VERSION}-fpm
FROM bref/php-${PHP_VERSION}-fpm as without_extensions
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will help for other new php versions upgrade as most of the time blackfire or xdebug are not ready during beta releases.

# opcache.validate_timestamps=1 : cancels the flag in the base configuration so that files are reloaded
CMD /opt/bin/php-fpm --nodaemonize --fpm-config /opt/bref/etc/php-fpm.conf -d opcache.validate_timestamps=1 --force-stderr

FROM without_extensions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the new FROM here? We would lose the EXPOSE, ENV and everything defined above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked, ENV, EXPOSE, CMD & ENTRYPOINT will be inherited from the above, the only difference is that we won't copy extensions (xdebug, blackfire).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh I think I see it now, thank you!

@mnapoli
Copy link
Member

mnapoli commented Aug 29, 2021

Thanks! I added a minor feedback, and it seems the build is not running in GitHub Actions

@shouze
Copy link
Contributor Author

shouze commented Aug 29, 2021

Thanks! I added a minor feedback, and it seems the build is not running in GitHub Actions

Thanks, everything should be good now. Seems that some versions of docker build previous targets so I moved without_extensions one at first position and fixed the CI

@mnapoli
Copy link
Member

mnapoli commented Aug 29, 2021

Thank you!

Just to be sure: no need for new layers here, right?

@mnapoli mnapoli merged commit b313e71 into brefphp:master Aug 29, 2021
@shouze
Copy link
Contributor Author

shouze commented Aug 29, 2021

Thank you!

Just to be sure: no need for new layers here, right?

New layers have been published in previous PR so no, only need to publish docker images.

@shouze
Copy link
Contributor Author

shouze commented Aug 29, 2021

BTW a new tag should be required regarding GitHub action
https://github.com/brefphp/bref/blob/master/.github/workflows/deploy-docker.yml

@mnapoli
Copy link
Member

mnapoli commented Aug 29, 2021

👍 the new release should have done it by now

@shouze
Copy link
Contributor Author

shouze commented Aug 29, 2021

the new release should have done it by now

Thanks a lot... but I have bad news, an upfix seems necessary #1008

@shouze shouze deleted the php-81 branch August 29, 2021 22:20
Nyholm pushed a commit to brefphp/extra-php-extensions that referenced this pull request Aug 30, 2021
* Adding php 81 for most extensions

Related to brefphp/bref#1007

Also related to brefphp/bref#1008, waiting for upfix to be merged

* Use 1.2.13 as base bref image

* Support xdebug master on PHP 8.1
@mnapoli
Copy link
Member

mnapoli commented Dec 7, 2021

For the record I'm re-enabling the extensions in #1114

mnapoli added a commit that referenced this pull request Dec 7, 2021
Re-enable xdebug in the PHP 8.1 dev container following #980 and #1007
phoenix933 pushed a commit to phoenix933/extra-php-extensions that referenced this pull request Dec 3, 2023
* Adding php 81 for most extensions

Related to brefphp/bref#1007

Also related to brefphp/bref#1008, waiting for upfix to be merged

* Use 1.2.13 as base bref image

* Support xdebug master on PHP 8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants