forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OL8 Dockerfile for Instant Client 19 (oracle#1770)
Signed-off-by: Christopher Jones <[email protected]>
- Loading branch information
Showing
5 changed files
with
134 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
# | ||
# Execute: | ||
# $ docker build --pull -t oracle/instantclient:19 . | ||
# $ docker run -ti --rm oracle/instantclient:19 sqlplus [email protected]/orclpdb1 | ||
# $ docker run -ti --rm oracle/instantclient:19 sqlplus -l [email protected]/orclpdb1 | ||
# | ||
# NOTES | ||
# ----- | ||
|
@@ -44,7 +44,8 @@ | |
# ORACLE INSTANT CLIENT PACKAGES | ||
# ------------------------------ | ||
# | ||
# Instant Client Packages are available from https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/index.html | ||
# Instant Client Packages for Oracle Linux 7 are available from | ||
# https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/index.html | ||
# | ||
# Base - one of these packages is required to run applications and tools | ||
# oracle-instantclientXX.Y-basic : Basic Package - All files required to run OCI, OCCI, and JDBC-OCI applications | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# LICENSE UPL 1.0 | ||
# | ||
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# Container image template for Oracle Instant Client | ||
# | ||
# HOW TO BUILD THIS IMAGE AND RUN A CONTAINER | ||
# -------------------------------------------- | ||
# | ||
# Execute: | ||
# $ docker build --pull -t oracle/instantclient:19 . | ||
# $ docker run -ti --rm oracle/instantclient:19 sqlplus [email protected]/orclpdb1 | ||
# | ||
# NOTES | ||
# ----- | ||
# | ||
# Applications using Oracle Call Interface (OCI) 19 can connect to | ||
# Oracle Database 11.2 or later. Some tools may have other | ||
# restrictions. | ||
# | ||
# Oracle Instant Client 19 automatically configures the global library search | ||
# path to include Instant Client libraries. | ||
# | ||
# OPTIONAL ORACLE CONFIGURATION FILES | ||
# ----------------------------------- | ||
# | ||
# Optional Oracle Network and Oracle client configuration files can be put in the | ||
# default configuration file directory /usr/lib/oracle/<version>/client64/lib/network/admin. | ||
# Configuration files include tnsnames.ora, sqlnet.ora, oraaccess.xml and | ||
# cwallet.sso. You can use a Docker volume to mount the directory containing | ||
# the files at runtime, for example: | ||
# | ||
# docker run -v /my/host/wallet_dir:/usr/lib/oracle/19.9/client64/lib/network/admin:Z,ro . . . | ||
# | ||
# This avoids embedding private information such as wallets in images. If you | ||
# do choose to include network configuration files in images, you can use a | ||
# Dockerfile COPY, for example: | ||
# | ||
# COPY tnsnames.ora sqlnet.ora /usr/lib/oracle/${release}.${update}/client64/lib/network/admin/ | ||
# | ||
# There is no need to set the TNS_ADMIN environment variable when files are in | ||
# the container's default configuration file directory, as shown. | ||
# | ||
# ORACLE INSTANT CLIENT PACKAGES | ||
# ------------------------------ | ||
# | ||
# Instant Client Packages for Oracle Linux 8 are available from | ||
# https://yum.oracle.com/repo/OracleLinux/OL8/oracle/instantclient/x86_64/index.html | ||
# | ||
# Base - one of these packages is required to run applications and tools | ||
# oracle-instantclientXX.Y-basic : Basic Package - All files required to run OCI, OCCI, and JDBC-OCI applications | ||
# oracle-instantclientXX.Y-basiclite : Basic Light Package - Smaller version of the Basic package, with only English error messages and Unicode, ASCII, and Western European character set support | ||
# | ||
# Tools - optional packages (requires the 'basic' package) | ||
# oracle-instantclientXX.Y-sqlplus : SQL*Plus Package - The SQL*Plus command line tool for SQL and PL/SQL queries | ||
# oracle-instantclientXX.Y-tools : Tools Package - Includes Data Pump, SQL*Loader and Workload Replay Client | ||
# | ||
# Development and Runtime - optional packages (requires the 'basic' package) | ||
# oracle-instantclientXX.Y-devel : SDK Package - Additional header files and an example makefile for developing Oracle applications with Instant Client | ||
# oracle-instantclientXX.Y-jdbc : JDBC Supplement Package - Additional support for Internationalization under JDBC | ||
# oracle-instantclientXX.Y-odbc : ODBC Package - Additional libraries for enabling ODBC applications | ||
# | ||
|
||
FROM oraclelinux:8-slim | ||
|
||
LABEL "provider"="Oracle" \ | ||
"issues"="https://github.com/oracle/docker-images/issues" | ||
|
||
ARG release=19 | ||
ARG update=9 | ||
|
||
RUN microdnf install oracle-release-el8 && \ | ||
microdnf install oracle-instantclient${release}.${update}-basic oracle-instantclient${release}.${update}-devel oracle-instantclient${release}.${update}-sqlplus && \ | ||
microdnf clean all | ||
|
||
# Uncomment if the tools package is added | ||
# ENV PATH=$PATH:/usr/lib/oracle/${release}.${update}/client64/bin | ||
|
||
CMD ["sqlplus", "-v"] |