Repository navigation
Conversation
This requires Oracle's Instant Client Lite & SDK. These are not provided by the PR and need to be supplied by the end user. If these are not supplied, the OraclePeclRecipe will be an noop. Build instructions are the same with one exception, you need to add an additonal mount instruction to `docker run`, i.e. `-v /path/to/instant/client&sdk:/oracle`. The recipe expects the files to be at `/oracle` and without those files the recipe won't run. For PHP 5.5 and 5.6, the recipe pulls in oci8 2.0.x. For PHP 7, it pulls in 2.1.x. The recipe pulls in the following Oracle libraries and bundles them with the resulting PHP binary (in `php/lib`). - libclntshcore.so - libclntsh.so - libipc1.so - libmql1.so - libnnz12.so - libociicus.so - libons.so Please be aware of this and that distributing these files is likely in violation of Oracles terms and conditions. Please also be aware that libociicus.so is a US English specific library from the Instant Client Lite. If you need multi-language support, you may need to use the full Instant Client and include additional libraries.
|
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/127119995 The labels on this github issue will be updated when the story is started. |
|
I'm not sure I understand the full context of this PR. Can you help us understand the compelling reason to merge this into binary builder given the statement to "be aware of this and that distributing these files is likely in violation of Oracles terms and conditions."? Can those who are interested in building PHP with this Oracle extension fork binary builder themselves and apply these changes? |
|
The addition to binary-builder is code only. It doesn't add, include or download any Oracle licensed files. It just gives you a recipe to build them should you as the user want to provide those files (i.e. the Oracle instant client & sdk). If you don't provide those, then this change should be a noop. The benefits of doing this are:
The warning, "be aware of this and that distributing these files is likely in violation of Oracles terms and conditions.", is in reference to the binaries that are produced with binary-builder. If you include the Oracle instant client & sdk, this recipe will copy some of those files into the resulting php-xxx.tgz file that is used by the build pack. Because that tgz file contains Oracle licensed binaries, it's not something that could be distributed without getting proper approvals. I was just attempting to make this clear so that end users of the binary-builder are aware of this. This is only relevant if you include the Oracle instant client & sdk as the recipe can't build the Oracle modules without Oracle libraries & sdk. |
|
For what it's work, I'm going to close out this PR and open a new one. I added another recipe to build the |
This requires Oracle's Instant Client Lite & SDK. These are not
provided by the PR and need to be supplied by the end user. If these
are not supplied, the OraclePeclRecipe will be an noop.
Build instructions are the same with one exception, you need to add an
additonal mount instruction to
docker run, i.e.-v /path/to/instant/client&sdk:/oracle. The recipe expects the files tobe at
/oracleand without those files the recipe won't run.For PHP 5.5 and 5.6, the recipe pulls in oci8 2.0.x. For PHP 7, it
pulls in 2.1.x.
The recipe pulls in the following Oracle libraries and bundles them with
the resulting PHP binary (in
php/lib).Please be aware of this and that distributing these files is likely in
violation of Oracles terms and conditions.
Please also be aware that libociicus.so is a US English specific library
from the Instant Client Lite. If you need multi-language support, you
may need to use the full Instant Client and include additional
libraries.
Let me know if there's anything that needs to be cleaned up here. Consider this a first draft.
Thanks!