Docker Oracle Instant Client [英] Docker Oracle Instant Client

查看:91
本文介绍了Docker Oracle Instant Client的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试4天了:

  • 使用Docker部署Oracle Instant Client.我可以给你Dockerfile,但是它是96行

  • Deploy Oracle Instant Client with Docker. I can give you the Dockerfile but it is 96 lines

要在我的Linux Ubuntu最新版本上使用Oracle Instant Client.

To use Oracle Instant Client on my Linux Ubuntu latest.

最后我遇到了两个相同的问题.

In the end I arrive at the same two issues.

使用以下命令安装OCI 8时:

When installing OCI 8 with the command:

  • Docker:

RUN echo'instantclient,/usr/local/instantclient'|pecl安装oci8

RUN echo 'instantclient, / usr / local / instantclient' | pecl install oci8

  • Ubuntu:
  • echo"instantclient,/opt/oracle/Instantclient_12_2"|苏多·佩克安装oci8

    echo "instantclient, / opt / oracle / instantclient_12_2" | sudo pecl install oci8

    我得到了错误:

    make: *** [Makefile: 194: oci8.lo] Error 1
    ERROR: `make 'failed
    

    找不到解决方案.

    在两种情况下都正确安装了Make:

    Make is correctly installed in both cases:

    为x86_64-pc-linux-gnu构建的GNU Make 4.2.1版权所有(C)1988-2016Free Software Foundation,Inc. GPLv3 +许可证:GNU GPL版本3或稍后 http://gnu.org/licenses/gpl.html 这是免费软件:您可以自由更改和重新分发它.没有保修,在法律允许的范围内.

    GNU Make 4.2.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2016 Free Software Foundation, Inc. GPLv3 + license: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

    你有个主意吗?在我的其余工作中,这使我受阻.

    Do you have an idea ? It blocks me for the rest of my work.

    BR,

    尼古拉斯.

    我尝试这个:

    pear download pecl/oci8
    tar xvzf oci8-3.0.0.tgz
    phpize
    ./configure --with-oci8=instantclient,/opt/oracle/instantclient_12_2/
    make
    

    同一问题:

    make: *** [Makefile:194: oci8.lo] Error 1
    

    我要疯了...

    推荐答案

    如果您遵循Oracle Github Repo for Docker的说明,则应该能够构建自己的Instantclient.

    If you follow the instructions from Oracle's Github Repo for Docker you should be able to build your own instantclient.

    https://github.com/oracle/docker-images/tree/master/OracleInstantClient

    另一种选择是仅使用其容器注册表中的现有图像.

    Another option will be to just make use of an existing image from their container-registry.

    docker pull container-registry.oracle.com/database/instantclient:latest
    

    祝你好运!

    这篇关于Docker Oracle Instant Client的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆