Skip to content

Commit

Permalink
Merge pull request #20 from simonpasquier/update-golang-1.13
Browse files Browse the repository at this point in the history
Update to Go 1.13
  • Loading branch information
openshift-merge-robot committed Jan 8, 2020
2 parents 4aaa91e + a5e0854 commit 177b481
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile.ocp
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.12 AS builder
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.13 AS builder
WORKDIR /go/src/github.com/improbable-eng/thanos
COPY . .
ENV GOFLAGS="-mod=vendor"
ENV GO111MODULE=on
ENV GOPROXY=direct
RUN make check-git; \
if yum install -y prometheus-promu; then \
export PROMU=/usr/bin/promu; \
promu build; \
else \
make build; \
fi
# Installing using the upstream Makefile doesn't work with older versions of Git and newer versions of Go.
# Instead install promu from the upstream tarball.
# For downstream builds, promu is available from the package repositories.
RUN if ! yum install -y prometheus-promu; then \
curl -s -L https://github.com/prometheus/promu/releases/download/v0.5.0/promu-0.5.0.linux-amd64.tar.gz | tar -xzvf - -C /usr/bin --strip-components 1 promu-0.5.0.linux-amd64/promu; \
fi; \
promu build;
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
LABEL io.k8s.display-name="OpenShift Thanos" \
io.k8s.description="Highly available Prometheus setup with long term storage capabilities." \
Expand Down

0 comments on commit 177b481

Please sign in to comment.