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

Implementation of HTTPD + FPM use case #4

Merged
merged 6 commits into from
Mar 22, 2022
Merged

Implementation of HTTPD + FPM use case #4

merged 6 commits into from
Mar 22, 2022

Conversation

sophiewigmore
Copy link
Member

@sophiewigmore sophiewigmore commented Mar 11, 2022

Summary

Resolves #1

BLOCKED on the merge and release of:
paketo-buildpacks/php-fpm#4
paketo-buildpacks/php-httpd#3

Use Cases

Supports HTTPD and FPM running in the same container

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@sophiewigmore sophiewigmore requested review from a team, dmikusa and paketo-bot-reviewer and removed request for a team March 11, 2022 16:36
@sophiewigmore sophiewigmore added status/blocked This issue has been triaged and resolving it is blocked on some other issue restructure labels Mar 11, 2022
@sophiewigmore
Copy link
Member Author

@thitch97 this cannot be merged until there are releases of php-fpm and php-httpd

@sophiewigmore sophiewigmore removed the status/blocked This issue has been triaged and resolving it is blocked on some other issue label Mar 18, 2022
@sophiewigmore sophiewigmore marked this pull request as ready for review March 18, 2022 14:10
@sophiewigmore sophiewigmore requested a review from a team as a code owner March 18, 2022 14:10
@thitch97 thitch97 added the semver:patch A change requiring a patch version bump label Mar 18, 2022
build_test.go Outdated Show resolved Hide resolved
Expect(os.RemoveAll(workingDir)).To(Succeed())
})

context("the PHP_HTTPD_PATH env var is set", func() {
Copy link
Contributor

@thitch97 thitch97 Mar 21, 2022

Choose a reason for hiding this comment

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

I think I understand why this case is here, but just to validate my own understanding:
Am I correct in thinking this case (which results in a HTTPD proc and NOT a FPM one) would be an unlikely one given PHPRC, PHP_FPM_PATH and PHP_HTTPD_PATH would likely be set by this point in the build?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, you're right on. This won't happen as of now with the way the buildpacks are set up. The plan is to eventually (post re-write probably) support FPM running in its own container, in which case this situation will become more common.

Copy link
Contributor

Choose a reason for hiding this comment

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

Understood. The php-fpm buildpack is expected to be optional based on RFC 0003, but it doesn't appear to be in this case. Is that also related to the plan stated above?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes! should have called that out. Also worth noting I would expect us not to cut a release of this buildpack until we have support for the Nginx + FPM case too

Co-authored-by: Tim Hitchener <thitch97@users.noreply.github.com>
@thitch97 thitch97 merged commit c6ab147 into main Mar 22, 2022
@sophiewigmore sophiewigmore deleted the implementation2 branch March 29, 2022 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restructure buildpack: PHP Start for HTTPD
2 participants