Skip to content

Commit c33fc76

Browse files
authored
Merge pull request #1 from 3scale/upgrade-to-2.15
THREESCALE-11393: Upgrade the Dockefile for system image based on RHEL8
2 parents 31d6949 + 8047970 commit c33fc76

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.redhat.io/3scale-amp2/system-rhel7:3scale2.14
1+
FROM registry.redhat.io/3scale-amp2/system-rhel8:3scale2.15
22

33
USER root
44

@@ -7,14 +7,15 @@ COPY ./oracle-client-files/instantclient-basic*-linux.*.zip \
77
./oracle-client-files/instantclient-odbc-linux.*.zip \
88
/opt/system/vendor/oracle/
99

10-
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient/:$LD_LIBRARY_PATH \
10+
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient/ \
1111
ORACLE_HOME=/opt/oracle/instantclient/ \
1212
DB=oracle \
1313
TZ=utc \
1414
NLS_LANG=AMERICAN_AMERICA.UTF8
1515

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
16+
RUN dnf install wget unzip make ruby-devel gcc gcc-c++ redhat-rpm-config libaio -y \
17+
&& ./script/oracle/install-instantclient-packages.sh \
18+
&& ln -s /usr/lib64/libnsl.so.2 /usr/lib64/libnsl.so.1 \
19+
&& DB=oracle bundle install --jobs $(grep -c processor /proc/cpuinfo) --retry=5
1920

2021
USER 1001

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@
55

66
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.
77

8-
You **MUST** download the client (basic-lite or basic), the odbc driver and the sdk for **19.6** in [Oracle Technology Network](https://www.oracle.com/technetwork/database/features/instant-client/index-097480.html).
8+
You must download the client (basic-lite or basic), the ODBC driver and the SDK with version **19.18** in [Oracle Instant Client Downloads for Linux x86-64 (64-bit)
9+
](https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html). If the files are not present in `oracle-client-files`, they will be downloaded during the build process.
910

1011
* Instant Client Package - Basic or Basic Lite
1112
* Instant Client Package - SDK
1213
* Instant Client Package - ODBC driver
1314

1415
Example:
1516

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
17+
* [instantclient-basiclite-linux.x64-19.18.0.0.0dbru.zip](https://download.oracle.com/otn_software/linux/instantclient/1918000/instantclient-basiclite-linux.x64-19.18.0.0.0dbru.zip) or [instantclient-basic-linux.x64-19.18.0.0.0dbru.zip](https://download.oracle.com/otn_software/linux/instantclient/1918000/instantclient-basic-linux.x64-19.18.0.0.0dbru.zip)
18+
* [instantclient-sdk-linux.x64-19.18.0.0.0dbru.zip](https://download.oracle.com/otn_software/linux/instantclient/1918000/instantclient-sdk-linux.x64-19.18.0.0.0dbru.zip)
19+
* [instantclient-odbc-linux.x64-19.18.0.0.0dbru.zip]( https://download.oracle.com/otn_software/linux/instantclient/1918000/instantclient-odbc-linux.x64-19.18.0.0.0dbru.zip)
1920

2021
## Instructions
2122

2223
1 - Place the downloaded files in the `oracle-client-files` directory.
2324

24-
25-
2 - Build the custom system Oracle-based image. The image tag must be a fixed image tag as in the following example:
25+
2 - Build the custom system Oracle-based image. The image tag must be a fixed image tag as in the following example:
2626

2727
```
28-
$ docker build . --tag myregistry.example.com/system-oracle:2.14.0-1
28+
$ podman build . --tag myregistry.example.com/system-oracle:2.15.0-1
2929
```

0 commit comments

Comments
 (0)