Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upConnecting to Oracle database (beta) #394
Comments
This comment has been minimized.
This comment has been minimized.
Hi @9034725985, The only missing parts are the PHP modules In order to compile them, one must have Oracle Instant Client installed. However, in order to download the Oracle Instant Client, one must manually accept the license first. I have not enough legal knowledge if this can be bundled inside a Docker container and distributed freely available on Dockerhub. For that to include in the Devilbox by default, I would require legal advice making it clear that it does not raise any legal issues. For now, I cannot do much, except keeping this issue open until somebody can point me to a link where the legal implications are clearly stated. |
cytopia
added
the
help wanted
label
Oct 4, 2018
This comment has been minimized.
This comment has been minimized.
Hi, I couldn't figure out how to install it manually. I downloaded the zip and placed it in /opt folder on the php container root@php-7.2.9 in /shared/httpd $ rsync -av /shared/httpd/instantclient_18_3 /opt/ sent 232,757,557 bytes received 380 bytes 4,609,068.06 bytes/sec libaio1 is already installed root@php-7.2.9 in /shared/httpd $ sudo sh -c "echo /opt/oracle/instantclient_18_3 > \
I think I am missing something, right? |
This comment has been minimized.
This comment has been minimized.
You must do the following:
Note: The path in |
cytopia
self-assigned this
Nov 4, 2018
cytopia
added
the
legal issue
label
Nov 4, 2018
This comment has been minimized.
This comment has been minimized.
legal issueIs anyone able to solve this legal issue and has some reference to backup the claim if this can be bundled or can't be bundled? |
This comment has been minimized.
This comment has been minimized.
science695
commented
Nov 5, 2018
I did a quick google search and found a github project, is this related? |
This comment has been minimized.
This comment has been minimized.
@science695 the project als requires you to manually download the OracleInstantClient from the web and then you can proceed building the images: https://github.com/oracle/docker-images/tree/master/OracleInstantClient#building-the-oracle-instant-client-122-image So I guess I unfortunately cannot ship this here |
This comment has been minimized.
This comment has been minimized.
science695
commented
Nov 21, 2018
You could offer instructions on having docker compose use the dockerfile and build the images locally, then if they decided to build the oracle versions, they could accept the EULAs. |
This comment has been minimized.
This comment has been minimized.
filippomanicone
commented
Nov 28, 2018
i have try to install Instant client but i receve this error sudo alien -i oracle-instantclient12.1-basiclite-12.1.0.2.0-1.x86_64.rpm |
This comment has been minimized.
This comment has been minimized.
An alternative I am currently investigating (as I am running into similar legal issues with Microsoft ODBC) is to have a directory where you can add user-defined scripts that are run by the PHP container during startup. This could be for example a script installing the oracle-instantclient. |
This comment has been minimized.
This comment has been minimized.
@filippomanicone @science695 @9034725985
This will eliminate the current limitations due to legal issues. Current PR for php-fpm is here: devilbox/docker-php-fpm#78 |
cytopia
added
feature
and removed
help wanted
labels
Dec 24, 2018
This comment has been minimized.
This comment has been minimized.
Devilbox PR is open: #446 You can checkout this git branch: |
This comment has been minimized.
This comment has been minimized.
@9034725985 For now you can already install it manually via: Install instructions (inside PHP container)#!/bin/bash
#
# https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/
#
apt-get update -q
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests alien
# Instantclient (basic lite)
curl -o /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm
# Instantclient (devel)
curl -o /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm
# Install RPMs
alien -i /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm
alien -i /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm
# Rempve RPMs
rm -f /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm
rm -f /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm
# Necessary symlinks
ln -s /usr/lib/oracle/18.3/client64/lib/libmql1.so /usr/lib/
ln -s /usr/lib/oracle/18.3/client64/lib/libipc1.so /usr/lib/
ln -s /usr/lib/oracle/18.3/client64/lib/libnnz18.so /usr/lib/
ln -s /usr/lib/oracle/18.3/client64/lib/libons.so /usr/lib/
ln -s /usr/lib/oracle/18.3/client64/lib/libclntshcore.so.18.1 /usr/lib/
# Build and install PHP extension
docker-php-ext-configure oci8 --with-oci8=instantclient
docker-php-ext-install oci8
docker-php-ext-enable oci8 |
This comment has been minimized.
This comment has been minimized.
Updated version (
|
This comment has been minimized.
This comment has been minimized.
This will currently fail due to some variable name collisions inside the container ( |
added a commit
that referenced
this issue
Dec 26, 2018
This comment has been minimized.
This comment has been minimized.
@9034725985 @science695 @filippomanicone Let me know if this works as expected. |
This comment has been minimized.
This comment has been minimized.
Seems like those |
added a commit
that referenced
this issue
Jan 2, 2019
cytopia
referenced this issue
Jan 2, 2019
Merged
Fixes #394 Native Oracle Database support for PHP #452
cytopia
closed this
in
#452
Jan 2, 2019
added a commit
that referenced
this issue
Jan 2, 2019
This comment has been minimized.
This comment has been minimized.
Merged and available now. It is disabled by default in |
This comment has been minimized.
This comment has been minimized.
Announcement and follow up discussions here: https://devilbox.discourse.group/t/feature-oracle-database-support/22 mention: @9034725985 @filippomanicone @science695 |
9034725985 commentedOct 3, 2018
ISSUE TYPE
SUMMARY
in its default state, I cannot get devilbox to talk to oracle databases out of the box.
I tried adminer from within devilbox but
Looks like some other project has the same open issue?
clue/docker-adminer#15
Goal
I want to connect to oracle from my php code
something like