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

xdebug cannot be installed because the base image has been updated to php8. #155

Closed
strausmann opened this issue Nov 12, 2021 · 3 comments
Closed
Assignees
Labels
bug Something isn't working passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main

Comments

@strausmann
Copy link
Contributor

Describe the bug

When updating /etc/php/7.4/apache2/php.ini in the directory used for xdebug configuration, the /etc/php/7.4 directory can no longer be found. The reason for this is the update of the Gitpod base image to PHP 8.

&& sudo bash -c "echo -e '\nzend_extension = /usr/lib/php/20190902/xdebug.so\n[XDebug]\nxdebug.client_host = 127.0.0.1\nxdebug.client_port = 9009\nxdebug.log = /var/log/xdebug.log\nxdebug.mode = debug\nxdebug.start_with_request = trigger\n' >> /etc/php/7.4/apache2/php.ini" \

Screenshots

Steps to reproduce

After adapting the .gitpod.Dockerfile to your own needs, e.g. updating the root CAs, GitPod cannot build a working Docker image.
If you leave the .gitpod.Dockerfile unchanged, the existing Docker image can be successfully loaded from the GitPod registry.

Expected behavior

Additional information

@apolopena
Copy link
Owner

Thanks for pointing this out.

@apolopena
Copy link
Owner

apolopena commented Dec 7, 2021

Until php 7.4 reaches end of life or at the very least the php 8 adoption rate exceeds that of php 7.4, php7.4 must still be supported by this software. Dynamically (via starter.ini) supporting different version of php introduces complexities I would rather not address however such is the nature of software engineering.

This fix will take some time as I will be adding support for php_version (either gitpod_latest or 7.4.*) in starter.ini.

@apolopena
Copy link
Owner

This issue blocks the entire project as the workspace image fails to build.
This issue depends on feature #156

@apolopena apolopena added this to the Version 1.4🚀 RELEASE milestone Dec 20, 2021
@apolopena apolopena added in-dev-qa passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main and removed blocked in-dev-qa labels Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Projects
None yet
Development

No branches or pull requests

2 participants