Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 7 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,13 @@ ENV DEBIAN_FRONTEND=noninteractive
ARG GOARCH
ENV GOARCH=${GOARCH:-amd64}

# note: the 23ai arm drivers are not in yum yet, when they are can switch this to just use yum and not need
# to wget the driver for arm. also note that the permalink for otn download of drivers does not have version
# in it, and does not appear to be a link vith version in it, so that link is very brittle and could break build

# second note: moved back to 21c drivers due to adb-s non-root connection issue. for 23ai, change rpm to
# oracle-instantclient-release-23ai-el8 and paths below s/21/23/
RUN if [ "$GOARCH" = "amd64" ]; then \
microdnf update && \
microdnf install -y oracle-instantclient-release-el8 && \
microdnf install -y oracle-instantclient-basic && \
microdnf install glibc-2.28-251.0.2.el8_10.4 \
; else \
microdnf update && \
microdnf install wget libaio && \
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linux-arm64.rpm && \
rpm -ivh instantclient-basic-linux-arm64.rpm && \
ln -s /usr/lib/oracle/19.24 /usr/lib/oracle/21 && \
microdnf install glibc-2.28-251.0.2.el8_10.4 \
; fi

ENV LD_LIBRARY_PATH=/usr/lib/oracle/21/client64/lib:usr/lib/oracle/19.24/client64/lib
ENV PATH=$PATH:/usr/lib/oracle/21/client64/bin:usr/lib/oracle/19.24/client64/bin
RUN microdnf update && \
microdnf install -y oracle-instantclient-release-23ai-el8-1.0-4.el8 && \
microdnf install -y oracle-instantclient-basic-23.9.0.25.07-1.el8 && \
microdnf install -y glibc-2.28-251.0.3.el8_10.25

ENV LD_LIBRARY_PATH=/usr/lib/oracle/23/client64/lib
ENV PATH=$PATH:/usr/lib/oracle/23/client64/bin

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