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

[DDS-1263] Added phpdbg binary. #124

Merged
merged 1 commit into from
Aug 17, 2022
Merged

[DDS-1263] Added phpdbg binary. #124

merged 1 commit into from
Aug 17, 2022

Conversation

GROwen
Copy link
Contributor

@GROwen GROwen commented Aug 15, 2022

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated.
  • Changelog entry has been written

Explain the details for making this change. What existing problem does the pull request solve?

Changelog Entry

Changes

Added binary for phpdbg after it was removed from the upstream used for uselagoon images.

@GROwen GROwen self-assigned this Aug 15, 2022
@GROwen GROwen marked this pull request as ready for review August 16, 2022 01:55
@GROwen GROwen added the NEEDS REVIEW Good for newcomers label Aug 16, 2022
Copy link
Contributor

@MdNadimHossain MdNadimHossain left a comment

Choose a reason for hiding this comment

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

worked for me. So fine from my side -
I have ran this ci job using this image PR and it worked

ARG PHP_VERSION=7.4
FROM php:${PHP_VERSION}-cli-alpine AS php-cli
FROM uselagoon/php-${PHP_VERSION}-cli-drupal:latest
COPY --from=php-cli /usr/local/bin/phpdbg /usr/local/bin/
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason we're not treating this as a dependency rather than an upstream copy?

RUN apk add --update --no-cache \
    php-phpdbg

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well initially I naively thought that I couldn't add phpdbg using a pkg manager because it's a system API and not a PHP extension.

Turns out that's not the case but the complication to changing to your suggestion is that it installs the php 8 version of the module because the Alpine repos set in the build process don't use the edge branch. So implementing the suggestion would require that to change.

It feels simpler to copy the binary but what's your preference?

Copy link
Contributor

@steveworley steveworley left a comment

Choose a reason for hiding this comment

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

Just a quick comment @GROwen :)

@GROwen GROwen merged commit a18f567 into 4.x Aug 17, 2022
@GROwen GROwen deleted the build/DDS-1263--add-phpdbg branch August 17, 2022 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NEEDS REVIEW Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants