Skip to content

Commit 51d579c

Browse files
committed
Initial Dockerfile
1 parent cad5e96 commit 51d579c

3 files changed

Lines changed: 49 additions & 2 deletions

File tree

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM registry.redhat.io/3scale-amp2/system-rhel7:3scale2.13
2+
3+
USER root
4+
5+
COPY ./oracle-client-files/instantclient-basic*-linux.*.zip \
6+
./oracle-client-files/instantclient-sdk-linux.*.zip \
7+
./oracle-client-files/instantclient-odbc-linux.*.zip \
8+
/opt/system/vendor/oracle/
9+
10+
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient/:$LD_LIBRARY_PATH \
11+
ORACLE_HOME=/opt/oracle/instantclient/ \
12+
DB=oracle \
13+
TZ=utc \
14+
NLS_LANG=AMERICAN_AMERICA.UTF8
15+
16+
RUN ./script/oracle/install-instantclient-packages.sh \
17+
&& source /opt/app-root/etc/scl_enable \
18+
&& DB=oracle bundle install --local --deployment --jobs $(grep -c processor /proc/cpuinfo) --retry=5
19+
20+
USER 1001

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1-
# system-oracle
2-
System image build with Oracle Database support
1+
# System image build with Oracle Database support
2+
3+
4+
## Prerequisites
5+
6+
In order to work with Oracle Database for Red Hat 3scale API Management, you will need to create a custom image as Red Hat cannot distribute the binaries of Oracle Database client.
7+
8+
You **MUST** download the client (basic-lite or basic), the odbc driver and the sdk for **19.6** in [Oracle Technology Network](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html).
9+
10+
* Instant Client Package - Basic or Basic Lite
11+
* Instant Client Package - SDK
12+
* Instant Client Package - ODBC driver
13+
14+
Example:
15+
16+
* instantclient-basiclite-linux.x64-19.6.0.0.0dbru.zip or instantclient-basic-linux.x64-19.6.0.0.0dbru.zip
17+
* instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip
18+
* instantclient-odbc-linux.x64-19.6.0.0.0dbru.zip
19+
20+
## Instructions
21+
22+
1 - Place the downloaded files in the `oracle-client-files` directory.
23+
24+
25+
2 - Build the custom system Oracle-based image. The image tag must be a fixed image tag as in the following example:
26+
27+
```
28+
$ docker build . --tag myregistry.example.com/system-oracle:2.13.0-1
29+
```

oracle-client-files/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)