File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM registry.redhat.io/ubi9/nodejs-18:latest AS web-builder
2+
3+ WORKDIR /opt/app-root
4+
5+ USER 0
6+
7+ ENV HUSKY=0
8+ COPY web/package*.json web/
9+ COPY Makefile Makefile
10+ RUN make install-frontend-ci
11+
12+ COPY web/ web/
13+ RUN make build-frontend
14+
15+ FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.22 as go-builder
16+
17+ WORKDIR /opt/app-root
18+
19+ COPY Makefile Makefile
20+ COPY go.mod go.mod
21+ COPY go.sum go.sum
22+
23+ RUN make install-backend
24+
25+ COPY cmd/ cmd/
26+ COPY pkg/ pkg/
27+
28+ ENV GOFLAGS='-mod=mod'
29+ ENV GOEXPERIMENT=strictfipsruntime
30+ ENV CGO_ENABLED=1
31+
32+ RUN make build-backend BUILD_OPTS="-tags strictfipsruntime"
33+
34+ FROM registry.redhat.io/rhel9-2-els/rhel:9.2
35+
36+ RUN mkdir /licenses
37+ COPY LICENSE /licenses/.
38+
39+ USER 1001
40+
41+ COPY --from=web-builder /opt/app-root/web/dist /opt/app-root/web/dist
42+ COPY --from=go-builder /opt/app-root/plugin-backend /opt/app-root
43+
44+ ENTRYPOINT ["/opt/app-root/plugin-backend", "-static-path", "/opt/app-root/web/dist"]
45+
46+ LABEL com.redhat.component="coo-troubleshooting-panel-console-plugin" \
47+ name="openshift/troubleshooting-panel-console-plugin" \
48+ version="v0.3.0" \
49+ summary="OpenShift console plugin to troubleshoot by correlating observability signals" \
50+ io.openshift.tags="openshift,observability-ui,korrel8r,correlation" \
51+ io.k8s.display-name="OpenShift console troubleshooting panel plugin" \
52+ maintainer="Observability UI Team <team-observability-ui@redhat.com>" \
53+ description="OpenShift console plugin to troubleshoot by correlating observability signals"
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ start-console:
2626lint-frontend :
2727 cd web && npm run lint
2828
29+ .PHONY : install-backend
30+ install-backend :
31+ go mod download
32+
2933.PHONY : build-backend
3034build-backend :
3135 go build $(BUILD_OPTS ) -o plugin-backend -mod=readonly cmd/plugin-backend.go
You can’t perform that action at this time.
0 commit comments