feat: add trading platform K8s deployment infrastructure
- Add Helm chart with 19 templates (Deployments, Services, Ingress, ConfigMaps, Secrets, NetworkPolicy, cert-manager) - Add Dockerfiles for 4 microservices (dashboard, data-service, execute-service, news-service) - Add CI/CD workflows (build-test, build-push, deploy) - Add raw K8s manifests, per-service Helm charts, and deploy scripts - Add SOPS-encrypted secrets template and config - Configure deployment to customer1 namespace - Include infrastructure components: PostgreSQL, Redis, Kafka
This commit is contained in:
parent
af4cb3d321
commit
d079d1239f
115 changed files with 5917 additions and 0 deletions
10
trading-platform/dockerfiles/execute-service/.dockerignore
Normal file
10
trading-platform/dockerfiles/execute-service/.dockerignore
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Python Docker ignores
|
||||
__pycache__/
|
||||
*.pyc
|
||||
.venv/
|
||||
venv/
|
||||
*.egg-info/
|
||||
.pytest_cache/
|
||||
.git/
|
||||
.env
|
||||
tests/
|
||||
23
trading-platform/dockerfiles/execute-service/Dockerfile
Normal file
23
trading-platform/dockerfiles/execute-service/Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Multi-stage build for execute-service (Hyperliquid + Solana trading engine)
|
||||
FROM python:3.12-slim AS builder
|
||||
WORKDIR /build
|
||||
COPY pyproject.toml ./
|
||||
RUN pip install --no-cache-dir --prefix=/install .
|
||||
|
||||
FROM python:3.12-slim
|
||||
RUN useradd -m --system appuser
|
||||
|
||||
COPY --from=builder /install /usr/local
|
||||
|
||||
WORKDIR /app
|
||||
COPY --chown=appuser:appuser app/ ./app/
|
||||
COPY --chown=appuser:appuser pyproject.toml ./
|
||||
|
||||
USER appuser
|
||||
|
||||
HEALTHCHECK --interval=15s --timeout=5s --start-period=15s --retries=3 \\
|
||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Loading…
Reference in a new issue