This repository has been archived by the owner on Feb 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,24 +20,20 @@ ENV GOOS linux | |
|
||
RUN go build -v -ldflags "-X main.Version=${VERSION} -s -w" | ||
|
||
FROM alpine:3.9 | ||
FROM frolvlad/alpine-glibc:glibc-2.29 | ||
LABEL authors="Seth Miller,Yannig Perré" | ||
LABEL maintainer="Yannig Perré <[email protected]>" | ||
|
||
ENV VERSION ${VERSION:-0.1.0} | ||
|
||
COPY oracle-instantclient*basic*.rpm / | ||
|
||
COPY sgerrand.rsa.pub /etc/apk/keys/sgerrand.rsa.pub | ||
COPY glibc-2.29-r0.apk /tmp/glibc-2.29-r0.apk | ||
RUN apk add /tmp/glibc-2.29-r0.apk && rm -f /etc/apk/keys/sgerrand.rsa.pub /tmp/glibc-2.29-r0.apk | ||
RUN apk add libaio | ||
|
||
ENV LD_LIBRARY_PATH /usr/lib/oracle/18.3/client64/lib | ||
|
||
COPY --from=build $LD_LIBRARY_PATH $LD_LIBRARY_PATH | ||
COPY --from=build /go/src/oracledb_exporter/oracledb_exporter /oracledb_exporter | ||
COPY --from=build /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/glibc-compat/lib | ||
COPY --from=build /lib/x86_64-linux-gnu/libaio.so.1 /usr/glibc-compat/lib | ||
ADD ./default-metrics.toml /default-metrics.toml | ||
|
||
ENV DATA_SOURCE_NAME system/oracle@oracle/xe | ||
|