|
| 1 | +FROM openshift/golang-builder:1.11 AS builder |
| 2 | +ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 |
| 3 | + |
| 4 | +ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager |
| 5 | +ARG BUILD_PROMU=false |
| 6 | +COPY . ${ALERTMANAGER_GOPATH} |
| 7 | +RUN ["/opt/cov-sa-2019.09/bin/cov-build", "--dir=/cov", "--append-log", "sh", "-c", "cd ${ALERTMANAGER_GOPATH} && yum install -y prometheus-promu && make build && yum clean all"] |
| 8 | + |
| 9 | +FROM ubi7:7.6-159 |
| 10 | +ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 |
| 11 | + |
| 12 | +ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager |
| 13 | +COPY --from=builder ${ALERTMANAGER_GOPATH}/amtool /bin/amtool |
| 14 | +COPY --from=builder ${ALERTMANAGER_GOPATH}/alertmanager /bin/alertmanager |
| 15 | +COPY --from=builder ${ALERTMANAGER_GOPATH}/examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml |
| 16 | + |
| 17 | +EXPOSE 9093 |
| 18 | +RUN ["/opt/cov-sa-2019.09/bin/cov-build", "--dir=/cov", "--append-log", "sh", "-c", "mkdir -p /alertmanager"] |
| 19 | +VOLUME [ "/alertmanager" ] |
| 20 | +WORKDIR /etc/alertmanager |
| 21 | +ENTRYPOINT [ "/bin/alertmanager" ] |
| 22 | +CMD [ "--storage.path=/alertmanager" ] |
| 23 | + |
| 24 | +LABEL \ |
| 25 | + io.k8s.description="This is the Prometheus Alert Manager image." \ |
| 26 | + com.redhat.component="golang-github-prometheus-alertmanager-container" \ |
| 27 | + maintainer="OpenShift Development < [email protected]>" \ |
| 28 | + name="openshift/ose-prometheus-alertmanager" \ |
| 29 | + License="ASL 2.0" \ |
| 30 | + io.k8s.display-name="Prometheus Alert Manager" \ |
| 31 | + io.openshift.build.source-location="https://github.com/openshift/prometheus-alertmanager" \ |
| 32 | + io.openshift.build.commit.url="https://github.com/openshift/prometheus-alertmanager/commit/39c2c111ea818cd16dbd11e31cc682cf2b4042d3" \ |
| 33 | + version="v4.1.0" \ |
| 34 | + io.openshift.build.commit.id="39c2c111ea818cd16dbd11e31cc682cf2b4042d3" \ |
| 35 | + release="201905191700" \ |
| 36 | + vendor="Red Hat" \ |
| 37 | + io.openshift.tags="openshift,prometheus" |
| 38 | + |
0 commit comments