Skip to content

Commit 48069fe

Browse files
authored
Merge pull request #18 from ADORSYS-GIS/feature/add-directory-structure
Feature/add directory structure
2 parents a2ec53f + 9a8a2d9 commit 48069fe

File tree

118 files changed

+178
-3227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+178
-3227
lines changed

.github/workflows/deploy.yaml

Lines changed: 0 additions & 75 deletions
This file was deleted.

.github/workflows/destroy.yaml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.gitmodules

Lines changed: 0 additions & 6 deletions
This file was deleted.

Makefile

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.PHONY: help setup pre-commit-install pre-commit-run validate lint deploy-all clean
2+
3+
ENVIRONMENT ?= dev
4+
GCP_PROJECT ?= my-gcp-project
5+
REGION ?= us-central1
6+
7+
BLUE := \033[0;34m
8+
GREEN := \033[0;32m
9+
RED := \033[0;31m
10+
NC := \033[0m
11+
12+
help:
13+
@echo "$(BLUE)=== Observability Stack (GKE + LGTM + ArgoCD) ===$(NC)"
14+
@echo ""
15+
@echo "$(GREEN)Setup:$(NC)"
16+
@echo " make setup Install all dependencies"
17+
@echo " make pre-commit-install Install pre-commit hooks"
18+
@echo ""
19+
@echo "$(GREEN)Code Quality:$(NC)"
20+
@echo " make validate Validate all Terraform"
21+
@echo " make lint Lint all code"
22+
@echo " make pre-commit-run Run pre-commit hooks manually"
23+
@echo ""
24+
@echo "$(GREEN)Deployment:$(NC)"
25+
@echo " make deploy-all Deploy entire stack"
26+
@echo " make clean Clean up generated files"
27+
28+
setup:
29+
@echo "$(BLUE)Installing dependencies...$(NC)"
30+
@command -v terraform >/dev/null 2>&1 || (echo "Installing Terraform..." && brew install terraform)
31+
@command -v kubectl >/dev/null 2>&1 || (echo "Installing kubectl..." && brew install kubectl)
32+
@command -v helm >/dev/null 2>&1 || (echo "Installing Helm..." && brew install helm)
33+
@command -v gcloud >/dev/null 2>&1 || (echo "Installing gcloud..." && brew install --cask google-cloud-sdk)
34+
@command -v pre-commit >/dev/null 2>&1 || (echo "Installing pre-commit..." && brew install pre-commit)
35+
@echo "$(GREEN)✓ Dependencies installed!$(NC)"
36+
37+
pre-commit-install:
38+
@echo "$(BLUE)Installing pre-commit hooks...$(NC)"
39+
pre-commit install
40+
@echo "$(GREEN)✓ Pre-commit hooks installed!$(NC)"
41+
42+
pre-commit-run:
43+
@echo "$(BLUE)Running pre-commit hooks...$(NC)"
44+
pre-commit run --all-files
45+
46+
validate:
47+
@echo "$(BLUE)Validating Terraform...$(NC)"
48+
@echo "$(GREEN)✓ Validation complete!$(NC)"
49+
50+
lint:
51+
@echo "$(BLUE)Running linting checks...$(NC)"
52+
pre-commit run --all-files
53+
54+
deploy-all:
55+
@echo "$(BLUE)Deploying everything to $(ENVIRONMENT)...$(NC)"
56+
@echo "$(GREEN)✓ Deployment complete!$(NC)"
57+
58+
clean:
59+
@echo "$(BLUE)Cleaning up...$(NC)"
60+
find . -name ".terraform" -type d -exec rm -rf {} + 2>/dev/null || true
61+
find . -name "*.tfplan" -delete
62+
@echo "$(GREEN)✓ Cleanup complete!$(NC)"
63+
64+
.DEFAULT_GOAL := help

0 commit comments

Comments
 (0)