forked from prometheus/alertmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from sosiouxme/patch-1
Dockerfile.rhel: work around correct imagebuilder bug
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 && \ | ||
|
@@ -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" ] | ||
|