Skip to content

Geoip extension - #24

Merged
dgodd merged 5 commits into
cloudfoundry:masterfrom
dmikusa:geoip-extension
Feb 16, 2017
Merged

dgodd merged 5 commits into
cloudfoundry:masterfrom
dmikusa:geoip-extension

Conversation

@dmikusa

@dmikusa dmikusa commented Feb 1, 2017

Copy link
Copy Markdown

I've added support for the geoip extension, plus support for downloading the required geoip databases. There's an option to download at build time and package the "lite" version of the DB with the produced PHP binaries. There's also the option to just package the scripts to download the files, so that those can be run during staging. I plan to add something to the PHP build pack to take advantage of these scripts and easily run them at staging. That'll be another pull request, hopefully soon.

Daniel Mikusa added 4 commits February 1, 2017 12:59
…atabases. These scripts can be run at build time to pack geoip lite dbs with the PHP binary. They are also packed into the PHP binary so they can be executed by the build pack at staging time (assuming the env has Internet access).
…wnload geoip db files with the PHP binary. Optionally the recipe will also download and packge the geoip lite databases with the PHP binary. This is triggered if the BUNDLE_GEOIP_LITE file exists in the project directory. Geoip Lite databases are distributed under the Creative Commons Attribution-ShareAlike 4.0 International License.
…download scripts are packaged and that optionally the geoip lite dbs are packaged with the PHP binary.
@cfdreddbot

Copy link
Copy Markdown

Hey dmikusa-pivotal!

Thanks for submitting this pull request!

All pull request submitters and commit authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate).

When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization.

If you are confident that you're covered under a Corporate CLA, please make sure you've publicized your membership in the appropriate Github Org, per these instructions.

Once you've publicized your membership, one of the owners of this repository can close and reopen this pull request, and dreddbot will take another look.

@cf-gitbot

Copy link
Copy Markdown

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/138843171

The labels on this github issue will be updated when the story is started.

@sclevine

sclevine commented Feb 3, 2017

Copy link
Copy Markdown

Awesome, thanks Dan!

@dgodd
dgodd merged commit ddfe72b into cloudfoundry:master Feb 16, 2017
dgodd pushed a commit that referenced this pull request Feb 21, 2017
This reverts commit ddfe72b, reversing
changes made to c17c1d2.

Signed-off-by: Dave Goddard <dave@goddard.id.au>
@dgodd

dgodd commented Feb 21, 2017

Copy link
Copy Markdown
Contributor

@dmikusa-pivotal @sclevine We have reverted this since it broke the build.

eg. https://buildpacks.ci.cf-app.com/teams/main/pipelines/binary-builder/jobs/binary-builder-specs/builds/76

Also I believe for this to be useful we also had to include the geoip pecl ; which only works for PHP 5.x.

@sclevine

Copy link
Copy Markdown

@dmikusa-pivotal could you address the failures?

Also, what are your thoughts on the incompatibility with PHP 7?

@dmikusa

dmikusa commented Feb 21, 2017

Copy link
Copy Markdown
Author

The error showing up, Failure/Error: expect(tar_contains_file('php/lib/php/extensions/*/geoip.so')).to eq true, appears to be saying that the extension file wasn't built.

This happened while testing and it was usually when the yml file that specifies which PHP extensions to build was pointing to the wrong place and thus the yml file didn't have geoip listed.

@dmikusa

dmikusa commented Feb 21, 2017

Copy link
Copy Markdown
Author

Also I believe for this to be useful we also had to include the geoip pecl ; which only works for PHP 5.x.

Not sure I follow this. This PR builds the geoip pecl extension. It was tested w/version 1.1.1 which has PHP 7 support.

https://pecl.php.net/package-changelog.php?package=geoip&release=1.1.1

sesmith177 pushed a commit that referenced this pull request Feb 22, 2017
…ension""

- going to try to get this to work

This reverts commit 849cb56.
bonfilsd pushed a commit to orange-cloudfoundry/binary-builder that referenced this pull request Oct 12, 2017
bonfilsd pushed a commit to orange-cloudfoundry/binary-builder that referenced this pull request Oct 12, 2017
…-extension"

This reverts commit ddfe72b, reversing
changes made to c17c1d2.

Signed-off-by: Dave Goddard <dave@goddard.id.au>
bonfilsd pushed a commit to orange-cloudfoundry/binary-builder that referenced this pull request Oct 12, 2017
…al/geoip-extension""

- going to try to get this to work

This reverts commit 849cb56.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants