Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Commit

Permalink
Fix for Alpine image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannig committed Sep 6, 2019
1 parent f1e45ac commit 7be9410
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7be9410

Please sign in to comment.