-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
29 lines (24 loc) · 1.23 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
27
28
29
# Changes to this file are not auto-propagated to the downstream build automation. We need to make the changes manually in the midstream repo located here:
# https://gitlab.cee.redhat.com/cpaas-midstream/telco-5g-ran/baremetal-hardware-event-proxy/-/blob/rhaos-4.13-rhel-8/distgit/containers/baremetal-hardware-event-proxy/Dockerfile.in
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.20-openshift-4.15 AS go-builder
ENV GO111MODULE=off
ENV CGO_ENABLED=1
ENV COMMON_GO_ARGS=-race
ENV GOOS=linux
ENV GOPATH=/go
COPY ./scripts /scripts
WORKDIR /go/src/github.com/redhat-cne/hw-event-proxy
COPY ./hw-event-proxy ./hw-event-proxy
RUN /scripts/build-go.sh
# Install dependencies for message-parser
FROM registry.access.redhat.com/ubi9/python-39
COPY /scripts/entrypoint.sh /
WORKDIR /message-parser
COPY ./message-parser .
RUN pip3 install -r requirements.txt
COPY --from=go-builder /go/src/github.com/redhat-cne/hw-event-proxy/hw-event-proxy/build/hw-event-proxy /
LABEL io.k8s.display-name="Bare Metal Event Relay" \
io.k8s.description="This is a component of OpenShift Container Platform for handling hardware events." \
io.openshift.tags="openshift" \
maintainer="Jack Ding <[email protected]>"
ENTRYPOINT ["/entrypoint.sh"]