Skip to content

Instantly share code, notes, and snippets.

@marcelo-ochoa
Created July 5, 2018 16:35
Show Gist options
  • Save marcelo-ochoa/e3bd9060857f511e0abf84c8f7f5bc29 to your computer and use it in GitHub Desktop.
Save marcelo-ochoa/e3bd9060857f511e0abf84c8f7f5bc29 to your computer and use it in GitHub Desktop.
FROM oracle/database:12.2.0.1-ee as rdbms-ee
FROM oraclelinux:7-slim
RUN yum -y install libaio && \
rm -rf /var/cache/yum
COPY --from=rdbms-ee /opt/oracle/product/12.2.0.1/dbhome_1/bin/orion /usr/lib/oracle/12.2/client64/bin/
COPY --from=rdbms-ee \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libclntsh.so.12.1 \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libclntshcore.so.12.1 \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libhasgen12.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libskgxn2.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libocr12.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libocrb12.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libocrutl12.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libnnz12.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libcell12.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libskgxp12.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libmql1.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libipc1.so \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libons.so /usr/lib/oracle/12.2/client64/lib/
RUN echo /usr/lib/oracle/12.2/client64/lib > /etc/ld.so.conf.d/oracle-orion12.2.conf && \
ldconfig
ENV PATH=$PATH:/usr/lib/oracle/12.2/client64/bin
WORKDIR /home
CMD ["orion", "-help"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment