hyperdx/Makefile
github-actions[bot] 4172743ee9
chore(release): bump HyperDX app/package versions (beta) (#743)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v2, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`v2` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `v2`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @hyperdx/common-utils@0.2.0-beta.3

### Patch Changes

-   092a292: fix: autocomplete for key-values complete for v2 lucene
-   2f626e1: fix: metric name filtering for some metadata
-   b16c8e1: feat: compute charts ratio
-   4865ce7: Fixes the histogram query to perform quantile calculation across all data points

## @hyperdx/api@2.0.0-beta.14

### Patch Changes

-   e5dfefb: Added test cases for the webhook and source routes.
-   f5e9a07: chore: bump node version to v22
-   Updated dependencies [092a292]
-   Updated dependencies [2f626e1]
-   Updated dependencies [b16c8e1]
-   Updated dependencies [4865ce7]
    -   @hyperdx/common-utils@0.2.0-beta.3

## @hyperdx/app@2.0.0-beta.14

### Patch Changes

-   56e39dc: 36c3edc fix: remove several source change forms throughout the log drawer
-   092a292: fix: autocomplete for key-values complete for v2 lucene
-   2f626e1: fix: metric name filtering for some metadata
-   f5e9a07: chore: bump node version to v22
-   b16c8e1: feat: compute charts ratio
-   08009ac: feat: add saved filters for searches
-   db761ba: fix: remove originalWhere tag from view. not used anyways
-   8c95b9e: Add search history
-   Updated dependencies [092a292]
-   Updated dependencies [2f626e1]
-   Updated dependencies [b16c8e1]
-   Updated dependencies [4865ce7]
    -   @hyperdx/common-utils@0.2.0-beta.3


Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
2025-04-21 21:13:20 +00:00

145 lines
4.1 KiB
Makefile

LATEST_VERSION := $$(sed -n 's/.*"version": "\([^"]*\)".*/\1/p' package.json)
BUILD_PLATFORMS = linux/arm64,linux/amd64
include .env
.PHONY: all
all: install-tools
.PHONY: install-tools
install-tools:
yarn install
@echo "All tools installed"
.PHONY: dev-build
dev-build:
docker compose -f docker-compose.dev.yml build
.PHONY: dev-up
dev-up:
npm run dev
.PHONY: dev-down
dev-down:
docker compose -f docker-compose.dev.yml down
.PHONY: dev-lint
dev-lint:
npx nx run-many -t lint:fix
.PHONY: ci-build
ci-build:
npx nx run-many -t ci:build
.PHONY: ci-lint
ci-lint:
npx nx run-many -t ci:lint
.PHONY: dev-int-build
dev-int-build:
docker compose -p int -f ./docker-compose.ci.yml build
.PHONY: dev-int
dev-int:
docker compose -p int -f ./docker-compose.ci.yml up -d
npx nx run @hyperdx/api:dev:int $(FILE)
docker compose -p int -f ./docker-compose.ci.yml down
.PHONY: ci-int
ci-int:
docker compose -p int -f ./docker-compose.ci.yml up -d
npx nx run @hyperdx/api:ci:int
docker compose -p int -f ./docker-compose.ci.yml down
.PHONY: dev-unit
dev-unit:
npx nx run-many -t dev:unit
.PHONY: ci-unit
ci-unit:
npx nx run-many -t ci:unit
# TODO: check db connections before running the migration CLIs
.PHONY: dev-migrate-db
dev-migrate-db:
@echo "Migrating Mongo db...\n"
npx nx run @hyperdx/api:dev:migrate-db
@echo "Migrating ClickHouse db...\n"
npx nx run @hyperdx/api:dev:migrate-ch
.PHONY: version
version:
sh ./version.sh
.PHONY: release-local
release-local:
docker buildx build --squash . -f ./docker/local/Dockerfile \
--build-context clickhouse=./docker/clickhouse \
--build-context otel-collector=./docker/otel-collector \
--build-context local=./docker/local \
--build-context api=./packages/api \
--build-context app=./packages/app \
--platform ${BUILD_PLATFORMS} \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_NIGHTLY_TAG} \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_NIGHTLY_TAG} \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-local-ui
release-local-ui:
docker buildx build . -f ./packages/app/Dockerfile \
--build-arg IS_LOCAL_MODE=true \
--build-arg PORT=${HYPERDX_APP_PORT} \
--target prod \
--platform ${BUILD_PLATFORMS} \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG}-ui \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_NIGHTLY_TAG}-ui \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG}-ui \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_NIGHTLY_TAG}-ui \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-otel-collector
release-otel-collector:
docker buildx build --platform ${BUILD_PLATFORMS} ./docker/otel-collector \
-t ${OTEL_COLLECTOR_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${OTEL_COLLECTOR_IMAGE_NAME_DOCKERHUB}:${IMAGE_NIGHTLY_TAG} \
-t ${OTEL_COLLECTOR_IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${OTEL_COLLECTOR_IMAGE_NAME}:${IMAGE_NIGHTLY_TAG} \
--target prod \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-app
release-app:
docker buildx build --squash . -f ./docker/fullstack/Dockerfile \
--build-context fullstack=./docker/fullstack \
--build-context api=./packages/api \
--build-context app=./packages/app \
--platform ${BUILD_PLATFORMS} \
-t ${IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${IMAGE_NAME_DOCKERHUB}:${IMAGE_NIGHTLY_TAG} \
-t ${IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${IMAGE_NAME}:${IMAGE_NIGHTLY_TAG} \
--target prod \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-extended-app
release-extended-app:
docker buildx build --squash . -f ./docker/fullstack/Dockerfile \
--build-context fullstack=./docker/fullstack \
--build-context api=./packages/api \
--build-context app=./packages/app \
--platform ${BUILD_PLATFORMS} \
-t ${IMAGE_NAME_DOCKERHUB}:latest \
--target prod-extended \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max