1+ VERSION ?= latest
2+ PLATFORMS ?= linux/arm64,linux/amd64
3+ ORG ?= openshift-observability-ui
4+ PLUGIN_NAME ?=monitoring-plugin
5+ IMAGE ?= quay.io/${ORG}/${PLUGIN_NAME}:${VERSION}
6+ FEATURES ?=incidents,perses-dashboards,dev-config
7+
18.PHONY : install-frontend
29install-frontend :
310 cd web && npm install
@@ -65,11 +72,6 @@ install:
6572update-plugin-name :
6673 ./scripts/update-plugin-name.sh
6774
68- export REGISTRY_ORG? =openshift-observability-ui
69- export TAG? =latest
70- export PLUGIN_NAME? =monitoring-plugin
71- IMAGE =quay.io/${REGISTRY_ORG}/monitoring-plugin:${TAG}
72-
7375.PHONY : deploy
7476deploy :
7577 make lint-backend
@@ -83,7 +85,7 @@ deploy-acm:
8385
8486.PHONY : build-mcp-image
8587build-mcp-image :
86- DOCKER_FILE_NAME=" Dockerfile.mcp" REPO=" monitoring-console-plugin" scripts/build-image.sh
88+ DOCKER_FILE_NAME=" Dockerfile.mcp" REPO=" monitoring-console-plugin" scripts/build-image.sh
8789
8890.PHONY : build-dev-mcp-image
8991build-dev-mcp-image :
@@ -93,16 +95,14 @@ build-dev-mcp-image:
9395start-feature-console :
9496 PLUGIN_PORT=9443 ./scripts/start-console.sh
9597
96- export FEATURES? =incidents,perses-dashboards,dev-config
9798.PHONY : start-feature-backend
9899start-feature-backend :
99- go run ./cmd/plugin-backend.go -port=' 9443' -config-path=' ./config' -static-path=' ./web/dist' -features=' $( FEATURES) '
100+ go run ./cmd/plugin-backend.go -port=' 9443' -config-path=' ./config' -static-path=' ./web/dist' -features=' ${ FEATURES} '
100101
101- export PLATFORMS ?= linux/arm64,linux/amd64
102- .PHONY : mcp-podman-cross-build
103- mcp-podman-cross-build :
102+ .PHONY : podman-cross-build
103+ podman-cross-build :
104104 podman manifest create ${IMAGE}
105- podman build --platform $( PLATFORMS ) --manifest ${IMAGE} -f Dockerfile.mcp
105+ podman build --platform ${ PLATFORMS} --manifest ${IMAGE} -f Dockerfile.mcp
106106 podman manifest push ${IMAGE}
107107
108108.PHONY : test-translations
0 commit comments