mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
4a7b17ed76
* feat: add a logs page * app/vixtoria-logs: add handlers for vmui * feat: add group logs * feat: add logs build * app/vixtoria-logs: update make file * app/vixtoria-logs: cleanup make * app/vixtoria-logs: fix description * fix: correct url for logs * fix: save display view in query params * fix: change logo for logs build * app/vixtoria-logs: remove dashboards from vlselect * app/vixtoria-logs: enable user --------- Co-authored-by: dmitryk-dk <kozlovdmitriyy@gmail.com>
37 lines
1.4 KiB
Makefile
37 lines
1.4 KiB
Makefile
# All these commands must run from repository root.
|
|
|
|
vmui-package-base-image:
|
|
docker build -t vmui-builder-image -f app/vmui/Dockerfile-build ./app/vmui
|
|
|
|
vmui-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"
|
|
|
|
vmui-logs-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:logs"
|
|
|
|
vmui-release: vmui-build
|
|
docker build -t ${DOCKER_NAMESPACE}/vmui:latest -f app/vmui/Dockerfile-web ./app/vmui/packages/vmui
|
|
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
|
|
|
|
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
|