forked from openshift/elasticsearch-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (21 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6 AS builder
WORKDIR /go/src/github.com/openshift/elasticsearch-operator
COPY . .
RUN make build
FROM registry.svc.ci.openshift.org/ocp/4.6:base
ENV ALERTS_FILE_PATH="/etc/elasticsearch-operator/files/prometheus_alerts.yml"
ENV RULES_FILE_PATH="/etc/elasticsearch-operator/files/prometheus_rules.yml"
ENV ES_DASHBOARD_FILE="/etc/elasticsearch-operator/files/dashboards/logging-dashboard-elasticsearch.json"
COPY --from=builder /go/src/github.com/openshift/elasticsearch-operator/bin/elasticsearch-operator /usr/bin/
COPY --from=builder /go/src/github.com/openshift/elasticsearch-operator/files/ /etc/elasticsearch-operator/files/
COPY --from=builder /go/src/github.com/openshift/elasticsearch-operator/manifests /manifests
RUN rm /manifests/art.yaml && \
mkdir /tmp/ocp-eo && \
chmod og+w /tmp/ocp-eo
WORKDIR /usr/bin
ENTRYPOINT ["elasticsearch-operator"]
LABEL io.k8s.display-name="OpenShift elasticsearch-operator" \
io.k8s.description="This is the component that manages an Elasticsearch cluster on a kubernetes based platform" \
io.openshift.tags="openshift,logging,elasticsearch" \
com.redhat.delivery.appregistry=true \
maintainer="AOS Logging <aos-logging@redhat.com>"