refactor: reorganize project structure for better maintainability
- Move Docker files to build/docker/ - Move CI/CD configs to build/ci/ - Move deployment configs to deploy/ (helm, k8s, argocd) - Move config files to config/ - Move scripts to tools/ - Consolidate assets to assets/ (Reflex compatible) - Add data/ directory for local data (gitignored) - Update all path references in Makefile, Dockerfile, CI configs - Add comprehensive README files for build/ and deploy/ - Update project documentation Benefits: - Clear separation of concerns - Cleaner root directory - Better developer experience - Enterprise-grade structure - Improved maintainability
This commit is contained in:
21
Makefile
21
Makefile
@@ -73,11 +73,12 @@ clean:
|
||||
find . -type d -name ".mypy_cache" -exec rm -rf {} +
|
||||
find . -type d -name "*.egg-info" -exec rm -rf {} +
|
||||
rm -rf .coverage htmlcov/
|
||||
rm -rf dist/ build/
|
||||
rm -rf dist/
|
||||
|
||||
# Docker commands
|
||||
docker-build:
|
||||
DOCKER_BUILDKIT=$(DOCKER_BUILDKIT) docker build \
|
||||
-f build/docker/Dockerfile \
|
||||
-t $(IMAGE_NAME):$(VERSION) \
|
||||
-t $(IMAGE_NAME):latest \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
@@ -95,23 +96,23 @@ docker-login:
|
||||
@docker login $(REGISTRY)
|
||||
|
||||
docker-up:
|
||||
docker-compose up -d
|
||||
docker-compose -f build/docker/docker-compose.yml up -d
|
||||
|
||||
docker-down:
|
||||
docker-compose down
|
||||
docker-compose -f build/docker/docker-compose.yml down
|
||||
|
||||
# Helm commands
|
||||
helm-lint:
|
||||
helm lint helm/peikarband
|
||||
helm lint deploy/helm/peikarband
|
||||
|
||||
helm-template:
|
||||
helm template $(HELM_RELEASE) helm/peikarband --debug
|
||||
helm template $(HELM_RELEASE) deploy/helm/peikarband --debug
|
||||
|
||||
helm-package:
|
||||
helm package helm/peikarband --destination .
|
||||
helm package deploy/helm/peikarband --destination .
|
||||
|
||||
helm-install:
|
||||
helm install $(HELM_RELEASE) helm/peikarband \
|
||||
helm install $(HELM_RELEASE) deploy/helm/peikarband \
|
||||
--namespace $(NAMESPACE) \
|
||||
--create-namespace \
|
||||
--set image.repository=$(REGISTRY)/$(IMAGE_NAME) \
|
||||
@@ -119,7 +120,7 @@ helm-install:
|
||||
--wait
|
||||
|
||||
helm-upgrade:
|
||||
helm upgrade --install $(HELM_RELEASE) helm/peikarband \
|
||||
helm upgrade --install $(HELM_RELEASE) deploy/helm/peikarband \
|
||||
--namespace $(NAMESPACE) \
|
||||
--set image.repository=$(REGISTRY)/$(IMAGE_NAME) \
|
||||
--set image.tag=$(VERSION) \
|
||||
@@ -135,8 +136,8 @@ k8s-deploy: docker-build docker-push helm-upgrade
|
||||
|
||||
# Database
|
||||
migrate:
|
||||
alembic upgrade head
|
||||
alembic -c config/alembic.ini upgrade head
|
||||
|
||||
seed:
|
||||
python3 scripts/seed_database.py
|
||||
python3 tools/scripts/seed_database.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user