[PROD-001] feat: Complete production deployment setup
Some checks failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled

 Fixed critical issues:
- Fixed .dockerignore to include assets (logo.png, banner-3.gif, custom.css)
- Added psutil dependency for metrics endpoint
- Connected health check endpoints to Reflex app

 Added complete CI/CD pipeline:
- Woodpecker.yml with 11 stages (lint, build, scan, deploy)
- Harbor registry integration
- ArgoCD automated deployment
- Kubernetes health checks

 Enhanced security:
- Multi-stage Docker build
- Non-root user container
- Security scanning ready
- Network policies configured

 Complete documentation:
- Production deployment guide (50+ pages)
- Quick start guide (10 minutes)
- Deployment checklist
- Changelog

🚀 Production ready with automated GitOps deployment!

ApprovalToken: PROD-001
This commit is contained in:
Ehsan.Asadi
2025-12-27 01:49:49 +03:30
parent 7f487cb6e6
commit b884ab435c
19 changed files with 2929 additions and 34 deletions

View File

@@ -1,12 +1,13 @@
# Peikarband Platform - Makefile
REGISTRY ?= registry.example.com
REGISTRY ?= harbor.peikarband.ir
IMAGE_NAME ?= peikarband/landing
VERSION ?= $(shell git describe --tags --always --dirty)
HELM_RELEASE ?= peikarband
NAMESPACE ?= production
DOCKER_BUILDKIT ?= 1
.PHONY: help install dev test lint format clean docker-up docker-down migrate
.PHONY: help install dev kill-dev test lint format clean docker-up docker-down migrate
help:
@echo "Available commands:"
@@ -14,6 +15,7 @@ help:
@echo "Development:"
@echo " make install - Install dependencies"
@echo " make dev - Run development server"
@echo " make kill-dev - Kill development server processes (ports 3000 & 8000)"
@echo " make test - Run tests"
@echo " make lint - Run linters"
@echo " make format - Format code"
@@ -42,7 +44,13 @@ install:
pre-commit install
dev:
python33 -m reflex run
python3 -m reflex run
kill-dev:
@echo "Killing processes on ports 3000 and 8000..."
@lsof -ti:3000 -ti:8000 2>/dev/null | xargs kill -9 2>/dev/null || true
@pkill -9 -f reflex 2>/dev/null || true
@echo "Done!"
test:
pytest tests/ -v --cov=src --cov-report=html
@@ -69,8 +77,12 @@ clean:
# Docker commands
docker-build:
docker build -t $(IMAGE_NAME):$(VERSION) .
docker tag $(IMAGE_NAME):$(VERSION) $(IMAGE_NAME):latest
DOCKER_BUILDKIT=$(DOCKER_BUILDKIT) docker build \
-t $(IMAGE_NAME):$(VERSION) \
-t $(IMAGE_NAME):latest \
--build-arg VERSION=$(VERSION) \
--build-arg BUILD_DATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ') \
.
docker-push:
docker tag $(IMAGE_NAME):$(VERSION) $(REGISTRY)/$(IMAGE_NAME):$(VERSION)
@@ -78,6 +90,10 @@ docker-push:
docker push $(REGISTRY)/$(IMAGE_NAME):$(VERSION)
docker push $(REGISTRY)/$(IMAGE_NAME):latest
docker-login:
@echo "Logging in to Harbor registry..."
@docker login $(REGISTRY)
docker-up:
docker-compose up -d