Skip to content

Commit

Permalink
Merge pull request #17 from sosiouxme/patch-1
Browse files Browse the repository at this point in the history
Dockerfile.rhel: work around correct imagebuilder bug
  • Loading branch information
openshift-merge-robot authored Jan 4, 2019
2 parents 1277123 + fb193ca commit 34c1125
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder

ENV ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager
ENV BUILD_PROMU=false
ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager
ARG BUILD_PROMU=false
COPY . ${ALERTMANAGER_GOPATH}
RUN cd ${ALERTMANAGER_GOPATH} && \
yum install -y prometheus-promu && \
Expand All @@ -14,12 +14,13 @@ LABEL io.k8s.display-name="OpenShift Prometheus Alert Manager" \
io.openshift.tags="prometheus,monitoring" \
maintainer="OpenShift Development <[email protected]>"

ENV ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager
ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager
COPY --from=builder ${ALERTMANAGER_GOPATH}/amtool /bin/amtool
COPY --from=builder ${ALERTMANAGER_GOPATH}/alertmanager /bin/alertmanager
COPY --from=builder ${ALERTMANAGER_GOPATH}/examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml

EXPOSE 9093
RUN mkdir -p /alertmanager
VOLUME [ "/alertmanager" ]
WORKDIR /etc/alertmanager
ENTRYPOINT [ "/bin/alertmanager" ]
Expand Down

0 comments on commit 34c1125

Please sign in to comment.