Add code to check if it's running on Linux System.

This commit is contained in:
Axay sagathiya
2022-12-29 00:22:02 +05:30
parent 39d9c070b5
commit 552cfb08c9

View File

@@ -102,8 +102,10 @@ build-push-ee-query-service:
--build-arg LD_FLAGS="$(LD_FLAGS)" --tag $(REPONAME)/$(QUERY_SERVICE_DOCKER_IMAGE):$(DOCKER_TAG) .
dev-setup:
sudo apt update
sudo apt install sqlite3
@if [ $(shell uname) = "Linux" ]; then \
sudo apt update; \
sudo apt install sqlite3; \
fi
mkdir -p /var/lib/signoz
sqlite3 /var/lib/signoz/signoz.db "VACUUM";
mkdir -p pkg/query-service/config/dashboards