2021-07-09 14:04:28 +00:00
|
|
|
# All these commands must run from repository root.
|
|
|
|
|
2023-10-10 08:38:08 +00:00
|
|
|
copy-metricsql-docs:
|
|
|
|
cp docs/MetricsQL.md app/vmui/packages/vmui/src/assets/MetricsQL.md
|
|
|
|
|
2021-07-09 14:04:28 +00:00
|
|
|
vmui-package-base-image:
|
2021-08-11 09:59:05 +00:00
|
|
|
docker build -t vmui-builder-image -f app/vmui/Dockerfile-build ./app/vmui
|
2021-07-09 14:04:28 +00:00
|
|
|
|
2023-10-10 08:38:08 +00:00
|
|
|
vmui-build: copy-metricsql-docs vmui-package-base-image
|
2021-07-09 14:04:28 +00:00
|
|
|
docker run --rm \
|
2023-06-22 02:57:48 +00:00
|
|
|
--user $(shell id -u):$(shell id -g) \
|
|
|
|
--mount type=bind,src="$(shell pwd)/app/vmui",dst=/build \
|
|
|
|
-w /build/packages/vmui \
|
|
|
|
--entrypoint=/bin/bash \
|
|
|
|
vmui-builder-image -c "npm install && npm run build"
|
2021-07-09 14:04:28 +00:00
|
|
|
|
2023-06-21 14:57:09 +00:00
|
|
|
vmui-logs-build: vmui-package-base-image
|
|
|
|
docker run --rm \
|
2023-06-22 02:57:48 +00:00
|
|
|
--user $(shell id -u):$(shell id -g) \
|
|
|
|
--mount type=bind,src="$(shell pwd)/app/vmui",dst=/build \
|
|
|
|
-w /build/packages/vmui \
|
|
|
|
--entrypoint=/bin/bash \
|
|
|
|
vmui-builder-image -c "npm install && npm run build:logs"
|
2023-06-21 14:57:09 +00:00
|
|
|
|
2023-12-19 16:20:54 +00:00
|
|
|
vmui-anomaly-build: vmui-package-base-image
|
|
|
|
docker run --rm \
|
|
|
|
--user $(shell id -u):$(shell id -g) \
|
|
|
|
--mount type=bind,src="$(shell pwd)/app/vmui",dst=/build \
|
|
|
|
-w /build/packages/vmui \
|
|
|
|
--entrypoint=/bin/bash \
|
|
|
|
vmui-builder-image -c "npm install && npm run build:anomaly"
|
|
|
|
|
2021-07-09 14:04:28 +00:00
|
|
|
vmui-release: vmui-build
|
2021-08-11 09:59:05 +00:00
|
|
|
docker build -t ${DOCKER_NAMESPACE}/vmui:latest -f app/vmui/Dockerfile-web ./app/vmui/packages/vmui
|
2021-07-09 14:04:28 +00:00
|
|
|
docker tag ${DOCKER_NAMESPACE}/vmui:latest ${DOCKER_NAMESPACE}/vmui:${PKG_TAG}
|
|
|
|
|
|
|
|
vmui-publish-latest: vmui-release
|
|
|
|
docker push ${DOCKER_NAMESPACE}/vmui
|
|
|
|
|
|
|
|
vmui-publish-release: vmui-release
|
|
|
|
docker push ${DOCKER_NAMESPACE}/vmui:${PKG_TAG}
|
|
|
|
|
|
|
|
vmui-update: vmui-build
|
|
|
|
rm -rf app/vmselect/vmui/* && mv app/vmui/packages/vmui/build/* app/vmselect/vmui
|
2023-06-21 14:57:09 +00:00
|
|
|
|
|
|
|
vmui-logs-update: vmui-logs-build
|
|
|
|
rm -rf app/vlselect/vmui/* && mv app/vmui/packages/vmui/build/* app/vlselect/vmui && rm -rf app/vlselect/vmui/dashboards
|