Repository navigation
Geoip extension - #24
Conversation
…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.
|
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. |
|
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. |
|
Awesome, thanks Dan! |
|
@dmikusa-pivotal @sclevine We have reverted this since it broke the build. Also I believe for this to be useful we also had to include the geoip pecl ; which only works for PHP 5.x. |
|
@dmikusa-pivotal could you address the failures? Also, what are your thoughts on the incompatibility with PHP 7? |
|
The error showing up, 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. |
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 |
…ension"" - going to try to get this to work This reverts commit 849cb56.
Geoip extension
…al/geoip-extension"" - going to try to get this to work This reverts commit 849cb56.
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.