Skip to content

Commit 9e31933

Browse files
Dockerfile updates to instantclient 23ai (#308)
Dockerfile updates to 23ai --------- Signed-off-by: Anders Swanson <[email protected]>
1 parent 244e15a commit 9e31933

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

Dockerfile

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,13 @@ ENV DEBIAN_FRONTEND=noninteractive
3535
ARG GOARCH
3636
ENV GOARCH=${GOARCH:-amd64}
3737

38-
# note: the 23ai arm drivers are not in yum yet, when they are can switch this to just use yum and not need
39-
# to wget the driver for arm. also note that the permalink for otn download of drivers does not have version
40-
# in it, and does not appear to be a link vith version in it, so that link is very brittle and could break build
41-
42-
# second note: moved back to 21c drivers due to adb-s non-root connection issue. for 23ai, change rpm to
43-
# oracle-instantclient-release-23ai-el8 and paths below s/21/23/
44-
RUN if [ "$GOARCH" = "amd64" ]; then \
45-
microdnf update && \
46-
microdnf install -y oracle-instantclient-release-el8 && \
47-
microdnf install -y oracle-instantclient-basic && \
48-
microdnf install glibc-2.28-251.0.2.el8_10.4 \
49-
; else \
50-
microdnf update && \
51-
microdnf install wget libaio && \
52-
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linux-arm64.rpm && \
53-
rpm -ivh instantclient-basic-linux-arm64.rpm && \
54-
ln -s /usr/lib/oracle/19.24 /usr/lib/oracle/21 && \
55-
microdnf install glibc-2.28-251.0.2.el8_10.4 \
56-
; fi
57-
58-
ENV LD_LIBRARY_PATH=/usr/lib/oracle/21/client64/lib:usr/lib/oracle/19.24/client64/lib
59-
ENV PATH=$PATH:/usr/lib/oracle/21/client64/bin:usr/lib/oracle/19.24/client64/bin
38+
RUN microdnf update && \
39+
microdnf install -y oracle-instantclient-release-23ai-el8-1.0-4.el8 && \
40+
microdnf install -y oracle-instantclient-basic-23.9.0.25.07-1.el8 && \
41+
microdnf install -y glibc-2.28-251.0.3.el8_10.25
42+
43+
ENV LD_LIBRARY_PATH=/usr/lib/oracle/23/client64/lib
44+
ENV PATH=$PATH:/usr/lib/oracle/23/client64/bin
6045

6146
COPY --from=build /go/src/oracledb_exporter/oracle-db-appdev-monitoring /oracledb_exporter
6247
ADD ./default-metrics.toml /default-metrics.toml

0 commit comments

Comments
 (0)