Skip to content

Commit

Permalink
Vendor: replace dep with go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pwillie committed May 28, 2019
1 parent cd365e5 commit 29ffb2a
Show file tree
Hide file tree
Showing 773 changed files with 99,830 additions and 128,030 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.vscode
bin
coverage.out
coverage.out
release/
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# Build Stage
FROM golang:alpine AS build-stage
FROM golang:1.12 AS build-stage

LABEL app="build-prometheus-es-adapter"
LABEL REPO="https://github.com/pwillie/prometheus-es-adapter"

RUN apk add -U -q --no-progress make git

ADD . /go/src/github.com/pwillie/prometheus-es-adapter
WORKDIR /go/src/github.com/pwillie/prometheus-es-adapter
WORKDIR /src
ADD . .

RUN make build-alpine
RUN make test && make build

# Final Stage
FROM alpine:latest
Expand All @@ -18,7 +13,7 @@ ENV USERID 789
ENV USERNAME pesa

RUN addgroup -g ${USERID} -S ${USERNAME} \
&& adduser -u ${USERID} -G ${USERNAME} -S ${USERNAME}
&& adduser -u ${USERID} -G ${USERNAME} -S ${USERNAME}

ARG GIT_COMMIT
ARG VERSION
Expand All @@ -28,7 +23,7 @@ LABEL VERSION=$VERSION

RUN apk add -U ca-certificates

COPY --from=build-stage /go/src/github.com/pwillie/prometheus-es-adapter/bin/prometheus-es-adapter /usr/local/bin/
COPY --from=build-stage /src/release/linux/amd64/prometheus-es-adapter /usr/local/bin/

USER ${USERNAME}

Expand Down
334 changes: 0 additions & 334 deletions Gopkg.lock

This file was deleted.

Loading

0 comments on commit 29ffb2a

Please sign in to comment.