Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from keptn-contrib/release-0.2.0
Browse files Browse the repository at this point in the history
Release 0.2.0
  • Loading branch information
bacherfl authored Oct 3, 2019
2 parents 4079519 + b322f79 commit 1eac448
Show file tree
Hide file tree
Showing 11 changed files with 905 additions and 159 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ RUN curl -L -s https://github.com/golang/dep/releases/download/v$DEP_VERSION/dep
# (You may fetch or manage dependencies here, either manually or with a tool like "godep".)
RUN CGO_ENABLED=0 GOOS=linux go build -v -o prometheus-service

ARG KUBE_VERSION=1.14.1
RUN wget -q https://storage.googleapis.com/kubernetes-release/release/v$KUBE_VERSION/bin/linux/amd64/kubectl -O /bin/kubectl && \
chmod +x /bin/kubectl

# Use a Docker multi-stage build to create a lean production image.
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
FROM alpine
Expand All @@ -30,9 +26,8 @@ ENV env=production

# Copy the binary to the production image from the builder stage.
COPY --from=builder /go/src/github.com/keptn-contrib/prometheus-service/prometheus-service /prometheus-service
COPY --from=builder /bin/kubectl /bin/kubectl

ADD MANIFEST /
ADD manifests /manifests

# Run the web service on container startup.
CMD ["sh", "-c", "cat MANIFEST && /prometheus-service"]
CMD ["sh", "-c", "cat MANIFEST && /prometheus-service"]
Loading

0 comments on commit 1eac448

Please sign in to comment.